diff options
-rw-r--r-- | recipes-extended/libvirt/libvirt-python.inc | 8 | ||||
-rw-r--r-- | recipes-extended/libvirt/libvirt_10.0.0.bb | 21 |
2 files changed, 15 insertions, 14 deletions
diff --git a/recipes-extended/libvirt/libvirt-python.inc b/recipes-extended/libvirt/libvirt-python.inc index 6fb2b68c..40c362d6 100644 --- a/recipes-extended/libvirt/libvirt-python.inc +++ b/recipes-extended/libvirt/libvirt-python.inc | |||
@@ -18,7 +18,7 @@ FILES:${PN}-python = "${bindir}/* ${libdir}/* ${libdir}/${PYTHON_DIR}/*" | |||
18 | # Currently the libvirt-python debug libraries contain buildpaths | 18 | # Currently the libvirt-python debug libraries contain buildpaths |
19 | INSANE_SKIP:${PN}-dbg += "buildpaths" | 19 | INSANE_SKIP:${PN}-dbg += "buildpaths" |
20 | 20 | ||
21 | SRC_URI += "http://libvirt.org/sources/python/libvirt-python-${PV}.tar.gz;name=libvirt_python" | 21 | SRC_URI += "http://libvirt.org/sources/python/${BPN}-python-${PV}.tar.gz;name=libvirt_python;subdir=${BP}" |
22 | 22 | ||
23 | SRC_URI[libvirt_python.sha256sum] = "a82588f0e7db53eda7b7dbcbc448b0ec43e00a8c77cac69644495299b410c20d" | 23 | SRC_URI[libvirt_python.sha256sum] = "a82588f0e7db53eda7b7dbcbc448b0ec43e00a8c77cac69644495299b410c20d" |
24 | 24 | ||
@@ -46,8 +46,9 @@ do_compile:append() { | |||
46 | # the syroot staged pkgconfig entries. So we clear the sysroot | 46 | # the syroot staged pkgconfig entries. So we clear the sysroot |
47 | # for just this portion. | 47 | # for just this portion. |
48 | export PKG_CONFIG_SYSROOT_DIR= | 48 | export PKG_CONFIG_SYSROOT_DIR= |
49 | cd ${WORKDIR}/${BPN}-python-${PV} && \ | 49 | cd ${S}/${BPN}-python-${PV} && \ |
50 | ${STAGING_BINDIR_NATIVE}/python3-native/python3 setup.py build | 50 | ${STAGING_BINDIR_NATIVE}/python3-native/python3 setup.py build |
51 | cd - | ||
51 | fi | 52 | fi |
52 | } | 53 | } |
53 | 54 | ||
@@ -57,8 +58,9 @@ do_install:append() { | |||
57 | # the syroot staged pkgconfig entries. So we clear the sysroot | 58 | # the syroot staged pkgconfig entries. So we clear the sysroot |
58 | # for just this portion. | 59 | # for just this portion. |
59 | export PKG_CONFIG_SYSROOT_DIR= | 60 | export PKG_CONFIG_SYSROOT_DIR= |
60 | cd ${WORKDIR}/${BPN}-python-${PV} && \ | 61 | cd ${S}/${BPN}-python-${PV} && \ |
61 | ${STAGING_BINDIR_NATIVE}/python3-native/python3 setup.py install \ | 62 | ${STAGING_BINDIR_NATIVE}/python3-native/python3 setup.py install \ |
62 | --install-lib=${D}/${PYTHON_SITEPACKAGES_DIR} ${LIBVIRT_INSTALL_ARGS} | 63 | --install-lib=${D}/${PYTHON_SITEPACKAGES_DIR} ${LIBVIRT_INSTALL_ARGS} |
64 | cd - | ||
63 | fi | 65 | fi |
64 | } | 66 | } |
diff --git a/recipes-extended/libvirt/libvirt_10.0.0.bb b/recipes-extended/libvirt/libvirt_10.0.0.bb index 9ad1f798..8e54406a 100644 --- a/recipes-extended/libvirt/libvirt_10.0.0.bb +++ b/recipes-extended/libvirt/libvirt_10.0.0.bb | |||
@@ -24,12 +24,12 @@ RDEPENDS:libvirt-libvirtd:append:aarch64 = " dmidecode" | |||
24 | #connman blocks the 53 port and libvirtd can't start its DNS service | 24 | #connman blocks the 53 port and libvirtd can't start its DNS service |
25 | RCONFLICTS:${PN}_libvirtd = "connman" | 25 | RCONFLICTS:${PN}_libvirtd = "connman" |
26 | 26 | ||
27 | SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.xz;name=libvirt \ | 27 | SRC_URI = "http://libvirt.org/sources/${BP}.tar.xz;name=libvirt \ |
28 | file://libvirtd.sh \ | 28 | file://libvirtd.sh \ |
29 | file://libvirtd.conf \ | 29 | file://libvirtd.conf \ |
30 | file://dnsmasq.conf \ | 30 | file://dnsmasq.conf \ |
31 | file://hook_support.py \ | 31 | file://hook_support.py \ |
32 | file://gnutls-helper.py \ | 32 | file://gnutls-helper.py;subdir=${BP} \ |
33 | file://0001-prevent-gendispatch.pl-generating-build-path-in-code.patch \ | 33 | file://0001-prevent-gendispatch.pl-generating-build-path-in-code.patch \ |
34 | file://0001-messon.build-remove-build-path-information-to-avoid-.patch \ | 34 | file://0001-messon.build-remove-build-path-information-to-avoid-.patch \ |
35 | " | 35 | " |
@@ -286,21 +286,20 @@ do_install:append() { | |||
286 | 286 | ||
287 | if ${@bb.utils.contains('PACKAGECONFIG','gnutls','true','false',d)}; then | 287 | if ${@bb.utils.contains('PACKAGECONFIG','gnutls','true','false',d)}; then |
288 | # Generate sample keys and certificates. | 288 | # Generate sample keys and certificates. |
289 | cd ${WORKDIR} | 289 | ${S}/gnutls-helper.py -y |
290 | ${WORKDIR}/gnutls-helper.py -y | ||
291 | 290 | ||
292 | # Deploy all sample keys and certificates of CA, server and client | 291 | # Deploy all sample keys and certificates of CA, server and client |
293 | # to target so that libvirtd is able to boot successfully and local | 292 | # to target so that libvirtd is able to boot successfully and local |
294 | # connection via 127.0.0.1 is available out of box. | 293 | # connection via 127.0.0.1 is available out of box. |
295 | install -d ${D}/etc/pki/CA | 294 | install -d ${D}/etc/pki/CA |
296 | install -d ${D}/etc/pki/libvirt/private | 295 | install -d ${D}/etc/pki/libvirt/private |
297 | install -m 0755 ${WORKDIR}/gnutls-helper.py ${D}/${bindir} | 296 | install -m 0755 ${S}/gnutls-helper.py ${D}/${bindir} |
298 | install -m 0644 ${WORKDIR}/cakey.pem ${D}/${sysconfdir}/pki/libvirt/private/cakey.pem | 297 | install -m 0644 cakey.pem ${D}/${sysconfdir}/pki/libvirt/private/cakey.pem |
299 | install -m 0644 ${WORKDIR}/cacert.pem ${D}/${sysconfdir}/pki/CA/cacert.pem | 298 | install -m 0644 cacert.pem ${D}/${sysconfdir}/pki/CA/cacert.pem |
300 | install -m 0644 ${WORKDIR}/serverkey.pem ${D}/${sysconfdir}/pki/libvirt/private/serverkey.pem | 299 | install -m 0644 serverkey.pem ${D}/${sysconfdir}/pki/libvirt/private/serverkey.pem |
301 | install -m 0644 ${WORKDIR}/servercert.pem ${D}/${sysconfdir}/pki/libvirt/servercert.pem | 300 | install -m 0644 servercert.pem ${D}/${sysconfdir}/pki/libvirt/servercert.pem |
302 | install -m 0644 ${WORKDIR}/clientkey.pem ${D}/${sysconfdir}/pki/libvirt/private/clientkey.pem | 301 | install -m 0644 clientkey.pem ${D}/${sysconfdir}/pki/libvirt/private/clientkey.pem |
303 | install -m 0644 ${WORKDIR}/clientcert.pem ${D}/${sysconfdir}/pki/libvirt/clientcert.pem | 302 | install -m 0644 clientcert.pem ${D}/${sysconfdir}/pki/libvirt/clientcert.pem |
304 | 303 | ||
305 | # Force the connection to be tls. | 304 | # Force the connection to be tls. |
306 | sed -i -e 's/^\(listen_tls\ =\ .*\)/#\1/' -e 's/^\(listen_tcp\ =\ .*\)/#\1/' ${D}/etc/libvirt/libvirtd.conf | 305 | sed -i -e 's/^\(listen_tls\ =\ .*\)/#\1/' -e 's/^\(listen_tcp\ =\ .*\)/#\1/' ${D}/etc/libvirt/libvirtd.conf |