Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 516476 - bootstrap fails due to python-2.7.6-r1
Summary: bootstrap fails due to python-2.7.6-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OS X
: Normal major with 1 vote (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-06 02:56 UTC by iloveosxzfs
Modified: 2014-08-12 11:43 UTC (History)
3 users (show)

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


Attachments
full build.log, compressed (build.log.zip,65.02 KB, application/zip)
2014-07-06 02:57 UTC, iloveosxzfs
Details
emerge --info (emerge.info,3.55 KB, text/plain)
2014-07-06 02:58 UTC, iloveosxzfs
Details
emerge -pqv (emerge-pqv.txt,561 bytes, text/plain)
2014-07-06 02:58 UTC, iloveosxzfs
Details
ebuild environment (environment,149.68 KB, text/plain)
2014-07-06 02:59 UTC, iloveosxzfs
Details
Patch for Makefile.pre.in (python-makefile-pre.patch,886 bytes, patch)
2014-07-06 15:58 UTC, iloveosxzfs
Details | Diff
Patch for python-2.7.6-r1.ebuild (python-ebuild.patch,628 bytes, patch)
2014-07-06 15:58 UTC, iloveosxzfs
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description iloveosxzfs 2014-07-06 02:56:06 UTC
bootstrap fails due python-2.7.6-r1. As a temporary workaround, I added "=dev-lang/python-2.7.6-r1" to etc/portage/package.mask.

Error:
running install_egg_info
Writing /Users/joe/Gentoo/var/tmp/portage/dev-lang/python-2.7.6-r1/image//Users/joe/Gentoo/usr/lib/python2.7/lib-dynload/Python-2.7.6-py2.7.egg-info
rm /Users/joe/Gentoo/var/tmp/portage/dev-lang/python-2.7.6-r1/image//Users/joe/Gentoo/usr/lib/python2.7/lib-dynload/_sysconfigdata.py*
ln -fs "../../../Python" "/Users/joe/Gentoo/var/tmp/portage/dev-lang/python-2.7.6-r1/image//Users/joe/Gentoo/usr/lib/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.a"
ln: failed to create symbolic link ‘/Users/joe/Gentoo/var/tmp/portage/dev-lang/python-2.7.6-r1/image//Users/joe/Gentoo/usr/lib/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.a’: No such file or directory
Makefile:1220: recipe for target 'frameworkinstallmaclib' failed
make: *** [frameworkinstallmaclib] Error 1
ERROR: dev-lang/python-2.7.6-r1::gentoo_prefix failed (install phase):
emake failed
Comment 1 iloveosxzfs 2014-07-06 02:57:17 UTC
Created attachment 380278 [details]
full build.log, compressed
Comment 2 iloveosxzfs 2014-07-06 02:58:06 UTC
Created attachment 380280 [details]
emerge --info
Comment 3 iloveosxzfs 2014-07-06 02:58:32 UTC
Created attachment 380282 [details]
emerge -pqv
Comment 4 iloveosxzfs 2014-07-06 02:59:22 UTC
Created attachment 380284 [details]
ebuild environment
Comment 5 iloveosxzfs 2014-07-06 09:34:16 UTC
So while the "temporary workaround" worked at first and let python compile, the bootstrap fails again later with the same error, but this time with respect to 2.7.5-r4 while re-emerging python.

I also just checked on my pre-existing prefix installation, and though python 2.7.6-r1 is installed successfully previously, it fails in the same place as the bootstrap if I try to re-emerge it. So this is a more general regression, not just one affecting bootstrap.
Comment 7 iloveosxzfs 2014-07-06 15:58:15 UTC
Created attachment 380310 [details, diff]
Patch for Makefile.pre.in
Comment 8 iloveosxzfs 2014-07-06 15:58:53 UTC
Created attachment 380312 [details, diff]
Patch for python-2.7.6-r1.ebuild
Comment 9 vice 2014-07-09 02:01:27 UTC
Bug happens on my system too. This bug affects more than one user. Status should be set to confirmed.
Comment 10 vice 2014-07-09 02:06:14 UTC
Same bug on my system. This bug affects more than one user. Status should be changed to confirmed.
Comment 11 NaWi.is 2014-07-13 11:32:07 UTC
Hello !

I am new here so I am sorry, if something is missing.

I downloaded the bootstrap script yesterday for the first time and had the same problem. This happened on Mac OS X 10.9.4 Mavericks with Xcode 5 and also on the same machine with 10.7.5 Lion with Xcode 4 and the old CLI tools.

Please let me know, if you need more informations. Thanks for solving this bug.
Comment 12 iloveosxzfs 2014-07-19 15:46:39 UTC
Another workaround I've found works is not to use the "aqua" USE flag with python-2.7.6-r1:

cd ${EPREFIX}
echo '=dev-lang/python-2.7.6-r1 -aqua' >> etc/portage/package.use
Comment 13 NaWi.is 2014-07-19 21:00:21 UTC
Thanks, that solved my problem ... but if you run the bootstrap-prefix.sh script the first time and it fails, then ${EPREFIX} is not set.

If 

echo ${EPREFIX}

returns nothing, then the correct command is 

echo '=dev-lang/python-2.7.6-r1 -aqua' >> $HOME/Gentoo/etc/portage/package.use

Or replace $HOME with the path you used as you run the script the first time.
Comment 14 iloveosxzfs 2014-07-20 05:26:53 UTC
Right. I did not mean to imply that your shell would magically know where you chose to put your Prefix installation. ;)
Comment 15 NaWi.is 2014-07-20 05:56:19 UTC
It was not meaned bad from my side.

I added the information only for people (like me) which are new to Gentoo-Prefix and had the same problem during the first run of the script.
Comment 16 Fabian Groffen gentoo-dev 2014-08-12 08:19:24 UTC
See the same thing on Lion
Comment 17 Fabian Groffen gentoo-dev 2014-08-12 11:43:20 UTC
Fix committed, I managed to get further in the bootstrap now.