Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 554230 - net-libs/nodejs-0.12.6 configure script fails for unusual gcc version string 5.2.0-alpha20150630
Summary: net-libs/nodejs-0.12.6 configure script fails for unusual gcc version string ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Johan Bergström
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-08 12:11 UTC by Helmut Jarausch
Modified: 2016-10-25 06:07 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2015-07-08 12:11:00 UTC
The configure script of net-libs/nodejs-0.12.6 contains the following
Python code

   proc = subprocess.Popen(shlex.split(CC) + ['-dumpversion'],
                           stdout=subprocess.PIPE)
   version = tuple(map(int, proc.communicate()[0].split('.')))

This fails if the version string contains non-digits like (here)

5.2.0-alpha20150630

A possible fix is to replace the computation of the version tuple by

version = proc.communicate()[0].split('.')
version[2]= version[2].split('-')[0]
version = tuple(map(int, version))
Comment 1 Jason Zaman gentoo-dev 2015-07-12 12:49:16 UTC
Can you attach the full build.log and config.log too.
Comment 2 Johan Bergström 2015-07-12 22:00:29 UTC
Thanks. emerge --info would be great. I'll have a look at fixing this upstream once I have more info.