python-pypcap: explicitly call pyrexc using python2 to fix too long shebang
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 14 Oct 2015 13:09:11 +0000 (15:09 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 14 Oct 2015 14:52:53 +0000 (16:52 +0200)
commitfd43cadc6bf0c814d30ac0112ddf31ee5e72af5b
treed2d76d8a182e4daf74490969b5d26d3ae8dc2575
parent0a854ce4ccc60eb58a8c53552af6b3bdc445bae9
python-pypcap: explicitly call pyrexc using python2 to fix too long shebang

python-pypcap calls thez pyrexc Python script directly. This script is
generated by the pyrexc installation with a shebang line that has a
full path to our host-python interpreter. Unfortunately, since Linux
cuts the shebang line at 128 characters, it means that if you have an
output directory with a very very long name, the pyrexc script does
not run.

To solve that, we explicitly invoke pyrexc with the python2
interpreter.

Note that invoking the python2 interpreter directly is safe because
python-pypcap is only available for Python 2.x, so we are just that
$(HOST_DIR)/usr/bin/python2 is available.

Fixes #8281.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/python-pypcap/python-pypcap.mk