[gnome-build-meta/valentindavid/libvirt-qemu] Add qemu-system dependency to libvirt



commit 3a76837d7fa0a187fc7f19fa44050ed5417674ae
Author: Valentin David <valentin david codethink co uk>
Date:   Thu Jun 25 17:24:27 2020 +0200

    Add qemu-system dependency to libvirt

 elements/core-deps/libvirt.bst |  6 ++++-
 elements/core-deps/qemu.bst    | 54 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+), 1 deletion(-)
---
diff --git a/elements/core-deps/libvirt.bst b/elements/core-deps/libvirt.bst
index 74f5479b..3e3d6c35 100644
--- a/elements/core-deps/libvirt.bst
+++ b/elements/core-deps/libvirt.bst
@@ -1,13 +1,14 @@
 kind: autotools
 sources:
 - kind: tar
-  url: https://libvirt.org/sources/libvirt-4.9.0.tar.xz
+  url: https://libvirt.org/sources/libvirt-6.4.0.tar.xz
 build-depends:
 - freedesktop-sdk.bst:components/libxslt.bst
 - freedesktop-sdk.bst:components/python3.bst
 - freedesktop-sdk.bst:public-stacks/buildsystem-autotools.bst
 depends:
 - freedesktop-sdk.bst:components/libnl.bst
+- core-deps/qemu.bst
 - core-deps/lvm2.bst
 - core-deps/portablexdr.bst
 - freedesktop-sdk.bst:components/gnutls.bst
@@ -18,3 +19,6 @@ config:
   install-commands:
     (>):
     - mv %{install-root}/var/run %{install-root}
+variables:
+  # --disable-Werror does not work
+  conf-global: --disable-static --host=%{triplet} --build=%{triplet}
diff --git a/elements/core-deps/qemu.bst b/elements/core-deps/qemu.bst
new file mode 100644
index 00000000..f7fe8a37
--- /dev/null
+++ b/elements/core-deps/qemu.bst
@@ -0,0 +1,54 @@
+kind: autotools
+
+sources:
+- kind: tar
+  url: https://download.qemu.org/qemu-5.0.0.tar.xz
+
+build-depends:
+- freedesktop-sdk.bst:public-stacks/buildsystem-autotools.bst
+
+depends:
+- sdk/glib.bst
+- freedesktop-sdk.bst:components/libcap.bst
+- freedesktop-sdk.bst:components/pixman.bst
+- freedesktop-sdk.bst:components/python3.bst
+- freedesktop-sdk.bst:bootstrap-import.bst
+
+variables:
+  (?):
+  - arch == "x86_64":
+      targets: --target-list=x86_64-softmmu,i386-softmmu
+  - arch == "i686":
+      targets: --target-list=x86_64-softmmu,i386-softmmu
+  - arch == "aarch64":
+      targets: --target-list=aarch64-softmmu,arm-softmmu
+  - arch == "arm":
+      targets: --target-list=arm-softmmu
+  - arch == "powerpc64le":
+      targets: --target-list=ppc64-softmmu
+
+  conf-local: >-
+    --disable-werror
+    --enable-system
+    --disable-user
+
+  # --exec-prefix --disable-static are not accepted
+  conf-args: >-
+    %{targets}
+    --prefix="%{prefix}"
+    --bindir="%{bindir}"
+    --sbindir="%{sbindir}"
+    --sysconfdir="%{sysconfdir}"
+    --datadir="%{datadir}"
+    --includedir="%{includedir}"
+    --libdir="%{libdir}"
+    --libexecdir="%{libexecdir}"
+    --localstatedir="%{localstatedir}"
+    --sharedstatedir="%{sharedstatedir}"
+    --mandir="%{mandir}"
+    --infodir="%{infodir}"
+    --localstatedir=/
+    --host=%{triplet}
+    --build=%{triplet}
+    %{conf-extra}
+    %{conf-local}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]