fix libvirt-python build problem
PATCH 1/1 fix libvirt-python build problem
remove python_incdir.patch and inherit pythonnative. use PACKAGECONFIG instead of EXTRA_OECONF. enable python in full PACKAGECONFIG.
--- recipes-extended/libvirt/libvirt-python.inc | 21 ++++++++++++--------- recipes-extended/libvirt/libvirt_1.0.3.bb | 2 +- 2 files changed, 13 insertions(+), 10 deletions(-)
recipes-extended/libvirt/libvirt-python.inc +12 -9
@@ -1,14 +1,17 @@ -inherit python-dir +inherit pythonnative python-dir -# Enable the Python tool support -EXTRA_OECONF += "--with-python=yes --with-python-inc-dir=-I${STAGING_INCDIR}/python${PYTHON_BASEVERSION}" +export STAGING_INCDIR +export STAGING_LIBDIR +export BUILD_SYS +export HOST_SYS -SRC_URI += " file://python_incdir.patch" - -DEPENDS += "python python-native" +PACKAGECONFIG += "python" +PACKAGECONFIG[python] = "--with-python,--without-python,python," RDEPENDS_${PN}-python += "python" PACKAGECONFIG_${PN}-python[xen] = ",,,xen-python" -PACKAGES += "${PN}-python-dbg ${PN}-python" -FILES_${PN}-python-dbg += "${libdir}/${PYTHON_DIR}/dist-packages/.debug/" -FILES_${PN}-python += "${libdir}/${PYTHON_DIR}/dist-packages" +PACKAGES += "${PN}-python-staticdev ${PN}-python-dev ${PN}-python-dbg ${PN}-python" +FILES_${PN}-python-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*.a" +FILES_${PN}-python-dev += "${PYTHON_SITEPACKAGES_DIR}/*.la" +FILES_${PN}-python-dbg += "${PYTHON_SITEPACKAGES_DIR}/.debug/" +FILES_${PN}-python += "${PYTHON_SITEPACKAGES_DIR}"
recipes-extended/libvirt/libvirt_1.0.3.bb +1 -1
@@ -106,7 +106,7 @@ INITSCRIPT_PARAMS_${PN}-libvirtd = "defaults 72" # full config PACKAGECONFIG ??= "qemu yajl xen libxl xen-inotify uml openvz vmware vbox esx \ - polkit lxc test remote macvtap libvirtd netcf" + polkit lxc test remote macvtap libvirtd netcf python" PACKAGECONFIG[qemu] = "--with-qemu,--without-qemu,qemu" PACKAGECONFIG[yajl] = "--with-yajl,--without-yajl,yajl,yajl"
Signature · 1 line
1.7.10.4
What's the head of your meta-virtualization ? It looks like you are missing:
commit 7040db74c375ef55d1b040f53071be29590882de
Author: Mihai Prica <[email protected]> Date: Thu Apr 18 18:10:42 2013 +0300
libvirt: Changed python bindings install location
The libvirt-python files were installed to dist-packages and this is not part of sys.path in yocto so they were not available to python. Changed this to site-packages.
After that change, the following line in your patch fails:
-FILES_${PN}-python-dbg += "${libdir}/${PYTHON_DIR}/dist-packages/.debug/"
Since the line is now:
FILES_${PN}-python-dbg += "${libdir}/${PYTHON_DIR}/site-packages/.debug/"
Can you double check and resend ?
At the same time, can you also update the log to show the "build problem" that the patch is fixing?
Cheers,
Bruce
Quoted 57 lines · Yao Zhao
remove python_incdir.patch and inherit pythonnative. use PACKAGECONFIG instead of
EXTRA_OECONF. enable python in full PACKAGECONFIG.Signed-off-by Yao Zhao <[email protected]>--- recipes-extended/libvirt/libvirt-python.inc | 21 ++++++++++++--------- recipes-extended/libvirt/libvirt_1.0.3.bb | 2 +- 2 files changed, 13 insertions(+), 10 deletions(-)recipes-extended/libvirt/libvirt-python.inc +12
-9@@ -1,14 +1,17 @@ -inherit python-dir +inherit pythonnative python-dir -# Enable the Python tool support -EXTRA_OECONF += "--with-python=yes --with-python-inc-dir=-I${STAGING_INCDIR}/python${PYTHON_BASEVERSION}" +export STAGING_INCDIR +export STAGING_LIBDIR +export BUILD_SYS +export HOST_SYS -SRC_URI += " file://python_incdir.patch" - -DEPENDS += "python python-native" +PACKAGECONFIG += "python" +PACKAGECONFIG[python] = "--with-python,--without-python,python," RDEPENDS_${PN}-python += "python" PACKAGECONFIG_${PN}-python[xen] = ",,,xen-python" -PACKAGES += "${PN}-python-dbg ${PN}-python" -FILES_${PN}-python-dbg += "${libdir}/${PYTHON_DIR}/dist-packages/.debug/" -FILES_${PN}-python += "${libdir}/${PYTHON_DIR}/dist-packages" +PACKAGES += "${PN}-python-staticdev ${PN}-python-dev ${PN}-python-dbg ${PN}-python" +FILES_${PN}-python-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*.a" +FILES_${PN}-python-dev += "${PYTHON_SITEPACKAGES_DIR}/*.la" +FILES_${PN}-python-dbg += "${PYTHON_SITEPACKAGES_DIR}/.debug/" +FILES_${PN}-python += "${PYTHON_SITEPACKAGES_DIR}"recipes-extended/libvirt/libvirt_1.0.3.bb +1
-2@@ -106,7 +106,7 @@ INITSCRIPT_PARAMS_${PN}-libvirtd = "defaults 72" # full config PACKAGECONFIG ??= "qemu yajl xen libxl xen-inotify uml openvz vmware vbox esx \ - polkit lxc test remote macvtap libvirtd netcf" + polkit lxc test remote macvtap libvirtd netcf python" PACKAGECONFIG[qemu] = "--with-qemu,--without-qemu,qemu" PACKAGECONFIG[yajl] = "--with-yajl,--without-yajl,yajl,yajl" --1.7.10.4
Quoted 4 lines
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Quoted 17 lines · Bruce Ashfield
What's the head of your meta-virtualization ? It looks like you are missing:
commit
7040db74c375ef55d1b040f53071be29590882deAuthor: Mihai Prica <[email protected]> Date: Thu Apr 18 18:10:42 2013 +0300libvirt: Changed python bindings install location
The libvirt-python files were installed to dist-packages and this is not part of sys.path in yocto so they were not available to python. Changed this to site-packages.
Signed-off-by Mihai Prica <[email protected]>Signed-off-by Bruce Ashfield <[email protected]>After that change, the following line in your patch fails:
Quoted 7 lines
-FILES_${PN}-python-dbg += "${libdir}/${PYTHON_DIR}/dist-packages/.debug/"
Since the line is now:
FILES_${PN}-python-dbg += "${libdir}/${PYTHON_DIR}/site-packages/.debug/"
Can you double check and resend ?
Sorry, I was confused by so many branches.
I will update accordingly.
Quoted 2 lines
At the same time, can you also update the log to show the "build problem" that the patch is fixing?
ok.
yao
Quoted 72 lines
Cheers,
Bruce
Quoted 57 lines · Yao Zhao
remove python_incdir.patch and inherit pythonnative. use PACKAGECONFIG instead of
EXTRA_OECONF. enable python in full PACKAGECONFIG.Signed-off-by Yao Zhao <[email protected]>--- recipes-extended/libvirt/libvirt-python.inc | 21 ++++++++++++--------- recipes-extended/libvirt/libvirt_1.0.3.bb | 2 +- 2 files changed, 13 insertions(+), 10 deletions(-)recipes-extended/libvirt/libvirt-python.inc +12
-9@@ -1,14 +1,17 @@ -inherit python-dir +inherit pythonnative python-dir -# Enable the Python tool support -EXTRA_OECONF += "--with-python=yes --with-python-inc-dir=-I${STAGING_INCDIR}/python${PYTHON_BASEVERSION}" +export STAGING_INCDIR +export STAGING_LIBDIR +export BUILD_SYS +export HOST_SYS -SRC_URI += " file://python_incdir.patch" - -DEPENDS += "python python-native" +PACKAGECONFIG += "python" +PACKAGECONFIG[python] = "--with-python,--without-python,python," RDEPENDS_${PN}-python += "python" PACKAGECONFIG_${PN}-python[xen] = ",,,xen-python" -PACKAGES += "${PN}-python-dbg ${PN}-python" -FILES_${PN}-python-dbg += "${libdir}/${PYTHON_DIR}/dist-packages/.debug/" -FILES_${PN}-python += "${libdir}/${PYTHON_DIR}/dist-packages" +PACKAGES += "${PN}-python-staticdev ${PN}-python-dev ${PN}-python-dbg ${PN}-python" +FILES_${PN}-python-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*.a" +FILES_${PN}-python-dev += "${PYTHON_SITEPACKAGES_DIR}/*.la" +FILES_${PN}-python-dbg += "${PYTHON_SITEPACKAGES_DIR}/.debug/" +FILES_${PN}-python += "${PYTHON_SITEPACKAGES_DIR}"recipes-extended/libvirt/libvirt_1.0.3.bb +1
-2@@ -106,7 +106,7 @@ INITSCRIPT_PARAMS_${PN}-libvirtd = "defaults 72" # full config PACKAGECONFIG ??= "qemu yajl xen libxl xen-inotify uml openvz vmware vbox esx \ - polkit lxc test remote macvtap libvirtd netcf" + polkit lxc test remote macvtap libvirtd netcf python" PACKAGECONFIG[qemu] = "--with-qemu,--without-qemu,qemu" PACKAGECONFIG[yajl] = "--with-yajl,--without-yajl,yajl,yajl" --1.7.10.4
Quoted 4 lines
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"