Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 637470 - =dev-lang/python-2.7.14 fails to emerge: 'invalid install_name found'
Summary: =dev-lang/python-2.7.14 fails to emerge: 'invalid install_name found'
Status: RESOLVED OBSOLETE
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:
: 642260 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-11-14 09:34 UTC by Anton
Modified: 2021-01-07 15:49 UTC (History)
1 user (show)

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


Attachments
build.log (build.log.gz,132.23 KB, application/x-gzip)
2017-11-14 09:38 UTC, Anton
Details
emerge --info '=dev-lang/python-2.7.14::gentoo_prefix' (emerge-info.log,4.59 KB, text/plain)
2017-11-14 09:39 UTC, Anton
Details
emerge -pqv '=dev-lang/python-2.7.14::gentoo_prefix' (emerge-pqv.log,195 bytes, text/plain)
2017-11-14 09:40 UTC, Anton
Details
Accidentally working ebuild? (python-2.7.14.ebuild,21.99 KB, text/plain)
2017-11-14 20:09 UTC, Anton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton 2017-11-14 09:34:42 UTC
Updating from python-2.7.12 to python-2.7.14, emerge fails with 'invalid install_name found' error. The relevant messages seem to be:

 * QA Notice: install_name references ${D}: /Users/anton/Gentoo/var/tmp/portage/dev-lang/python-2.7.14/image//Users/anton/Gentoo/usr/lib/Python.f
ramework/Versions/2.7/Python in /Users/anton/Gentoo/usr/lib/Python.framework/Versions/2.7/bin/pythonw2.7
 * QA Notice: install_name references ${D}: /Users/anton/Gentoo/var/tmp/portage/dev-lang/python-2.7.14/image//Users/anton/Gentoo/usr/lib/Python.f
ramework/Versions/2.7/Python in /Users/anton/Gentoo/usr/lib/Python.framework/Versions/2.7/bin/python2.7
 * QA Notice: invalid self-reference install_name /Users/anton/Gentoo/var/tmp/portage/dev-lang/python-2.7.14/image//Users/anton/Gentoo/usr/lib/Py
thon.framework/Versions/2.7/Python in /Users/anton/Gentoo/usr/lib/Python.framework/Versions/2.7/Python
 * QA Notice: install_name references ${D}: /Users/anton/Gentoo/var/tmp/portage/dev-lang/python-2.7.14/image//Users/anton/Gentoo/usr/lib/Python.f
ramework/Versions/2.7/Python in /Users/anton/Gentoo/usr/lib/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python

I can re-emerge python-2.7.12 without problem, and I see no meaningful difference between the two ebuilds.

Reproducible: Always
Comment 1 Anton 2017-11-14 09:38:44 UTC
Created attachment 504146 [details]
build.log
Comment 2 Anton 2017-11-14 09:39:29 UTC
Created attachment 504148 [details]
emerge --info '=dev-lang/python-2.7.14::gentoo_prefix'
Comment 3 Anton 2017-11-14 09:40:10 UTC
Created attachment 504150 [details]
emerge -pqv '=dev-lang/python-2.7.14::gentoo_prefix'
Comment 4 Anton 2017-11-14 20:09:40 UTC
Created attachment 504248 [details]
Accidentally working ebuild?

Scratch "Reproducible: Always"
Reproducible: Usually

Trying to find the specific failure point, I re-run 'emerge -1 =dev-lang/python-2.7.14' several times; at one of the iterations emerge finished successfully. The only changes I was making was adding "einfo" statements to the ebuild (attached)

The success looks intermittent: of the two subsequent attempts the first succeeded and the second failed.
Comment 5 abcdsoec 2017-11-15 09:38:15 UTC
Run into this problem at bootstraping.

Adding FEATURES="${FEATURES} allow_broken_install_names" to etc/make.conf may bypass this for the present.
Comment 6 Fabian Groffen gentoo-dev 2017-11-15 09:46:20 UTC
this is odd because it just installed fine on my Macs
Comment 7 Fabian Groffen gentoo-dev 2017-11-15 09:55:03 UTC
python team has not much to do here, this is Prefix-specific.
Comment 8 Anton 2017-11-16 22:07:47 UTC
(In reply to Fabian Groffen from comment #7)
> python team has not much to do here, this is Prefix-specific.

You are right, I have just blindly copied maintainers from the package metadata into the CC field. Sorry for that.
Comment 9 Fabian Groffen gentoo-dev 2017-11-18 09:56:40 UTC
Hi Anton, my comment was directed at the python team, so they would know not to bother.  You couldn't have known this, so no worries!
Comment 10 Pengcheng Xu 2017-12-27 00:54:00 UTC
*** Bug 642260 has been marked as a duplicate of this bug. ***
Comment 11 Pengcheng Xu 2017-12-27 01:09:48 UTC
Same problem here preventing bootstrap on High Sierra. Used allow_broken_install_names to get past this.
Comment 12 Fabian Groffen gentoo-dev 2017-12-27 09:09:36 UTC
Anton's accidentally working ebuild only adds einfos, so I wonder if re-emerging python makes it work somehow.  There is no real change between 2.7.12 and 2.7.14, but it very well may be a change in the python sources that causes this, but it definitely does work in some cases.
Comment 13 Fabian Groffen gentoo-dev 2017-12-29 13:27:14 UTC
can you try and see if the fix for bug #642590 actually make this work better as well?
Comment 14 * 2018-02-21 07:13:26 UTC
For the record, I got the same error with 10.13.3 on my Late 2013 MacBook Pro. Manually continued stage3 with:

    FEATURES="${FEATURES} allow_broken_install_names" ${EPREFIX}/bootstrap-prefix.sh ${EPREFIX} stage3_log

but I got messages like:

    FEATURES variable contains unknown value(s): allow_broken_install_names

so maybe that wasn't doing anything. But python-2.7.14 did install with no errors and stage3 completed.
Comment 15 Fabian Groffen gentoo-dev 2018-02-21 08:17:25 UTC
I bootstrapped on High Sierra yesterday, and it succeeded without problems.  Odd that it gives you this problem.
Comment 16 Fabian Groffen gentoo-dev 2021-01-07 15:49:24 UTC
this problem should be long fixed by now, using Python 3.8.6 in bootstrap