From ba6143a680d0040138e62a46ce9c79b3457e9cbd Mon Sep 17 00:00:00 2001 From: "Lavocat, Nicolas" Date: Thu, 6 Aug 2020 10:38:59 +0200 Subject: libvirt: fix install error without qemu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit An error occurs during the install step of libvirt when the variable PACKAGECONFIG does not contain qemu. Indeed, in this case, the operation "chown -R qemu:qemu ${D}/${localstatedir}/lib/libvirt/qemu" fails, since the folder ${D}/${localstatedir}/lib/libvirt/qemu has not been created. The fix consist in doing this operation only if the variable “PACKAGECONFIG” contains “qemu”. remark: issue present since the Warrior release of yocto. Upstream-Status: Pending Signed-off-by: Nicolas Lavocat Signed-off-by: Bruce Ashfield --- recipes-extended/libvirt/libvirt_6.3.0.bb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/recipes-extended/libvirt/libvirt_6.3.0.bb b/recipes-extended/libvirt/libvirt_6.3.0.bb index 229c56eb..dcaa48b5 100644 --- a/recipes-extended/libvirt/libvirt_6.3.0.bb +++ b/recipes-extended/libvirt/libvirt_6.3.0.bb @@ -340,10 +340,12 @@ do_install_append() { break ;; *) - chown -R qemu:qemu ${D}/${localstatedir}/lib/libvirt/qemu - echo "d qemu qemu 0755 ${localstatedir}/cache/libvirt/qemu none" \ - >> ${D}${sysconfdir}/default/volatiles/99_libvirt - break + if ${@bb.utils.contains('PACKAGECONFIG', 'qemu', 'true', 'false', d)}; then + chown -R qemu:qemu ${D}/${localstatedir}/lib/libvirt/qemu + echo "d qemu qemu 0755 ${localstatedir}/cache/libvirt/qemu none" \ + >> ${D}${sysconfdir}/default/volatiles/99_libvirt + break + fi ;; esac -- cgit v1.2.3-54-g00ecf