Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 376913 - Cant bootstrap Gentoo Prefix because it installs python 2.6 and portage needs 2.7
Summary: Cant bootstrap Gentoo Prefix because it installs python 2.6 and portage needs...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
: 376945 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-07-29 12:53 UTC by Johan Andersson
Modified: 2011-07-29 21:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
output from bootstrapping python (bootstrap_pyton.txt,96.65 KB, text/plain)
2011-07-29 13:16 UTC, Johan Andersson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Andersson 2011-07-29 12:53:30 UTC
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.
Comment 1 Fabian Groffen gentoo-dev 2011-07-29 13:07:43 UTC
please edit the bootstrap_python function and set PV to 2.7.2, and see if that gets through on your side
Comment 2 Johan Andersson 2011-07-29 13:15:58 UTC
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$
Comment 3 Johan Andersson 2011-07-29 13:16:24 UTC
Created attachment 281443 [details]
output from bootstrapping python
Comment 4 Fabian Groffen gentoo-dev 2011-07-29 13:18:06 UTC
oh joy, the same as I have on ppc-macos.  *sigh*
Comment 5 Fabian Groffen gentoo-dev 2011-07-29 14:55:54 UTC
*** Bug 376945 has been marked as a duplicate of this bug. ***
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-07-29 18:49:34 UTC
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)
Comment 7 Fabian Groffen gentoo-dev 2011-07-29 19:49:37 UTC
py-2.6 is just a lost case.  I'm trying hard to get py-2.7.2 compiling.
Comment 8 Fabian Groffen gentoo-dev 2011-07-29 19:51:54 UTC
plain (unpatched) python compiles out of the box on Darwin, for a change
Comment 9 Fabian Groffen gentoo-dev 2011-07-29 20:51:42 UTC
redownload bootstrap-prefix.sh.  It should now bootstrap python-2.7.2
Comment 10 Johan Andersson 2011-07-29 21:00:34 UTC
it works now :) good job fabian :)