[aur-general] Problem with python versions when building iojs package
Hello fellow Arch users, and good whatever time of the day is in your time zone. I'm currently maintaining the iojs package which just hit 2.0.0 and for some reason it's causing a bit of trouble with python versions. The package was able to build as a copy and adapt from the nodejs package from the repos, until 1.8.1, but now it doesn't build because what I think is some kind of python version mismatch [ 0 ], but I don't know python. I've been looking at the changelog from the iojs project but nothing of what I've seen for now seems to suggest a change that could cause this and I'm totally lost. Problem is, my scripting and PKGBUILD skills are a little rusty and I don't know exactly how to address this, as I've been for a couple of hours with no success. You'll find the PKGBUILD at [ 1 ] Any hints? Thank you [ 0 ] : http://sprunge.us/eMeO [ 1 ] : http://sprunge.us/CMJL
Hi, * Alexandre Ferrando <alferpal@gmail.com> [2015-05-05 15:58:02 +0200]:
The package was able to build as a copy and adapt from the nodejs package from the repos, until 1.8.1, but now it doesn't build because what I think is some kind of python version mismatch [ 0 ], but I don't know python.
This looks like node-gyp is calling Python: gyp: Call to 'python -c "import sys; print sys.byteorder"' returned exit status 1. while loading dependencies of /dev/shm/iojs/src/iojs-v2.0.0/node.gyp while trying to load /dev/shm/iojs/src/iojs-v2.0.0/node.gyp According to https://www.npmjs.com/package/node-gyp#installation you can select the Python version using the --python argument to node-gyp. I don't see it invoked from the PKGBUILD directly, so I guess you'll need to find the file where it's invoked and patch that to pass that argument. Florian -- http://www.the-compiler.org | me@the-compiler.org (Mail/XMPP) GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc I love long mails! | http://email.is-not-s.ms/
On 05/05/2015 15:58, Alexandre Ferrando wrote:
Hello fellow Arch users, and good whatever time of the day is in your time zone.
I'm currently maintaining the iojs package which just hit 2.0.0 and for some reason it's causing a bit of trouble with python versions.
The package was able to build as a copy and adapt from the nodejs package from the repos, until 1.8.1, but now it doesn't build because what I think is some kind of python version mismatch [ 0 ], but I don't know python.
I've been looking at the changelog from the iojs project but nothing of what I've seen for now seems to suggest a change that could cause this and I'm totally lost.
Problem is, my scripting and PKGBUILD skills are a little rusty and I don't know exactly how to address this, as I've been for a couple of hours with no success.
You'll find the PKGBUILD at [ 1 ]
Any hints?
Thank you
[ 0 ] : http://sprunge.us/eMeO [ 1 ] : http://sprunge.us/CMJL
Hi, the problem seems to be in this two files: src/iojs-v2.0.0/deps/v8/build/toolchain.gypi - line 41 vim src/iojs-v2.0.0/tools/gyp/gyp - line 8 You may want to add the following expressions to the sed invocation inside the prepare function. -e 's_^\( *exec \+\)python\( \+.*\)$_\1python2\2_'\ -e 's_^\(.*\)python\( \+-c \+.*\)$_\1python2\2_'\
On 5 May 2015 at 18:35, Maurizio D'Addona <mauritiusdadd@gmail.com> wrote:
Hello fellow Arch users, and good whatever time of the day is in your time zone.
I'm currently maintaining the iojs package which just hit 2.0.0 and for some reason it's causing a bit of trouble with python versions.
The package was able to build as a copy and adapt from the nodejs package from the repos, until 1.8.1, but now it doesn't build because what I
On 05/05/2015 15:58, Alexandre Ferrando wrote: think
is some kind of python version mismatch [ 0 ], but I don't know python.
I've been looking at the changelog from the iojs project but nothing of what I've seen for now seems to suggest a change that could cause this and I'm totally lost.
Problem is, my scripting and PKGBUILD skills are a little rusty and I don't know exactly how to address this, as I've been for a couple of hours with no success.
You'll find the PKGBUILD at [ 1 ]
Any hints?
Thank you
[ 0 ] : http://sprunge.us/eMeO [ 1 ] : http://sprunge.us/CMJL
Hi,
the problem seems to be in this two files:
src/iojs-v2.0.0/deps/v8/build/toolchain.gypi - line 41 vim src/iojs-v2.0.0/tools/gyp/gyp - line 8
You may want to add the following expressions to the sed invocation inside the prepare function.
-e 's_^\( *exec \+\)python\( \+.*\)$_\1python2\2_'\ -e 's_^\(.*\)python\( \+-c \+.*\)$_\1python2\2_'\
Indeed that did the job. Thank you very much, Maurizio
participants (3)
-
Alexandre Ferrando
-
Florian Bruhin
-
Maurizio D'Addona