Created attachment 911096 [details]
Update gyp to Python 2.6
gyp is incompatible with the default Python 2.4 on EL5: the tool fails to run due to syntax errors. For example:
bash-3.2# gyp -f make --depth `pwd` http_parser.gyp
Traceback (most recent call last):
File "/usr/bin/gyp", line 18, in ?
File "/usr/lib/python2.4/site-packages/gyp/__init__.py", line 462, in main
File "/usr/lib/python2.4/site-packages/gyp/__init__.py", line 61, in Load
generator = __import__(generator_name, globals(), locals(), generator_name)
File "/usr/lib/python2.4/site-packages/gyp/generator/make.py", line 64
return params.get('flavor', 'mac' if sys.platform == 'darwin' else 'linux')
SyntaxError: invalid syntax
My guess is that the package should be built on the python26 package available in EPEL. I've attached a possible patch to the spec that works for me.
Thanks for the patch. but I don't want to fork the spec among releases. so that should be ifdef'ed.
Fixed in gyp-0.1-0.15.1617svn.el5.
gyp-0.1-0.15.1617svn.el5 has been submitted as an update for Fedora EPEL 5.
gyp-0.1-0.15.1617svn.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.