i went to http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-macos.xml and downloaded the bootstrap script. Did all the steps in 1.3 but on the last step it didn't work because bootstrap installs python 2.6 and portage needs 2.7. Reproducible: Always Steps to Reproduce: 1. ./bootstrap-prefix.sh $EPREFIX portage Actual Results: spaam:~ johan$ ./bootstrap-prefix.sh $EPREFIX portage* Bootstrapping Gentoo prefixed portage installation using * host: x86_64-apple-darwin11 * prefix: /Users/johan/Gentoo * ready to bootstrap portage * Bootstrapping prefix-portage * Fetching prefix-portage-2.2.01.19011.tar.bz2 --14:48:24-- http://dev.gentoo.org/~grobian/distfiles/prefix-portage-2.2.01.19011.tar.bz2 => `prefix-portage-2.2.01.19011.tar.bz2' Resolving dev.gentoo.org... 140.211.166.183 Connecting to dev.gentoo.org|140.211.166.183|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 942,295 (920K) [application/x-bzip2] 100%[================================================================================================================>] 942,295 283.59K/s ETA 00:00 14:48:28 (282.90 KB/s) - `prefix-portage-2.2.01.19011.tar.bz2' saved [942295/942295] * Unpacking prefix-portage * Compiling prefix-portage checking build system type... x86_64-apple-darwin11 checking host system type... x86_64-apple-darwin11 checking target system type... x86_64-apple-darwin11 checking for a BSD-compatible install... /Users/johan/Gentoo/tmp/usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /Users/johan/Gentoo/tmp/usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for x86_64-apple-darwin11-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking whether ln -s works... yes checking for grep that handles long lines and -e... /Users/johan/Gentoo/tmp/usr/bin/grep checking for egrep... /Users/johan/Gentoo/tmp/usr/bin/grep -E checking for id... /Users/johan/Gentoo/tmp/usr/bin/id checking whether /Users/johan/Gentoo/tmp/usr/bin/id is good enough... yes checking for python... /Users/johan/Gentoo/tmp/usr/bin/python checking whether /Users/johan/Gentoo/tmp/usr/bin/python 2.6.4 >= 2.7... configure: error: need at least version 2.7 of python spaam:~ johan$ Expected Results: i can bootstrap portage. I have Xcode 4.1 installed from App Store.
please edit the bootstrap_python function and set PV to 2.7.2, and see if that gets through on your side
didn't work so good.. i get this error with python (will attach the whole output): Traceback (most recent call last): File "./setup.py", line 1921, in <module> main() File "./setup.py", line 1915, in main 'Lib/smtpd.py'] File "/Users/johan/Gentoo/tmp/var/tmp/python-2.7.2/Python-2.7.2/Lib/distutils/core.py", line 152, in setup dist.run_commands() File "/Users/johan/Gentoo/tmp/var/tmp/python-2.7.2/Python-2.7.2/Lib/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/Users/johan/Gentoo/tmp/var/tmp/python-2.7.2/Python-2.7.2/Lib/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/Users/johan/Gentoo/tmp/var/tmp/python-2.7.2/Python-2.7.2/Lib/distutils/command/build.py", line 127, in run self.run_command(cmd_name) File "/Users/johan/Gentoo/tmp/var/tmp/python-2.7.2/Python-2.7.2/Lib/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/Users/johan/Gentoo/tmp/var/tmp/python-2.7.2/Python-2.7.2/Lib/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/Users/johan/Gentoo/tmp/var/tmp/python-2.7.2/Python-2.7.2/Lib/distutils/command/build_ext.py", line 340, in run self.build_extensions() File "./setup.py", line 250, in build_extensions build_ext.build_extensions(self) File "/Users/johan/Gentoo/tmp/var/tmp/python-2.7.2/Python-2.7.2/Lib/distutils/command/build_ext.py", line 449, in build_extensions self.build_extension(ext) File "./setup.py", line 286, in build_extension if not self.configure_ctypes(ext): File "./setup.py", line 1726, in configure_ctypes exec f in fficonfig File "build/temp.macosx-10.4-x86_64-2.7/libffi/fficonfig.py", line 33, in <module> ffi_sources += ffi_platforms['X86_DARWIN'] KeyError: 'X86_DARWIN' make: *** [sharedmods] Error 1 spaam:~ johan$
Created attachment 281443 [details] output from bootstrapping python
oh joy, the same as I have on ppc-macos. *sigh*
*** Bug 376945 has been marked as a duplicate of this bug. ***
So, the path to fix this is (as I see it): 1) Introduce a "bootstrap portage" that just needs py-2.6 since 2.7 won't build reliably. Does it build later though for those that can't build it early? 2) Make portage depend on py-2.6 (not likely, as gx86 (or upstream) has this depend too)
py-2.6 is just a lost case. I'm trying hard to get py-2.7.2 compiling.
plain (unpatched) python compiles out of the box on Darwin, for a change
redownload bootstrap-prefix.sh. It should now bootstrap python-2.7.2
it works now :) good job fabian :)