Skip to contentSkip to conversation

libvirt: Do not change /var/lib/libvirt/qemu for mips and mips64 in do_install

PATCH In review [email protected] 2 participants 2 messages Jul 24, 2019 – Jul 25, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libvirt: Do not change /var/lib/libvirt/qemu for mips and mips64 in do_install

From: He Zhe <[email protected]>

qemu does not support mips and mips64 and thus /var/lib/libvirt/qemu is not generated. Do not change it.

---
 recipes-extended/libvirt/libvirt_5.5.0.bb | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
recipes-extended/libvirt/libvirt_5.5.0.bb +12 -3
index 8d71862..80f7a6c 100644
@@ -311,9 +311,18 @@ do_install_append() {
 
 	sed -i -e 's/^\(unix_sock_group\ =\ \).*/\1"kvm"/' ${D}/etc/libvirt/libvirtd.conf
 	sed -i -e 's/^\(unix_sock_rw_perms\ =\ \).*/\1"0776"/' ${D}/etc/libvirt/libvirtd.conf
-	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
+
+	case ${MACHINE_ARCH} in
+		*mips*)
+			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
+			;;
+	esac
 
 	if ${@bb.utils.contains('PACKAGECONFIG','gnutls','true','false',d)}; then
 	    # Generate sample keys and certificates.
Signature · 1 line
2.7.4
#1 lore raw

merged

Bruce

Quoted 40 lines · On Wed, Jul 24, 2019 at 3:43 AM <[email protected]> wrote:

From: He Zhe <[email protected]>

qemu does not support mips and mips64 and thus /var/lib/libvirt/qemu is not generated. Do not change it.

---
 recipes-extended/libvirt/libvirt_5.5.0.bb | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
recipes-extended/libvirt/libvirt_5.5.0.bb +12 -4
index 8d71862..80f7a6c 100644
@@ -311,9 +311,18 @@ do_install_append() {
 
        sed -i -e 's/^\(unix_sock_group\ =\ \).*/\1"kvm"/' ${D}/etc/libvirt/libvirtd.conf
        sed -i -e 's/^\(unix_sock_rw_perms\ =\ \).*/\1"0776"/' ${D}/etc/libvirt/libvirtd.conf
-       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
+
+       case ${MACHINE_ARCH} in
+               *mips*)
+                       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
+                       ;;
+       esac
 
        if ${@bb.utils.contains('PACKAGECONFIG','gnutls','true','false',d)}; then
            # Generate sample keys and certificates.
--

2.7.4

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