diff options
author | Stefan Reiff <kroko87@hotmail.com> | 2020-01-14 10:38:08 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2020-01-15 15:11:40 +0100 |
commit | 48c2d336624af9029d0e3cb907d01120d110cfce (patch) | |
tree | d927a86d9ad77ab875097f8b569892f81b4d24cf | |
parent | e5c984f68aabb28de623a7e3ada5a223c2b66d77 (diff) | |
download | alpine_aports-48c2d336624af9029d0e3cb907d01120d110cfce.tar.bz2 alpine_aports-48c2d336624af9029d0e3cb907d01120d110cfce.tar.xz alpine_aports-48c2d336624af9029d0e3cb907d01120d110cfce.zip |
main/libvirt: qemu: Fix migration without parameters
-rw-r--r-- | main/libvirt/APKBUILD | 6 | ||||
-rw-r--r-- | main/libvirt/fix-migration-without-params.patch | 36 |
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 @@ | |||
2 | pkgname=libvirt | 2 | pkgname=libvirt |
3 | pkgver=5.9.0 | 3 | pkgver=5.9.0 |
4 | _ver="${pkgver/_rc/-rc}" | 4 | _ver="${pkgver/_rc/-rc}" |
5 | pkgrel=0 | 5 | pkgrel=1 |
6 | pkgdesc="A virtualization API for several hypervisor and container systems" | 6 | pkgdesc="A virtualization API for several hypervisor and container systems" |
7 | url="https://libvirt.org/" | 7 | url="https://libvirt.org/" |
8 | arch="all" | 8 | arch="all" |
@@ -31,6 +31,7 @@ source="https://libvirt.org/sources/$pkgname-$pkgver.tar.xz | |||
31 | virtlockd.initd | 31 | virtlockd.initd |
32 | musl-fix-includes.patch | 32 | musl-fix-includes.patch |
33 | stderr-fix.patch | 33 | stderr-fix.patch |
34 | fix-migration-without-params.patch | ||
34 | " | 35 | " |
35 | if [ "$CARCH" = "x86_64" ]; then | 36 | if [ "$CARCH" = "x86_64" ]; then |
36 | subpackages="$subpackages $pkgname-xen" | 37 | subpackages="$subpackages $pkgname-xen" |
@@ -185,4 +186,5 @@ sha512sums="3c7760053c5aabf8b3662f48f21a25fd1005ba8871bb51f78ff2b0ce4053c7bebc72 | |||
185 | 36b85f473d292be8df415256d01a562131d8ae61450ba3893658090a12d589ca32215382f56f286a830b4e59ffd98fbe1d92004f2ce14ca0834451b943cd8f2f virtlogd.initd | 186 | 36b85f473d292be8df415256d01a562131d8ae61450ba3893658090a12d589ca32215382f56f286a830b4e59ffd98fbe1d92004f2ce14ca0834451b943cd8f2f virtlogd.initd |
186 | a4c4d26e4111931acbe7594451bf963a36c8db33c64b1bc447ab4758bb92803510bebee0511d6bc16ba80c289ab6f87e74377d47bf560412f9adb9c161a206d9 virtlockd.initd | 187 | a4c4d26e4111931acbe7594451bf963a36c8db33c64b1bc447ab4758bb92803510bebee0511d6bc16ba80c289ab6f87e74377d47bf560412f9adb9c161a206d9 virtlockd.initd |
187 | dfe042c596028125bf8548115de2922683829c4716f6b0efb8efc38518670e3e848481661b9714bb0664c1022b87e8f3c0773611fe10187b0bc588e2336ada0c musl-fix-includes.patch | 188 | dfe042c596028125bf8548115de2922683829c4716f6b0efb8efc38518670e3e848481661b9714bb0664c1022b87e8f3c0773611fe10187b0bc588e2336ada0c musl-fix-includes.patch |
188 | d32551d56eae2c33bab7571964f76421336967918c293cd1d18fc66626a7ead3551b5672a9e3fc3d8b7bca82cc0abb17e428ee8271d04d73bc06fd16309918b3 stderr-fix.patch" | 189 | d32551d56eae2c33bab7571964f76421336967918c293cd1d18fc66626a7ead3551b5672a9e3fc3d8b7bca82cc0abb17e428ee8271d04d73bc06fd16309918b3 stderr-fix.patch |
190 | 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 @@ | |||
1 | From d802d9ab83ad0d852310c79998ee11c0a440b615 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jiri Denemark <jdenemar@redhat.com> | ||
3 | Date: Wed, 27 Nov 2019 17:21:58 +0100 | ||
4 | Subject: [PATCH] qemu: Fix migration without parameters | ||
5 | |||
6 | The virTypedParamsFilter function doesn't mind params == NULL if nparams | ||
7 | is zero. And there's no need to check for params == NULL && nparams > 0 | ||
8 | because this is checked higher in the stack. | ||
9 | |||
10 | In fact all the virCheckNonNull* checks in virTypedParamsFilter are | ||
11 | useless. | ||
12 | |||
13 | https://bugzilla.redhat.com/show_bug.cgi?id=1777094 | ||
14 | |||
15 | Signed-off-by: Jiri Denemark <jdenemar@redhat.com> | ||
16 | Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> | ||
17 | Reviewed-by: Erik Skultety <eskultet@redhat.com> | ||
18 | --- | ||
19 | src/util/virtypedparam.c | 4 ---- | ||
20 | 1 file changed, 4 deletions(-) | ||
21 | |||
22 | diff --git a/src/util/virtypedparam.c b/src/util/virtypedparam.c | ||
23 | index 603fcf213a..be3dac1571 100644 | ||
24 | --- a/src/util/virtypedparam.c | ||
25 | +++ b/src/util/virtypedparam.c | ||
26 | @@ -403,10 +403,6 @@ virTypedParamsFilter(virTypedParameterPtr params, | ||
27 | { | ||
28 | size_t i, n = 0; | ||
29 | |||
30 | - virCheckNonNullArgGoto(params, error); | ||
31 | - virCheckNonNullArgGoto(name, error); | ||
32 | - virCheckNonNullArgGoto(ret, error); | ||
33 | - | ||
34 | if (VIR_ALLOC_N(*ret, nparams) < 0) | ||
35 | goto error; | ||
36 | |||