Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 554230

Summary: net-libs/nodejs-0.12.6 configure script fails for unusual gcc version string 5.2.0-alpha20150630
Product: Gentoo Linux Reporter: Helmut Jarausch <jarausch>
Component: Current packagesAssignee: Johan Bergström <bugs>
Status: RESOLVED NEEDINFO    
Severity: normal CC: patrick, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.