Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 496398 - Python 3.3.3 fails to compile on MacOS/X 10.9.1 because libpython3.3.dylib is not found
Summary: Python 3.3.3 fails to compile on MacOS/X 10.9.1 because libpython3.3.dylib is...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
: 496998 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-12-29 14:39 UTC by Jayson Reis
Modified: 2014-01-04 20:34 UTC (History)
2 users (show)

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


Attachments
build.log.xz (build.log.xz,37.54 KB, application/x-xz)
2013-12-29 14:43 UTC, Jayson Reis
Details
environment (environment,149.18 KB, text/plain)
2013-12-29 14:43 UTC, Jayson Reis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jayson Reis 2013-12-29 14:39:58 UTC
When compiling python 3.3.3 on 10.9.1 and make will make a bundle with bundlebuilder.py it tries to call new compiled python on work dir and sets DYLD_FRAMEWORK_PATH instead of DYLD_LIBRARY_PATH and python is not able to find its lib.
I could not find where to patch to test it, i'm new on portage.

Reproducible: Always

Steps to Reproduce:
On macos 10.9.1 try to install python:3.3 or just upgrade portage to 2.2.7-r2
Actual Results:  
It fail when creating the bundle, logs attached
Comment 1 Jayson Reis 2013-12-29 14:41:09 UTC
Portage 2.2.7-prefix (prefix/darwin/macos/10.9/x64, gcc-4.2.1, unavailable, 13.0.0 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Darwin-13.0.0-x86_64-i386-64bit
Timestamp of tree: Sun, 29 Dec 2013 04:36:31 +0000
app-shells/bash:      4.2_p39-r1
dev-lang/python:      2.7.5-r4, 3.2.5-r3
dev-util/pkgconfig:   0.28
sys-devel/autoconf:   2.69
sys-devel/automake:   1.14
sys-devel/gcc-config: 1.8-r00.1
sys-devel/libtool:    2.4.2
sys-devel/make:       4.0-r1
Repositories: gentoo_prefix
ACCEPT_KEYWORDS="~x64-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-apple-darwin13"
CFLAGS="-march=nocona"
CHOST="x86_64-apple-darwin13"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/terminfo"
CXXFLAGS=""
DISTDIR="/Users/jayson/Gentoo/usr/portage/distfiles"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-dead_strip_dylibs"
PKGDIR="/Users/jayson/Gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/Users/jayson/Gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/Users/jayson/Gentoo/var/tmp"
PORTDIR="/Users/jayson/Gentoo/usr/portage"
PORTDIR_OVERLAY=""
USE="aqua coreaudio cracklib cxx ipv6 mmx mmxext modules ncurses objc objc++ prefix readline sse sse2 ssl x64-macos zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="Darwin" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 2 Jayson Reis 2013-12-29 14:41:47 UTC
emerge -pqv '=dev-lang/python-3.3.3::gentoo_prefix'
[ebuild  NS   ] dev-lang/python-3.3.3 [2.7.5-r4, 3.2.5-r3] USE="aqua ipv6 ncurses readline ssl threads xml -build -doc -examples -gdbm (-hardened) -sqlite -tk -wininst"
Comment 3 Jayson Reis 2013-12-29 14:43:25 UTC
Created attachment 366450 [details]
build.log.xz
Comment 4 Jayson Reis 2013-12-29 14:43:53 UTC
Created attachment 366452 [details]
environment
Comment 5 Fabian Groffen gentoo-dev 2013-12-30 18:23:23 UTC
odd I didn't encounter this before
Comment 6 Fabian Groffen gentoo-dev 2013-12-30 18:55:43 UTC
I committed this:

--- python-3.3.3.ebuild (revision 61807)
+++ python-3.3.3.ebuild (revision 61808)
@@ -103,13 +103,9 @@
        # framework install to get the best of both worlds (non-standard)        sed -i \
                -e "s:FRAMEWORKINSTALLAPPSPREFIX=\":FRAMEWORKINSTALLAPPSPREFIX=\
"${EPREFIX}:" \
+               -e '/RUNSHARED=DYLD_FRAMEWORK_PATH/s/FRAMEWORK/LIBRARY/g' \
                configure.ac configure || die
-#              -e "s/frameworkinstallmaclib//" \
-#              -e "s/frameworkinstallunixtools//" \-#              -e "s/frameworkaltinstallunixtools//" \
-#              -e '/^if test \$enable_shared = "yes"/s/enable_shared = "yes"/en
able_framework/' \        sed -i -e '/find/s/$/ || true/' Mac/PythonLauncher/Makefile.in || die
-#      sed -i -e 's/@prefix@/@FRAMEWORKUNIXTOOLSPREFIX@/' Mac/Makefile.in || di
e
         # Disable ABI flags.
        sed -e "s/ABIFLAGS=\"\${ABIFLAGS}.*\"/:/" -i configure.ac || die "sed fa
iled"

(also did some cleanup)

In essence, we should use DYLD_LIBRARY_PATH due to the hacked up way of building we do.

Could you confirm this patch works for you?
Comment 7 Thomas Kahle (RETIRED) gentoo-dev 2013-12-30 19:20:29 UTC
Works for me. Thanks.
Comment 8 Fabian Groffen gentoo-dev 2013-12-30 19:27:25 UTC
thanks
Comment 9 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2014-01-04 20:34:30 UTC
*** Bug 496998 has been marked as a duplicate of this bug. ***