From a5119223d58315652edcfe45736f727f6b1b6ee1 Mon Sep 17 00:00:00 2001 From: virtbuilder_pel7ppc64bebuilder0 Date: Fri, 17 Aug 2018 13:19:19 +0200 Subject: [PATCH] libvirt 4.6.0 for ppc64 Signed-off-by: virtbuilder_pel7ppc64bebuilder0 --- SOURCES/libvirt-network-switch-function.patch | 37 +++++++++++++++++++ SPECS/libvirt.spec | 7 +++- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 SOURCES/libvirt-network-switch-function.patch diff --git a/SOURCES/libvirt-network-switch-function.patch b/SOURCES/libvirt-network-switch-function.patch new file mode 100644 index 0000000..8b34cd5 --- /dev/null +++ b/SOURCES/libvirt-network-switch-function.patch @@ -0,0 +1,37 @@ +From 5d0a3f05ad2d5d0e6e596817d8c7da7728ed22de Mon Sep 17 00:00:00 2001 +From: virtbuilder_pel7ppc64bebuilder0 +Date: Fri, 17 Aug 2018 12:38:44 +0200 +Subject: [[GIT]] remove undefined functions +Organization: PowerEL +To: +Cc: + +Signed-off-by: virtbuilder_pel7ppc64bebuilder0 +--- + src/network/bridge_driver.c | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c +index f92cc61..9613c82 100644 +--- a/src/network/bridge_driver.c ++++ b/src/network/bridge_driver.c +@@ -4682,8 +4682,6 @@ networkAllocateActualDevice(virDomainDefPtr dom, + /* NO need to check the value returned from virNetDevMacVLanModeTypeFromString + * it must be valid for these forward type(bridge|private|vepa|passthrough) + */ +- iface->data.network.actual->data.direct.mode = +- virNetDevMacVLanModeTypeFromString(virNetworkForwardTypeToString(netdef->forward.type)); + + /* merge virtualports from interface, network, and portgroup to + * arrive at actual virtualport to use +@@ -4922,8 +4920,6 @@ networkNotifyActualDevice(virDomainDefPtr dom, + if (STREQ_NULLABLE(master, "ovs-system")) { + useOVS = true; + VIR_FREE(master); +- if (virNetDevOpenvswitchInterfaceGetMaster(iface->ifname, &master) < 0) +- goto error; + } + + if (STRNEQ_NULLABLE(netdef->bridge, master)) { +-- +2.17.1 diff --git a/SPECS/libvirt.spec b/SPECS/libvirt.spec index 2a94130..dd3941a 100644 --- a/SPECS/libvirt.spec +++ b/SPECS/libvirt.spec @@ -49,13 +49,18 @@ Summary: Library providing a simple virtualization API Name: libvirt -Version: 4.5.0 +Version: 4.6.0 Release: 1%{?dist}%{?extra_release} License: LGPLv2+ Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root URL: https://libvirt.org/ +%ifarch x86_64 +Patch1: libvirt-network-bridge-function.patch +%endif +Patch2: libvirt-network-switch-function.patch + %if %(echo %{version} | grep -q "\.0$"; echo $?) == 1 %define mainturl stable_updates/ %endif