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);