kazuhisya/nodejs-rpm

Problem if using the default Python 2.4 on RHEL 5

victor73 opened this issue · 1 comments

There seems to be a line in the configure that doesn't work with the default Python on RHEL 5 systems. If using Python 2.6 or better by altering the PATH to another install, the build process does not experience the failure illustrated below:

$ rpmbuild -bb nodejs.spec 
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.94297
+ umask 022
+ cd /home/user/rpm/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/user/rpm/BUILD
+ rm -rf node-v0.8.5
+ /usr/bin/gzip -dc /home/user/rpm/SOURCES/node-v0.8.5.tar.gz
+ tar -xf -
tar: Read 1536 bytes from -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd node-v0.8.5
++ /usr/bin/id -u
+ '[' 1000 = 0 ']'
++ /usr/bin/id -u
+ '[' 1000 = 0 ']'
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.88012
+ umask 022
+ cd /home/user/rpm/BUILD
+ cd node-v0.8.5
+ LANG=C
+ export LANG
+ unset DISPLAY
+ ./configure --prefix=/usr
  File "./configure", line 325
    o['default_configuration'] = 'Debug' if options.debug else 'Release'

This is not a problem of rpm-spec file , it is specification of upstream.

see also:
Issue #2609: ./configure fails on Python 2.4 · joyent/node
nodejs/node-v0.x-archive#2609

Installation · joyent/node Wiki
https://github.com/joyent/node/wiki/Installation