Bug 1111913

Summary: gyp broken in EL5
Product: [Fedora] Fedora EPEL Reporter: Veeti Paananen <veeti.paananen>
Component: gypAssignee: Akira TAGOH <tagoh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: el5CC: tagoh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gyp-0.1-0.15.1617svn.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-25 12:55:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Update gyp to Python 2.6 none

Description Veeti Paananen 2014-06-21 22:42:29 UTC
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 ?
    sys.exit(gyp.main(sys.argv[1:]))
  File "/usr/lib/python2.4/site-packages/gyp/__init__.py", line 462, in main
    options.circular_check)
  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.

Comment 1 Akira TAGOH 2014-06-25 03:55:42 UTC
Thanks for the patch. but I don't want to fork the spec among releases. so that should be ifdef'ed.

Comment 2 Akira TAGOH 2014-06-25 12:55:29 UTC
Fixed in gyp-0.1-0.15.1617svn.el5.

Comment 3 Fedora Update System 2014-06-29 22:18:00 UTC
gyp-0.1-0.15.1617svn.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/gyp-0.1-0.15.1617svn.el5

Comment 4 Fedora Update System 2014-08-01 16:42:29 UTC
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.