thomasvs / morituri

For those about to RIP - a Unix CD ripper preferring accuracy over speed
GNU General Public License v3.0
301 stars 42 forks source link

Error during `make` on for non-specified python2 path: "python2: bad interpreter" #86

Open Freso opened 10 years ago

Freso commented 10 years ago

Using PYTHON=python2for the make process of morituri, this error is encountered:

Making all in bash_completion.d
make[2]: Entering directory '[...]/morituri/etc/bash_completion.d'
PYTHONPATH=../..:$PYTHONPATH ./bash-compgen \
    rip morituri.rip.main.Rip > rip
/bin/sh: ./bash-compgen: python2: bad interpreter: No such file or directory
Makefile:457: recipe for target 'rip' failed
make[2]: *** [rip] Error 126

It used to work fine, but OTOH, specifying the full path (e.g., PYTHON=/usr/bin/python2) seems to work, so not sure if it is worth spending energy on.

thomasvs commented 10 years ago

a patch was merged to change from AS_PYTHON to AM_PYTHON which likely affected this. Looking at its code, it indeed expects PYTHON to be set to a full path.

I'd say that specifying it relatively before was an unintended side effect, so I suggest we close this?