diff --git a/openvswitch.changes b/openvswitch.changes index 9fa5656..e4942bc 100644 --- a/openvswitch.changes +++ b/openvswitch.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Apr 22 20:42:31 UTC 2022 - Ferdinand Thiessen + +- Python package: Do not use C json parser on 32bit as large numbers + will overflow. + ------------------------------------------------------------------- Sun Apr 3 13:12:28 UTC 2022 - Ferdinand Thiessen diff --git a/openvswitch.spec b/openvswitch.spec index f97a9be..1daf083 100644 --- a/openvswitch.spec +++ b/openvswitch.spec @@ -402,6 +402,10 @@ export CPPFLAGS="-I %{buildroot}%{_includedir} -I %{buildroot}%{_includedir}/ope %python_build %python_install popd +# Currently (version 2.17) the c parser for json is broken on 32bit (int overflow for number parsing) +%ifarch i386 i586 i686 +%python_expand rm -v %{buildroot}%{$python_sitearch}/ovs/_json*.so +%endif %python_expand %fdupes %{buildroot}%{$python_sitearch}