aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorStefan Reiff <kroko87@hotmail.com>2020-01-14 10:38:08 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2020-01-15 15:11:40 +0100
commit48c2d336624af9029d0e3cb907d01120d110cfce (patch)
treed927a86d9ad77ab875097f8b569892f81b4d24cf /main
parente5c984f68aabb28de623a7e3ada5a223c2b66d77 (diff)
downloadaports-48c2d336624af9029d0e3cb907d01120d110cfce.tar.bz2
aports-48c2d336624af9029d0e3cb907d01120d110cfce.tar.xz
main/libvirt: qemu: Fix migration without parameters
Diffstat (limited to 'main')
-rw-r--r--main/libvirt/APKBUILD6
-rw-r--r--main/libvirt/fix-migration-without-params.patch36
2 files changed, 40 insertions, 2 deletions
diff --git a/main/libvirt/APKBUILD b/main/libvirt/APKBUILD
index 803ac166e4..dee3675570 100644
--- a/main/libvirt/APKBUILD
+++ b/main/libvirt/APKBUILD
@@ -2,7 +2,7 @@
pkgname=libvirt
pkgver=5.9.0
_ver="${pkgver/_rc/-rc}"
-pkgrel=0
+pkgrel=1
pkgdesc="A virtualization API for several hypervisor and container systems"
url="https://libvirt.org/"
arch="all"
@@ -31,6 +31,7 @@ source="https://libvirt.org/sources/$pkgname-$pkgver.tar.xz
virtlockd.initd
musl-fix-includes.patch
stderr-fix.patch
+ fix-migration-without-params.patch
"
if [ "$CARCH" = "x86_64" ]; then
subpackages="$subpackages $pkgname-xen"
@@ -185,4 +186,5 @@ sha512sums="3c7760053c5aabf8b3662f48f21a25fd1005ba8871bb51f78ff2b0ce4053c7bebc72
36b85f473d292be8df415256d01a562131d8ae61450ba3893658090a12d589ca32215382f56f286a830b4e59ffd98fbe1d92004f2ce14ca0834451b943cd8f2f virtlogd.initd
a4c4d26e4111931acbe7594451bf963a36c8db33c64b1bc447ab4758bb92803510bebee0511d6bc16ba80c289ab6f87e74377d47bf560412f9adb9c161a206d9 virtlockd.initd
dfe042c596028125bf8548115de2922683829c4716f6b0efb8efc38518670e3e848481661b9714bb0664c1022b87e8f3c0773611fe10187b0bc588e2336ada0c musl-fix-includes.patch
-d32551d56eae2c33bab7571964f76421336967918c293cd1d18fc66626a7ead3551b5672a9e3fc3d8b7bca82cc0abb17e428ee8271d04d73bc06fd16309918b3 stderr-fix.patch"
+d32551d56eae2c33bab7571964f76421336967918c293cd1d18fc66626a7ead3551b5672a9e3fc3d8b7bca82cc0abb17e428ee8271d04d73bc06fd16309918b3 stderr-fix.patch
+d5343e5287af618957d33101d025ee0a3cd8fd7e5da79eca94dbf52261d70762bd40bdc294aa06f16e909c762948024feb4b6a0e8aeb72ef535c5cf11f475576 fix-migration-without-params.patch"
diff --git a/main/libvirt/fix-migration-without-params.patch b/main/libvirt/fix-migration-without-params.patch
new file mode 100644
index 0000000000..f3615bad7c
--- /dev/null
+++ b/main/libvirt/fix-migration-without-params.patch
@@ -0,0 +1,36 @@
+From d802d9ab83ad0d852310c79998ee11c0a440b615 Mon Sep 17 00:00:00 2001
+From: Jiri Denemark <jdenemar@redhat.com>
+Date: Wed, 27 Nov 2019 17:21:58 +0100
+Subject: [PATCH] qemu: Fix migration without parameters
+
+The virTypedParamsFilter function doesn't mind params == NULL if nparams
+is zero. And there's no need to check for params == NULL && nparams > 0
+because this is checked higher in the stack.
+
+In fact all the virCheckNonNull* checks in virTypedParamsFilter are
+useless.
+
+https://bugzilla.redhat.com/show_bug.cgi?id=1777094
+
+Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
+Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
+Reviewed-by: Erik Skultety <eskultet@redhat.com>
+---
+ src/util/virtypedparam.c | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/src/util/virtypedparam.c b/src/util/virtypedparam.c
+index 603fcf213a..be3dac1571 100644
+--- a/src/util/virtypedparam.c
++++ b/src/util/virtypedparam.c
+@@ -403,10 +403,6 @@ virTypedParamsFilter(virTypedParameterPtr params,
+ {
+ size_t i, n = 0;
+
+- virCheckNonNullArgGoto(params, error);
+- virCheckNonNullArgGoto(name, error);
+- virCheckNonNullArgGoto(ret, error);
+-
+ if (VIR_ALLOC_N(*ret, nparams) < 0)
+ goto error;
+