Skip to contentSkip to conversation

libvirt: place the qemu configure option to PACKAGECONFIG

PATCH In review Dengke Du 2 participants 2 messages Mar 18, 2019 – Mar 20, 2019

lore
Share & tools
lore

Dengke Du

author
#0 lore raw

PATCH 1/1 libvirt: place the qemu configure option to PACKAGECONFIG

If we build libvirt with mips64 arch will fail that was not compatible with, so place the qemu configure options to PACKAGECONFIG, let the PACKAGECONFIG control the build options.

---
 recipes-extended/libvirt/libvirt_4.9.0.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
recipes-extended/libvirt/libvirt_4.9.0.bb +1 -3
index 17ac799..813d95e 100644
@@ -197,7 +197,7 @@ PACKAGECONFIG_remove_mipsarchn64 = "qemu"
 
 # enable,disable,depends,rdepends
 #
-PACKAGECONFIG[qemu] = "--with-qemu,--without-qemu,qemu,"
+PACKAGECONFIG[qemu] = "--with-qemu --with-qemu-user=qemu --with-qemu-group=qemu,--without-qemu,qemu,"
 PACKAGECONFIG[yajl] = "--with-yajl,--without-yajl,yajl,yajl"
 PACKAGECONFIG[xenapi] = "--with-xenapi,--without-xenapi,,"
 PACKAGECONFIG[libxl] = "--with-libxl=${STAGING_DIR_TARGET}/lib,--without-libxl,xen,"
@@ -315,8 +315,6 @@ do_install_append() {
 EXTRA_OECONF += " \
     --with-init-script=systemd \
     --with-test-suite \
-    --with-qemu-user=qemu \
-    --with-qemu-group=qemu \
     "
 
 EXTRA_OEMAKE = "BUILD_DIR=${B} DEST_DIR=${D}${PTEST_PATH} PTEST_DIR=${PTEST_PATH} SYSTEMD_UNIT_DIR=${systemd_system_unitdir}"
Signature · 1 line
2.7.4
#1 lore raw
Quoted 4 lines · Dengke Du

If we build libvirt with mips64 arch will fail that was not compatible with, so place the qemu configure options to PACKAGECONFIG, let the PACKAGECONFIG control the build options.

It would have been worth mentioning that qemu is in the default packageconfig, hence the build isn't changed for most architectures. I added that to the config option and pushed the change.

Bruce

Quoted 36 lines
---
 recipes-extended/libvirt/libvirt_4.9.0.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
recipes-extended/libvirt/libvirt_4.9.0.bb +1 -4
index 17ac799..813d95e 100644
@@ -197,7 +197,7 @@ PACKAGECONFIG_remove_mipsarchn64 = "qemu"
 
 # enable,disable,depends,rdepends
 #
-PACKAGECONFIG[qemu] = "--with-qemu,--without-qemu,qemu,"
+PACKAGECONFIG[qemu] = "--with-qemu --with-qemu-user=qemu --with-qemu-group=qemu,--without-qemu,qemu,"
 PACKAGECONFIG[yajl] = "--with-yajl,--without-yajl,yajl,yajl"
 PACKAGECONFIG[xenapi] = "--with-xenapi,--without-xenapi,,"
 PACKAGECONFIG[libxl] = "--with-libxl=${STAGING_DIR_TARGET}/lib,--without-libxl,xen,"
@@ -315,8 +315,6 @@ do_install_append() {
 EXTRA_OECONF += " \
     --with-init-script=systemd \
     --with-test-suite \
-    --with-qemu-user=qemu \
-    --with-qemu-group=qemu \
     "
 
 EXTRA_OEMAKE = "BUILD_DIR=${B} DEST_DIR=${D}${PTEST_PATH} PTEST_DIR=${PTEST_PATH} SYSTEMD_UNIT_DIR=${systemd_system_unitdir}"
--

2.7.4

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II