Since Mac OSX Lion 10.7 is about to be released late this year, it's time to add support for Lion, and start fixing bugs before it's official release :-) Reproducible: Always
you mean it's about to be released next month :)
(In reply to comment #1) > you mean it's about to be released next month :) I forgot the exact release date just now :-) Just spend hours trying to bootstrap gentoo-prefix on my Lion Developer Preview 4 but it failed when bootstraping python. And then I found there's no support for x86_64-apple-darwin11 and i*86-apple-darwin11 in the bootstrap script :-( Be aware that cc and gcc in Mac Lion+Xcode 4.2 links to llvm-gcc-4.2, which makes some package failed to compile.
hmmm, joy. There is no gcc-apple installed any more, I suppose?
(In reply to comment #3) > hmmm, joy. There is no gcc-apple installed any more, I suppose? Yes there is: i686-apple-darwin11-gcc-4.2.1 It's just that gcc is linked to llvm-gcc instead of i686-apple-darwin11-gcc.
ohw, but since we pass --build and --host (iirc) to configure, this should sort of work, as soon as CHOST is set to i686-apple-darwin11
(In reply to comment #5) > ohw, but since we pass --build and --host (iirc) to configure, this should sort > of work, as soon as CHOST is set to i686-apple-darwin11 Yes, a slight change to bootstrap.sh should be enough.
what does ./bootstrap-prefix.sh chost.guess return on Lion?
(In reply to comment #7) > what does ./bootstrap-prefix.sh chost.guess return on Lion? i386-apple-darwin11 Is it right to use `uname -p` to construct the CHOST string? My processor is actually 64bit capable. $ uname -a Darwin yegle-laptop 11.0.0 Darwin Kernel Version 11.0.0: Mon Jun 13 11:33:28 PDT 2011; root:xnu-1699.22.70~3/RELEASE_X86_64 x86_64
yes it is, that is why you need to set CHOST explicitly if you want to end up with a 64-bits prefix
(In reply to comment #9) > yes it is, that is why you need to set CHOST explicitly if you want to end up > with a 64-bits prefix I tried to bootstrap a 64-bit prefix but failed when compiling python. Hope someone can fix this problem before Lion is actually out.
could you attach the build log here?
(In reply to comment #11) > could you attach the build log here? I upgrade to Lion GM and XCode 4.2 beta2. This time, python can be built successfully. But ./bootstrap-prefix.sh $EPREFIX portage failed at the end: make[1]: Leaving directory `/Users/yegle/.gentoo/var/tmp/portage-2.2.01.18213/prefix-portage-2.2.01.18213/cnf' make[1]: Entering directory `/Users/yegle/.gentoo/var/tmp/portage-2.2.01.18213/prefix-portage-2.2.01.18213' make[2]: Entering directory `/Users/yegle/.gentoo/var/tmp/portage-2.2.01.18213/prefix-portage-2.2.01.18213' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/Users/yegle/.gentoo/var/tmp/portage-2.2.01.18213/prefix-portage-2.2.01.18213' make[1]: Leaving directory `/Users/yegle/.gentoo/var/tmp/portage-2.2.01.18213/prefix-portage-2.2.01.18213' * setting up some guessed defaults ln: creating symbolic link `/Users/yegle/.gentoo/etc/make.profile' to `/Users/yegle/.gentoo/usr/portage/profiles/prefix/darwin/macos/10.6/x64': File exists * Your profile is set to /Users/yegle/.gentoo/usr/portage/profiles/prefix/darwin/macos/10.6/x64. ./bootstrap-prefix.sh: line 356: /Users/yegle/.gentoo/usr/portage/profiles/prefix/darwin/macos/10.6/x64/make.defaults: No such file or directory ./bootstrap-prefix.sh: line 357: /Users/yegle/.gentoo/usr/portage/profiles/prefix/darwin/macos/10.6/x64/make.defaults: No such file or directory ./bootstrap-prefix.sh: line 362: /Users/yegle/.gentoo/usr/portage/profiles/prefix/darwin/macos/10.6/x64/make.defaults: No such file or directory ./bootstrap-prefix.sh: line 365: /Users/yegle/.gentoo/usr/portage/profiles/prefix/darwin/macos/10.6/x64/make.defaults: No such file or directory * Your make.globals is prepared for your current bootstrap ./bootstrap-prefix.sh: line 370: /Users/yegle/.gentoo/usr/portage/profiles/prefix/profile.bashrc: No such file or directory * prefix-portage successfully bootstrapped
hmmm, do you use tree_latest? I checked in the 10.7 profiles about a week ago.
(In reply to comment #13) > hmmm, do you use tree_latest? I checked in the 10.7 profiles about a week ago. I didn't notice there's a latest_tree bootstrap target. Now I've successfully bootstraped gentoo prefix in Mac Lion GM :-)
ohw, great. I can't believe you really have no issues?
I didn't have issues either, so it works :)