Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407259 - net-libs/nodejs-0.6.12: Failed to emerge with Python3 set as default
Summary: net-libs/nodejs-0.6.12: Failed to emerge with Python3 set as default
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-07 11:19 UTC by Pia Johansson
Modified: 2012-03-07 12:08 UTC (History)
0 users

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 Pia Johansson 2012-03-07 11:19:14 UTC
If the default python in the system is set to Python3, the package doesn't install. 

The configure script sets the variable PYTHON=python resulting in the following errors:

 File "/var/tmp/portage/net-libs/nodejs-0.6.12/work/node-v0.6.12/tools/waf-light", line 157, in <module>
    import Scripting
  File "/var/tmp/portage/net-libs/nodejs-0.6.12/work/node-v0.6.12/tools/wafadmin/Scripting.py", line 146
    except Utils.WafError, e:

The Makefile sets PYTHON ?= python, leading to the following errors:

  File "tools/getnodeversion.py", line 16
    print '%(major)s.%(minor)s.%(patch)s'% locals()
                                        ^
SyntaxError: invalid syntax
  File "tools/getnodeversion.py", line 16
    print '%(major)s.%(minor)s.%(patch)s'% locals()
                                        ^
SyntaxError: invalid syntax
  File "tools/getnodeversion.py", line 16
    print '%(major)s.%(minor)s.%(patch)s'% locals()
                                        ^
SyntaxError: invalid syntax
  File "tools/getnodeversion.py", line 16
    print '%(major)s.%(minor)s.%(patch)s'% locals()
                                        ^
SyntaxError: invalid syntax
  File "tools/getnodeversion.py", line 16
    print '%(major)s.%(minor)s.%(patch)s'% locals()
                                        ^
SyntaxError: invalid syntax
  File "tools/getnodeversion.py", line 16
    print '%(major)s.%(minor)s.%(patch)s'% locals()
                                        ^
SyntaxError: invalid syntax
  File "tools/getnodeversion.py", line 16
    print '%(major)s.%(minor)s.%(patch)s'% locals()
                                        ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "tools/waf-light", line 157, in <module>
    import Scripting
  File "/var/tmp/portage/net-libs/nodejs-0.6.12/work/node-v0.6.12/tools/wafadmin/Scripting.py", line 146
    except Utils.WafError, e:
                         ^
SyntaxError: invalid syntax
make: *** [program] Error 1
emake failed



Reproducible: Always




By setting the PYTHON variables in configure and Makefile to explicitly use python2, the package installs properly.
Comment 1 Patrick Lauer gentoo-dev 2012-03-07 12:08:21 UTC
+  07 Mar 2012; Patrick Lauer <patrick@gentoo.org> nodejs-0.6.12.ebuild:
+  Nail down python version for reality-challenged build system #407259