diff options
Diffstat (limited to 'recipes-extended/libvirt/libvirt-python.inc')
| -rw-r--r-- | recipes-extended/libvirt/libvirt-python.inc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/recipes-extended/libvirt/libvirt-python.inc b/recipes-extended/libvirt/libvirt-python.inc index d15500ea..c5b0fbd2 100644 --- a/recipes-extended/libvirt/libvirt-python.inc +++ b/recipes-extended/libvirt/libvirt-python.inc | |||
| @@ -16,10 +16,9 @@ FILES_${PN}-python-dbg += "${PYTHON_SITEPACKAGES_DIR}/.debug/" | |||
| 16 | FILES_${PN}-python = "${bindir}/* ${libdir}/* ${libdir}/${PYTHON_DIR}/*" | 16 | FILES_${PN}-python = "${bindir}/* ${libdir}/* ${libdir}/${PYTHON_DIR}/*" |
| 17 | 17 | ||
| 18 | SRC_URI += "http://libvirt.org/sources/python/libvirt-python-${PV}.tar.gz;name=libvirt_python" | 18 | SRC_URI += "http://libvirt.org/sources/python/libvirt-python-${PV}.tar.gz;name=libvirt_python" |
| 19 | SRC_URI += "file://libvirt_api_xml_path.patch;patchdir=../libvirt-python-${PV}" | ||
| 20 | 19 | ||
| 21 | SRC_URI[libvirt_python.md5sum] = "4c8c38c409f967b8b47e0d7c6df050a4" | 20 | SRC_URI[libvirt_python.md5sum] = "2834626b07da6ac4ca1559abfd55c118" |
| 22 | SRC_URI[libvirt_python.sha256sum] = "561cafedb83e41880405905f6309f4a86981cfe05edbbc83c839f7c47d8ba603" | 21 | SRC_URI[libvirt_python.sha256sum] = "be644f4809c0e1d368e3ac065df3c66a26dcfe61ecb607ee9706e1799f22c35a" |
| 23 | 22 | ||
| 24 | export LIBVIRT_API_PATH = "${S}/docs/libvirt-api.xml" | 23 | export LIBVIRT_API_PATH = "${S}/docs/libvirt-api.xml" |
| 25 | export LIBVIRT_CFLAGS = "-I${S}/include" | 24 | export LIBVIRT_CFLAGS = "-I${S}/include" |
| @@ -41,6 +40,10 @@ python __anonymous () { | |||
| 41 | 40 | ||
| 42 | do_compile_append() { | 41 | do_compile_append() { |
| 43 | if [ "${LIBVIRT_PYTHON_ENABLE}" = "1" ]; then | 42 | if [ "${LIBVIRT_PYTHON_ENABLE}" = "1" ]; then |
| 43 | # we need the python bindings to look into our source dir, not | ||
| 44 | # the syroot staged pkgconfig entries. So we clear the sysroot | ||
| 45 | # for just this portion. | ||
| 46 | export PKG_CONFIG_SYSROOT_DIR= | ||
| 44 | cd ${WORKDIR}/${BPN}-python-${PV} && \ | 47 | cd ${WORKDIR}/${BPN}-python-${PV} && \ |
| 45 | ${STAGING_BINDIR_NATIVE}/python3-native/python3 setup.py build | 48 | ${STAGING_BINDIR_NATIVE}/python3-native/python3 setup.py build |
| 46 | fi | 49 | fi |
| @@ -48,6 +51,10 @@ do_compile_append() { | |||
| 48 | 51 | ||
| 49 | do_install_append() { | 52 | do_install_append() { |
| 50 | if [ "${LIBVIRT_PYTHON_ENABLE}" = "1" ]; then | 53 | if [ "${LIBVIRT_PYTHON_ENABLE}" = "1" ]; then |
| 54 | # we need the python bindings to look into our source dir, not | ||
| 55 | # the syroot staged pkgconfig entries. So we clear the sysroot | ||
| 56 | # for just this portion. | ||
| 57 | export PKG_CONFIG_SYSROOT_DIR= | ||
| 51 | cd ${WORKDIR}/${BPN}-python-${PV} && \ | 58 | cd ${WORKDIR}/${BPN}-python-${PV} && \ |
| 52 | ${STAGING_BINDIR_NATIVE}/python3-native/python3 setup.py install \ | 59 | ${STAGING_BINDIR_NATIVE}/python3-native/python3 setup.py install \ |
| 53 | --install-lib=${D}/${PYTHON_SITEPACKAGES_DIR} ${LIBVIRT_INSTALL_ARGS} | 60 | --install-lib=${D}/${PYTHON_SITEPACKAGES_DIR} ${LIBVIRT_INSTALL_ARGS} |
