Hi How do I install gtk2 on OSX 10.3.9? If I "port install" gtk2 it fails to build because it can't find the cups include files. So, I install cups-headers and all it does is to install a README that says:-
The cups-headers port is a placeholder port that is only really meaningful on Mac OS X 10.3.x (Jaguar).
If you have ports on other versions of Mac OS X that break on bad cups headers or library files, then this port should be uninstalled.
This port should only install this readme file on versions of Mac OS X other than Jaguar.
But I am on Jaguar! I then notice that there is a variant "darwin_7", so I install that instead, this gives me the cups headers in /opt/local/include/cups. Then when I try to install gtk2 it stops saying:
The cups-headers port may prevent building this port. Please uninstall (or deactivate) cups-headers and restart the build.
huh? Surely cups-headers will allow me to build this (or maybe it will fail later in the build)?? So I google around a bit and find that installing gtk28 is probably what I want to do (since that doesn't need the cups stuff). So I install that and it works. Great. Next I try to install libbonoboui but that depends on gtk2, so it tries to install the version that won't build because "gtk28" doesn't satisfy the "gtk2" dependency. Grrrr.... How do I do this then? Do I have to now work out the deps by hand because port can't do it? Dave -- Dave Hill - dave at hillcroft dot org dot uk
On Jan 18, 2007, at 09:32, Dave Hill wrote:
How do I install gtk2 on OSX 10.3.9?
If I "port install" gtk2 it fails to build because it can't find the cups include files.
So, I install cups-headers and all it does is to install a README that says:-
The cups-headers port is a placeholder port that is only really meaningful on Mac OS X 10.3.x (Jaguar).
If you have ports on other versions of Mac OS X that break on bad cups headers or library files, then this port should be uninstalled.
This port should only install this readme file on versions of Mac OS X other than Jaguar.
That is of course contradictory, since 10.3.x was in fact called Panther, not Jaguar; Jaguar was 10.2.x. Perhaps the author of that read-me file can clarify which version of Mac OS X he was talking about.
But I am on Jaguar!
Well, you're on Panther.
I then notice that there is a variant "darwin_7", so I install that instead, this gives me the cups headers in /opt/local/include/cups.
The darwin_7 variant is always auto-selected on Mac OS X 10.3.x. If you had to manually select the darwin_7 variant to get it, then I do not think you are running Mac OS X 10.3.x.
Then when I try to install gtk2 it stops saying:
The cups-headers port may prevent building this port. Please uninstall (or deactivate) cups-headers and restart the build.
huh? Surely cups-headers will allow me to build this (or maybe it will fail later in the build)??
So I google around a bit and find that installing gtk28 is probably what I want to do (since that doesn't need the cups stuff). So I install that and it works. Great.
Next I try to install libbonoboui but that depends on gtk2, so it tries to install the version that won't build because "gtk28" doesn't satisfy the "gtk2" dependency.
Grrrr....
How do I do this then? Do I have to now work out the deps by hand because port can't do it?
The rest of this I don't know how to answer.
On 18 Jan 2007, at 19:06, Ryan Schmidt wrote:
On Jan 18, 2007, at 09:32, Dave Hill wrote:
How do I install gtk2 on OSX 10.3.9?
If I "port install" gtk2 it fails to build because it can't find the cups include files.
So, I install cups-headers and all it does is to install a README that says:-
The cups-headers port is a placeholder port that is only really meaningful on Mac OS X 10.3.x (Jaguar).
If you have ports on other versions of Mac OS X that break on bad cups headers or library files, then this port should be uninstalled.
This port should only install this readme file on versions of Mac OS X other than Jaguar.
That is of course contradictory, since 10.3.x was in fact called Panther, not Jaguar; Jaguar was 10.2.x. Perhaps the author of that read-me file can clarify which version of Mac OS X he was talking about.
But I am on Jaguar!
Well, you're on Panther.
OK, fair enough, my mistake - I always get confused about the names of these things anyway, I find it easier to say "10.3.9" rather than "insert name of cat here".
I then notice that there is a variant "darwin_7", so I install that instead, this gives me the cups headers in /opt/local/include/cups.
The darwin_7 variant is always auto-selected on Mac OS X 10.3.x. If you had to manually select the darwin_7 variant to get it, then I do not think you are running Mac OS X 10.3.x.
Well it wasn't selected. I'm definitely running 10.3.9. dhcp37:~/macports dave$ uname -a Darwin dhcp37 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power Macintosh powerpc dhcp37:~/macports dave$ from system profiler: System Software Overview: System Version: Mac OS X 10.3.9 (7W98) Kernel Version: Darwin 7.9.0 Boot Volume: Macintosh HD dhcp37:~/macports dave$ port variants cups-headers cups-headers has the variants: darwin_7 dhcp37:~/macports dave$ sudo port install cups-headers ---> Fetching cups-headers ---> Verifying checksum(s) for cups-headers ---> Extracting cups-headers ---> Configuring cups-headers ---> Building cups-headers with target all ---> Staging cups-headers into destroot ---> Installing cups-headers 1.1.15_1 ---> Activating cups-headers 1.1.15_1 ---> Cleaning cups-headers dhcp37:~/macports dave$ port contents cups-headers Port cups-headers contains: /opt/local/share/doc/README.cups-headers.txt dhcp37:~/macports dave$ sudo port uninstall cups-headers ---> Deactivating cups-headers 1.1.15_1 ---> Uninstalling cups-headers 1.1.15_1 dhcp37:~/macports dave$ sudo port install cups-headers +darwin_7 ---> Fetching cups-headers ---> Verifying checksum(s) for cups-headers ---> Extracting cups-headers ---> Configuring cups-headers ---> Building cups-headers with target all ---> Staging cups-headers into destroot ---> Installing cups-headers 1.1.15_1+darwin_7 ---> Activating cups-headers 1.1.15_1+darwin_7 ---> Cleaning cups-headers dhcp37:~/macports dave$ port contents cups-headers Port cups-headers contains: /opt/local/bin/cups-config /opt/local/include/cups/cups.h /opt/local/include/cups/http.h /opt/local/include/cups/image.h /opt/local/include/cups/ipp.h /opt/local/include/cups/language.h /opt/local/include/cups/md5.h /opt/local/include/cups/ppd.h /opt/local/include/cups/raster.h /opt/local/share/doc/README.cups-headers.txt dhcp37:~/macports dave$ The port install was done from "DarwinPorts-1.3.1-10.3.dmg" and "selfupdated" after that. Dave -- Dave Hill, Kempston, Bedford UK - dave at hillcroft dot org dot uk AIM/Yahoo/MSN/Gtalk/Skype/Gizmo: hillcroftdave
On Jan 18, 2007, at 5:31 PM, Dave Hill wrote:
On 18 Jan 2007, at 19:06, Ryan Schmidt wrote:
On Jan 18, 2007, at 09:32, Dave Hill wrote:
...
The darwin_7 variant is always auto-selected on Mac OS X 10.3.x. If you had to manually select the darwin_7 variant to get it, then I do not think you are running Mac OS X 10.3.x.
Well it wasn't selected. I'm definitely running 10.3.9.
dhcp37:~/macports dave$ uname -a Darwin dhcp37 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power Macintosh powerpc dhcp37:~/macports dave$
I believe the problem is a typo in the cups-headers portfile, "variant darwin_7" should be "variant darwin 7". Since the underscore is added by port later, perhaps that is why the auto- inclusion of the variant isn't working? Bryan ...
Dave -- Dave Hill, Kempston, Bedford UK - dave at hillcroft dot org dot uk AIM/Yahoo/MSN/Gtalk/Skype/Gizmo: hillcroftdave
On Jan 19, 2007, at 00:19, Bryan Blackburn wrote:
On Jan 18, 2007, at 5:31 PM, Dave Hill wrote:
On 18 Jan 2007, at 19:06, Ryan Schmidt wrote:
The darwin_7 variant is always auto-selected on Mac OS X 10.3.x. If you had to manually select the darwin_7 variant to get it, then I do not think you are running Mac OS X 10.3.x.
Well it wasn't selected. I'm definitely running 10.3.9.
dhcp37:~/macports dave$ uname -a Darwin dhcp37 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power Macintosh powerpc dhcp37:~/macports dave$
I believe the problem is a typo in the cups-headers portfile, "variant darwin_7" should be "variant darwin 7". Since the underscore is added by port later, perhaps that is why the auto- inclusion of the variant isn't working?
Thanks for spotting that! I think that's a likely problem. I corrected the typo in r21270.
On Thu Jan 18 22:40:10 2007, Ryan Schmidt <ryandesign@macports.org> wrote:
On Jan 19, 2007, at 00:19, Bryan Blackburn wrote:
I believe the problem is a typo in the cups-headers portfile, "variant darwin_7" should be "variant darwin 7". Since the underscore is added by port later, perhaps that is why the auto- inclusion of the variant isn't working?
Thanks for spotting that! I think that's a likely problem. I corrected the typo in r21270.
After syncing to r21270, that doesn't look like the right solution. The variant still wasn't auto-selected after being changed to "darwin 7". Further, with the space, I was unable to build that variant at all; I always got just the README.cups-headers.txt file. Manually changing it back to "darwin_7" allowed me to select it again and successfully installed the header files. -- Brett Warden
Ok, now I think I'm getting the hang of it. I believe the fix should be "platform darwin 7" instead of "variant darwin 7" or "variant darwin_7". Works right in 10.3.9. -- Brett Warden
On Jan 20, 2007, at 02:18, Ryan Schmidt wrote:
On Jan 20, 2007, at 01:33, Brett Warden wrote:
Ok, now I think I'm getting the hang of it. I believe the fix should be "platform darwin 7" instead of "variant darwin 7" or "variant darwin_7". Works right in 10.3.9.
Thank you -- I should have caught that. Fixed now in r21308.
I checked all other portfiles to see if any others have this problem: $ find . -type f -name Portfile -print0 | xargs -0 grep 'darwin_ [[:digit:]]' Found a couple more: - The lua port intended to disable readline in darwin 7; fixed in r21310. - The eel and eel-2-12 ports had empty darwin_7 variants; removed in r21311. The only remaining matches to my grep are in gnome-vfs, which says things like "if {[variant_isset darwin_6]}" and "if {[variant_isset darwin_7]}". I don't know if that's ok. Perhaps the maintainer can comment, or someone else who knows how to detect the platform in MacPorts.
AFAIK the "platform x y" code blocks are treated as special variants, so testing for a specific platform using variant_isset is correct. On 20 Jan 2007, at 03:51, Ryan Schmidt wrote:
On Jan 20, 2007, at 02:18, Ryan Schmidt wrote:
On Jan 20, 2007, at 01:33, Brett Warden wrote:
Ok, now I think I'm getting the hang of it. I believe the fix should be "platform darwin 7" instead of "variant darwin 7" or "variant darwin_7". Works right in 10.3.9.
Thank you -- I should have caught that. Fixed now in r21308.
I checked all other portfiles to see if any others have this problem:
$ find . -type f -name Portfile -print0 | xargs -0 grep 'darwin_ [[:digit:]]'
Found a couple more:
- The lua port intended to disable readline in darwin 7; fixed in r21310. - The eel and eel-2-12 ports had empty darwin_7 variants; removed in r21311.
The only remaining matches to my grep are in gnome-vfs, which says things like "if {[variant_isset darwin_6]}" and "if {[variant_isset darwin_7]}". I don't know if that's ok. Perhaps the maintainer can comment, or someone else who knows how to detect the platform in MacPorts.
Randall Wood rhwood@mac.com "The rules are simple: The ball is round. The game lasts 90 minutes. All the rest is just philosophy."
participants (5)
-
Brett Warden
-
Bryan Blackburn
-
Dave Hill
-
Randall Wood
-
Ryan Schmidt