Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 492864 - www-client/chromium with file-5.16: gyp: Call to '../build/linux/python_arch.sh /usr/lib/libpython2.6.so.1.0' returned exit status 1.
Summary: www-client/chromium with file-5.16: gyp: Call to '../build/linux/python_arch....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-29 13:09 UTC by Yannick Schaeffer
Modified: 2013-12-03 19:06 UTC (History)
4 users (show)

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


Attachments
emerge --info =www-client/chromium-32.1700.0.19 output (chromium.info,15.76 KB, text/plain)
2013-11-29 13:11 UTC, Yannick Schaeffer
Details
Build log of www-client/chromium-32.1700.0.19 (chromium-build.log,17.16 KB, text/x-log)
2013-11-29 13:11 UTC, Yannick Schaeffer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yannick Schaeffer 2013-11-29 13:09:34 UTC
When emerging www-client/chromium-32.0.1700.19 it fails at configure in the Gyp configuration, trying to use /usr/lib/libpython2.6.so.1.0 when I only have python 2.7.5 and python 3.3.2

Emerging : [ebuild     U ] www-client/chromium-32.0.1700.19 [31.0.1650.39] USE="cups custom-cflags* pulseaudio tcmalloc* -bindist -gnome -gnome-keyring -kerberos (-neon) (-selinux) (-system-sqlite) {-test} (-gps%)" LINGUAS="en_GB -am -ar -bg -bn -ca -cs -da -de -el -es -es_LA -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt_BR -pt_PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh_CN -zh_TW" 

Reproducible: Always

Steps to Reproduce:
1.Emerge -uDN world
2. trying to update chromium.
3.
Actual Results:  
The emerge fail

Expected Results:  
Chromium should update
Comment 1 Yannick Schaeffer 2013-11-29 13:11:19 UTC
Created attachment 364196 [details]
emerge --info =www-client/chromium-32.1700.0.19 output
Comment 2 Yannick Schaeffer 2013-11-29 13:11:48 UTC
Created attachment 364198 [details]
Build log of www-client/chromium-32.1700.0.19
Comment 3 Mike Gilbert gentoo-dev 2013-11-29 17:06:28 UTC
I'm not able to reproduce the failure after removing python:2.6. I'm actually not sure why it is working for me given the call that is being made in common.gypi.
Comment 4 cruzki 2013-12-03 11:16:22 UTC
I have the same problem but without having instaled python 3.3.2
Comment 5 Ubiquitine 2013-12-03 14:07:19 UTC
Same problem. Solved it by temporary installing dev-lang/python:2.6 .
Nevertheless, some fix for ebuild should be performed.
Comment 6 John Keeping 2013-12-03 17:33:00 UTC
I encountered this problem and it was fixed by reverting sys-apps/file to 5.15.  file-5.16 contains the following "fix":

	* fix erroneous non-zero exit code from non-existant file and message

which seems to be the cause of the problem since the first thing the python_arch.sh script does is exit with sucess if file fails, but now file does not fail and so it continues trying other tests, all of which fail.
Comment 7 Mike Gilbert gentoo-dev 2013-12-03 17:52:08 UTC
(In reply to John Keeping from comment #6)

Nice catch! My system pulled in file-5.16 on Dec 1, and I am now able to reproduce the failure.

It looks like there are some gyp variables I can play with to resolve this.
Comment 8 Mike Gilbert gentoo-dev 2013-12-03 19:00:26 UTC
+  03 Dec 2013; Mike Gilbert <floppym@gentoo.org> chromium-31.0.1650.57.ebuild,
+  chromium-32.0.1700.19.ebuild, chromium-33.0.1711.3.ebuild:
+  Set python version and libdir so that python_arch.sh can find libpython. Bug
+  492864 by Yannick Schaeffer. Thanks to John Keeping for the helpful hint.