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>
Google Code is a closing forge, python-pypcap has already made the
move to Github.
We are not using the latest available tag as it dates back from 2005,
and ~20 more commits have been made after the last tag. Therefore,
we're using the latest commit.
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>