| 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 packages | Assignee: | 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: | --- | |
Can you attach the full build.log and config.log too. Thanks. emerge --info would be great. I'll have a look at fixing this upstream once I have more info. |
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))