forked from pool/libvirt
919b8be388
- Update to libvirt 1.2.12 - CVE-2015-0236: qemu: Check ACLs when dumping security info from snapshots - CVE-2015-0236: qemu: Check ACLs when dumping security info from save image - Many incremental improvements and bug fixes, see http://libvirt.org/news.html - Drop upstream patches: 30c6aecc-apparmor-lib64.patch, apparmor-xen-fixup.patch, apparmor-allow-helpers.patch, apparmor-tck-raw-packets.patch - Disable a hugepage test that is failing on ppc, ppc64, and ppc64le architectures - disable-hugepage-test.patch OBS-URL: https://build.opensuse.org/request/show/283071 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=437
18 lines
628 B
Diff
18 lines
628 B
Diff
Canonicalize hostarch name ppc64le to ppc64
|
|
|
|
See bnc#894956
|
|
|
|
Index: libvirt-1.2.12/src/util/virarch.c
|
|
===================================================================
|
|
--- libvirt-1.2.12.orig/src/util/virarch.c
|
|
+++ libvirt-1.2.12/src/util/virarch.c
|
|
@@ -169,6 +169,8 @@ virArch virArchFromHost(void)
|
|
arch = VIR_ARCH_I686;
|
|
} else if (STREQ(ut.machine, "amd64")) {
|
|
arch = VIR_ARCH_X86_64;
|
|
+ } else if (STREQ(ut.machine, "ppc64le")) {
|
|
+ arch = VIR_ARCH_PPC64;
|
|
} else {
|
|
/* Otherwise assume the canonical name */
|
|
if ((arch = virArchFromString(ut.machine)) == VIR_ARCH_NONE) {
|