From 7cc886a733ccdf9f1ae2f73d1f3662951f9c112223881e4c7fb319feeb1903a3 Mon Sep 17 00:00:00 2001 From: James Fehlig Date: Thu, 25 Apr 2019 21:19:16 +0000 Subject: [PATCH] Accepting request 697979 from home:jfehlig:branches:Virtualization - Fix build with LTO enabled Adjusted support-managed-pci-xen-driver.patch boo#1133253 OBS-URL: https://build.opensuse.org/request/show/697979 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=750 --- libvirt.changes | 7 +++++++ libvirt.spec | 2 +- support-managed-pci-xen-driver.patch | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libvirt.changes b/libvirt.changes index cbd6e1c..4e9327a 100644 --- a/libvirt.changes +++ b/libvirt.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Apr 25 20:42:03 UTC 2019 - Jim Fehlig + +- Fix build with LTO enabled + Adjusted support-managed-pci-xen-driver.patch + boo#1133253 + ------------------------------------------------------------------- Fri Apr 19 17:06:42 UTC 2019 - James Fehlig diff --git a/libvirt.spec b/libvirt.spec index 78d9f7f..552b9cd 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # diff --git a/support-managed-pci-xen-driver.patch b/support-managed-pci-xen-driver.patch index 1283957..94f6e19 100644 --- a/support-managed-pci-xen-driver.patch +++ b/support-managed-pci-xen-driver.patch @@ -45,7 +45,7 @@ Index: libvirt-5.2.0/src/xenconfig/xen_common.c + data++; + + if (STRPREFIX(opt, "managed=")) { -+ if (virStrncpy(opt_managed, data, 1, sizeof(opt_managed)) == NULL) { ++ if (virStrncpy(opt_managed, data, 1, sizeof(opt_managed)) < 0) { + virReportError(VIR_ERR_INTERNAL_ERROR, + _("managed option %s too big for destination"), + data);