summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrent Piepho <tpiepho@impinj.com>2018-12-27 21:53:07 +0000
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-12-28 11:44:59 +0100
commit9000889da79b554e50c87fd5aad3aed11cf60bb2 (patch)
treefaba2371d96f5d46672d8d0f403cdd479c98dfa4
parent1c7d476727c279bb6b3a11d8fb62ddcf5f6ceeb7 (diff)
downloadbuildroot-9000889da79b554e50c87fd5aad3aed11cf60bb2.tar.gz
buildroot-9000889da79b554e50c87fd5aad3aed11cf60bb2.zip
package/qemu: remove broken/unneeded PYTHONPATH
Qemu uses the host-python when building, but the .mk file is pointing the host-python interpreter to the target python site-packages, which is both incorrect and also unneeded. Qemu doesn't need any extra packages [1], so there's no need to provide this path. And indeed qemu builds fine when setting the path to a non-existent directory. Since target qemu neither depends on nor selects target python, it's quite possible to build qemu without a target python, in which case the supplied PYTHONPATH is a non-existent directory. But even if qemu did want a python package, pointing the host-python to the target site-packages will not work. The package could contain a compiled shared library for the target architecture that the host python can not load. This can be tested by adding "import numpy" to one of qemu's python scripts and observing target python-numpy failing to load when the script is run at build time. [1] https://lists.gnu.org/archive/html/qemu-devel/2017-08/msg01758.html "Avoid third-party package dependencies - QEMU currently has none!" Signed-off-by: Trent Piepho <tpiepho@impinj.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/qemu/qemu.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index a1bd7e5d6e..3f51e88e1c 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -26,8 +26,7 @@ QEMU_OPTS =
QEMU_VARS = \
LIBTOOL=$(HOST_DIR)/bin/libtool \
- PYTHON=$(HOST_DIR)/bin/python2 \
- PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages
+ PYTHON=$(HOST_DIR)/bin/python2
# If we want to specify only a subset of targets, we must still enable all
# of them, so that QEMU properly builds its list of default targets, from
OpenPOWER on IntegriCloud