All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libvirt: Do not change /var/lib/libvirt/qemu for mips and mips64 in do_install
@ 2019-07-24  7:43 zhe.he
  2019-07-25 18:26 ` Bruce Ashfield
  0 siblings, 1 reply; 2+ messages in thread
From: zhe.he @ 2019-07-24  7:43 UTC (permalink / raw)
  To: meta-virtualization, bruce.ashfield

From: He Zhe <zhe.he@windriver.com>

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

Signed-off-by: He Zhe <zhe.he@windriver.com>
---
 recipes-extended/libvirt/libvirt_5.5.0.bb | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/recipes-extended/libvirt/libvirt_5.5.0.bb b/recipes-extended/libvirt/libvirt_5.5.0.bb
index 8d71862..80f7a6c 100644
--- a/recipes-extended/libvirt/libvirt_5.5.0.bb
+++ b/recipes-extended/libvirt/libvirt_5.5.0.bb
@@ -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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] libvirt: Do not change /var/lib/libvirt/qemu for mips and mips64 in do_install
  2019-07-24  7:43 [PATCH] libvirt: Do not change /var/lib/libvirt/qemu for mips and mips64 in do_install zhe.he
@ 2019-07-25 18:26 ` Bruce Ashfield
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ashfield @ 2019-07-25 18:26 UTC (permalink / raw)
  To: He Zhe; +Cc: meta-virtualization

merged

Bruce

On Wed, Jul 24, 2019 at 3:43 AM <zhe.he@windriver.com> wrote:
>
> From: He Zhe <zhe.he@windriver.com>
>
> qemu does not support mips and mips64 and thus /var/lib/libvirt/qemu is not
> generated. Do not change it.
>
> Signed-off-by: He Zhe <zhe.he@windriver.com>
> ---
>  recipes-extended/libvirt/libvirt_5.5.0.bb | 15 ++++++++++++---
>  1 file changed, 12 insertions(+), 3 deletions(-)
>
> diff --git a/recipes-extended/libvirt/libvirt_5.5.0.bb b/recipes-extended/libvirt/libvirt_5.5.0.bb
> index 8d71862..80f7a6c 100644
> --- a/recipes-extended/libvirt/libvirt_5.5.0.bb
> +++ b/recipes-extended/libvirt/libvirt_5.5.0.bb
> @@ -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
>


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-25 18:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-24  7:43 [PATCH] libvirt: Do not change /var/lib/libvirt/qemu for mips and mips64 in do_install zhe.he
2019-07-25 18:26 ` Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.