Bootstrap fails on OS X Yosemite due to python compilation errors. I tried setting USE=-aqua, but it still fails to compile, with a different error. Build logs below. Reproducible: Always
Created attachment 387574 [details] Build log with USE=aqua
Created attachment 387576 [details] Build log with USE=-aqua
Created attachment 387664 [details] python-2.7.5-r4 build log with USE=aqua python-2.7.5-r4 seems to compile with USE=aqua, but there is a missing symlink during installation phase that causes failure. Uploading last 1000 lines due to 1M size limit.
Created attachment 387764 [details] python-2.7.8.ebuild I managed to compile python-2.7.8 with the attached ebuild. What did the trick was to set MACOSX_DEPLOYMENT_TARGET=10.4 (this is what's in the Makefile of a vanilla python tarball). Below is what I changed from python-2.7.6-r1.ebuild --- python-2.7.6-r1.ebuild 2014-10-14 05:13:58.000000000 -0300 +++ python-2.7.8.ebuild 2014-10-29 22:18:49.000000000 -0200 @@ -14,10 +14,7 @@ DESCRIPTION="An interpreted, interactive, object-oriented programming language" HOMEPAGE="http://www.python.org/" -SRC_URI="http://www.python.org/ftp/python/${PV}/${MY_P}.tar.xz - mirror://gentoo/python-gentoo-patches-${PV}-${PATCHSET_REVISION}.tar.xz - http://dev.gentoo.org/~floppym/python/python-gentoo-patches-${PV}-${PATCHSET_REVISION}.tar.xz - prefix? ( http://dev.gentoo.org/~grobian/distfiles/python-prefix-${PV}-gentoo-patches${PREFIX_PATCHREV}.tar.bz2 )" +SRC_URI="http://www.python.org/ftp/python/${PV}/${MY_P}.tar.xz" LICENSE="PSF-2" SLOT="2.7" @@ -100,15 +97,6 @@ # this line: #local EPATCH_EXCLUDE=" 01_all_prefix-no-patch-invention.patch" - EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" - epatch "${FILESDIR}/python-2.7-issue18235.patch" - epatch "${FILESDIR}/python-2.7-issue17919.patch" - - # Prefix' round of patches - # http://prefix.gentooexperimental.org:8000/python-patches-2_7 - EPATCH_EXCLUDE="${excluded_patches}" EPATCH_SUFFIX="patch" \ - epatch "${WORKDIR}"/python-prefix-${PV}-gentoo-patches${PREFIX_PATCHREV} - if use aqua ; then # make sure we don't get a framework reference here sed -i -e '/-DPREFIX=/s:$(prefix):$(FRAMEWORKUNIXTOOLSPREFIX):' \ @@ -119,13 +107,11 @@ configure.ac configure || die # we handle creation of symlinks in src_install sed -i -e '/ln -fs .*PYTHONFRAMEWORK/d' Makefile.pre.in || die + sed -i -e '/MACOSX_DEPLOYMENT_TARGET/s/10.9/10.4/' Makefile.pre.in || die fi # don't try to do fancy things on Darwin sed -i -e 's/__APPLE__/__NO_MUCKING_AROUND__/g' Modules/readline.c || die - # Fix for cross-compiling. - epatch "${FILESDIR}/python-2.7.5-nonfatal-compileall.patch" - epatch "${FILESDIR}"/python-2.7-aix-dlopen-soname.patch # libtool-built modules # On AIX, we've wrapped /usr/ccs/bin/nm to work around long TMPDIR. @@ -147,9 +133,6 @@ epatch_user - # fix for CVE-2014-1912 (bug #500518) - epatch "${FILESDIR}"/${P}-recvfrom_into_buffer_overflow.patch - eautoconf eautoheader }
stripping all Prefix patches is not the solution, it will kill you further down the road.
Setting MACOSX_DEPLOYMENT_TARGET=10.4 in python-2.7.6-r1.ebuild also works. I used python-2.7.8 because I went to python.org and got the most recent tarball to try to compile by hand. The patch below should make it compile, at least with USE=-aqua. --- python-2.7.6-r1.ebuild 2014-10-14 05:13:58.000000000 -0300 +++ python-2.7.6-r2.ebuild 2014-10-30 17:07:43.000000000 -0200 @@ -123,6 +123,9 @@ # don't try to do fancy things on Darwin sed -i -e 's/__APPLE__/__NO_MUCKING_AROUND__/g' Modules/readline.c || die + # python fails on OS X with target 10.9 (bug #527116) + sed -i -e '/MACOSX_DEPLOYMENT_TARGET/s/10.9/10.4/' Makefile.pre.in || die + # Fix for cross-compiling. epatch "${FILESDIR}/python-2.7.5-nonfatal-compileall.patch"
Fixed for now due to using clang for python.