diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-03-07 23:18:10 -0500 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-03-08 14:34:03 -0400 |
| commit | 7a8ee8e986ea180f3a4d94d4d83d01c786488d96 (patch) | |
| tree | 014bf881e77fdfcf51b8bdb87295a137228c0ec2 /recipes-extended/libvirt/libvirt-python.inc | |
| parent | ec7c1b229b9b8c04e23bb454fc4f95893d53bd8e (diff) | |
| download | meta-virtualization-7a8ee8e986ea180f3a4d94d4d83d01c786488d96.tar.gz | |
libvirt: uprev to v6.1.0
Updating libvirt to the next major release series. With this, brings
some changes to the build:
- add python3-docutils-native to DEPENDS, since it is needed for doc
building
- remove a reference to libgnu.la from the Makefiles, since it is not
needed or provided in the build dependencies
- remove obselete packageconfig options: xenapi and phyp
- add an explicit do_compile rule (versus the autotools bbclass
variant), so we can create some directories before compilation
starts
- add ${B}/src to the PKG_CONFIG_PATH to the libvirt.pc file can be
found during build, as it is queried by libvirt-python
- with the ability to find the libvirt.pc file, we can also drop the
manipulations for libvirt_api_xml_path, as it is returned from
pkg-config queries.
- clear PKG_CONFIG_SYSROOT_DIR during libvirt-python builds, since
the libvirt.pc file already provides cflags/includes that are
contained to the build/src directory structure.
And finally, existing patches are refreshed to remove fuzz.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
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} |
