summaryrefslogtreecommitdiffstats
path: root/recipes-extended/libvirt/libvirt-python.inc
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2013-08-12 17:03:47 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2013-08-12 23:46:49 -0400
commita4565b8ce7614b3a6453220c31a4c103c9d857ef (patch)
tree46fc744e2f592cf1218433099ad2596d6d01c059 /recipes-extended/libvirt/libvirt-python.inc
parent7dfc79162c6745a0783e18f59d7f59f61dbb96cf (diff)
downloadmeta-virtualization-a4565b8ce7614b3a6453220c31a4c103c9d857ef.tar.gz
libvirt: fix python script's improper paths
libvirt generates several python scripts using its python/generator.py script. This uses the PYTHON variable, which in our case will be a full path to the sysroot that will not exist on the target. For this we are patching libvirt to allow for (but not require) TARGET_PYTHON to be defined and used when generating these python scripts. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-extended/libvirt/libvirt-python.inc')
-rw-r--r--recipes-extended/libvirt/libvirt-python.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/recipes-extended/libvirt/libvirt-python.inc b/recipes-extended/libvirt/libvirt-python.inc
index d4cc5f35..63e06577 100644
--- a/recipes-extended/libvirt/libvirt-python.inc
+++ b/recipes-extended/libvirt/libvirt-python.inc
@@ -15,3 +15,7 @@ FILES_${PN}-python-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*.a"
15FILES_${PN}-python-dev += "${PYTHON_SITEPACKAGES_DIR}/*.la" 15FILES_${PN}-python-dev += "${PYTHON_SITEPACKAGES_DIR}/*.la"
16FILES_${PN}-python-dbg += "${PYTHON_SITEPACKAGES_DIR}/.debug/" 16FILES_${PN}-python-dbg += "${PYTHON_SITEPACKAGES_DIR}/.debug/"
17FILES_${PN}-python += "${PYTHON_SITEPACKAGES_DIR}" 17FILES_${PN}-python += "${PYTHON_SITEPACKAGES_DIR}"
18
19EXTRA_OECONF += "TARGET_PYTHON=${bindir}/python"
20
21SRC_URI += "file://libvirt-allow-location-of-python-on-the-target-to-be.patch" \ No newline at end of file