From c572b7dceed604e3406c63a81d90afa0cd65a37a Mon Sep 17 00:00:00 2001 From: Timothy Redaelli Date: Thu, 19 Nov 2020 14:40:31 +0100 Subject: [PATCH] Fix building OVS on ppc64le and armv7hl Python 3.9 changed the architecture naming in suffix used for binary extensions. Use python3-config --extension-suffix in order to figure out the correct extension suffix used for binary extensions. --- openvswitch.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvswitch.spec b/openvswitch.spec index 624dbae..3200ca0 100644 --- a/openvswitch.spec +++ b/openvswitch.spec @@ -264,7 +264,7 @@ export CPPFLAGS="-I ../include" export LDFLAGS="%{__global_ldflags} -L $RPM_BUILD_ROOT%{_libdir}" %py3_build %py3_install -[ -f "$RPM_BUILD_ROOT/%{python3_sitearch}/ovs/_json.cpython-%{python3_version_nodots}$(python3-config --abiflags)-%{_arch}-%{_target_os}%{?_gnu}.so" ] +[ -f "$RPM_BUILD_ROOT/%{python3_sitearch}/ovs/_json$(python3-config --extension-suffix)" ] ) popd