Skip to contentSkip to conversation

libvirt: backport patch to fix compatibility with Meson-0.58

PATCH In review Martin Jansa 2 participants 2 messages May 15, 2021 – May 17, 2021 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libvirt: backport patch to fix compatibility with Meson-0.58

---
 ...on-Fix-compatibility-with-Meson-0.58.patch | 48 +++++++++++++++++++
 recipes-extended/libvirt/libvirt_7.2.0.bb     |  1 +
 2 files changed, 49 insertions(+)
 create mode 100644 recipes-extended/libvirt/libvirt/0002-meson-Fix-compatibility-with-Meson-0.58.patch
recipes-extended/libvirt/libvirt/0002-meson-Fix-compatibility-with-Meson-0.58.patch new file +48 -0
new file mode 100644
index 0000000..3201eed
@@ -0,0 +1,48 @@
+From c607266619c5ab78ad5d4179b3ea93cfb6348391 Mon Sep 17 00:00:00 2001
+From: Andrea Bolognani <[email protected]>
+Date: Mon, 3 May 2021 09:06:34 +0200
+Subject: [PATCH] meson: Fix compatibility with Meson 0.58
+
+Builds failed with
+
+  tests/meson.build:690:0: ERROR: List item must be one
+  of <class 'str'>, not <class 'list'>
+
+before this change.
+
+https://gitlab.com/libvirt/libvirt/-/issues/158
+
+Upstream-Status: Backport [https://gitlab.com/libvirt/libvirt/-/commit/c607266619c5ab78ad5d4179b3ea93cfb6348391]
+
+Signed-off-by: Martin Jansa <[email protected]>
+Signed-off-by: Andrea Bolognani <[email protected]>
+Reviewed-by: Peter Krempa <[email protected]>
+Reviewed-by: Pavel Hrdina <[email protected]>
+---
+ tests/meson.build | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/tests/meson.build b/tests/meson.build
+index 05c3e90195..9900983d0c 100644
+--- a/tests/meson.build
++++ b/tests/meson.build
+@@ -687,12 +687,12 @@ foreach name : test_scripts
+   test(name, script, env: tests_env)
+ endforeach
+ 
++testenv = runutf8
++testenv += 'VIR_TEST_FILE_ACCESS=1'
++
+ add_test_setup(
+   'access',
+-  env: [
+-    'VIR_TEST_FILE_ACCESS=1',
+-    runutf8,
+-  ],
++  env: testenv,
+   exe_wrapper: [ python3_prog, check_file_access_prog.path() ],
+ )
+ 
+-- 
+GitLab
+
recipes-extended/libvirt/libvirt_7.2.0.bb +1 -0
index 24748ef..b569953 100644
@@ -28,6 +28,7 @@ SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.xz;name=libvirt \
            file://dnsmasq.conf \
            file://hook_support.py \
            file://gnutls-helper.py \
+           file://0002-meson-Fix-compatibility-with-Meson-0.58.patch \
           "
 
 SRC_URI[libvirt.md5sum] = "92044b629216e44adce63224970a54a3"
Signature · 1 line
2.30.2
#1 lore raw

merged.

Bruce

In message: [meta-virtualization] [PATCH] libvirt: backport patch to fix compatibility with Meson-0.58

Quoted 80 lines · on 15/05/2021 Martin Jansa wrote:
---
 ...on-Fix-compatibility-with-Meson-0.58.patch | 48 +++++++++++++++++++
 recipes-extended/libvirt/libvirt_7.2.0.bb     |  1 +
 2 files changed, 49 insertions(+)
 create mode 100644 recipes-extended/libvirt/libvirt/0002-meson-Fix-compatibility-with-Meson-0.58.patch
recipes-extended/libvirt/libvirt/0002-meson-Fix-compatibility-with-Meson-0.58.patch new file +48 -0
new file mode 100644
index 0000000..3201eed
@@ -0,0 +1,48 @@
+From c607266619c5ab78ad5d4179b3ea93cfb6348391 Mon Sep 17 00:00:00 2001
+From: Andrea Bolognani <[email protected]>
+Date: Mon, 3 May 2021 09:06:34 +0200
+Subject: [PATCH] meson: Fix compatibility with Meson 0.58
+
+Builds failed with
+
+  tests/meson.build:690:0: ERROR: List item must be one
+  of <class 'str'>, not <class 'list'>
+
+before this change.
+
+https://gitlab.com/libvirt/libvirt/-/issues/158
+
+Upstream-Status: Backport [https://gitlab.com/libvirt/libvirt/-/commit/c607266619c5ab78ad5d4179b3ea93cfb6348391]
+
+Signed-off-by: Martin Jansa <[email protected]>
+Signed-off-by: Andrea Bolognani <[email protected]>
+Reviewed-by: Peter Krempa <[email protected]>
+Reviewed-by: Pavel Hrdina <[email protected]>
+---
+ tests/meson.build | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/tests/meson.build b/tests/meson.build
+index 05c3e90195..9900983d0c 100644
+--- a/tests/meson.build
++++ b/tests/meson.build
+@@ -687,12 +687,12 @@ foreach name : test_scripts
+   test(name, script, env: tests_env)
+ endforeach
+ 
++testenv = runutf8
++testenv += 'VIR_TEST_FILE_ACCESS=1'
++
+ add_test_setup(
+   'access',
+-  env: [
+-    'VIR_TEST_FILE_ACCESS=1',
+-    runutf8,
+-  ],
++  env: testenv,
+   exe_wrapper: [ python3_prog, check_file_access_prog.path() ],
+ )
+ 
+-- 
+GitLab
+
recipes-extended/libvirt/libvirt_7.2.0.bb +1 -0
index 24748ef..b569953 100644
@@ -28,6 +28,7 @@ SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.xz;name=libvirt \
            file://dnsmasq.conf \
            file://hook_support.py \
            file://gnutls-helper.py \
+           file://0002-meson-Fix-compatibility-with-Meson-0.58.patch \
           "
 
 SRC_URI[libvirt.md5sum] = "92044b629216e44adce63224970a54a3"
Signature · 1 line
2.30.2