From e6a9ac2ea12e1cd0e83138f51b5c6c0fa9d41ff8167abe58a65e8fa3a13d1cd8 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 26 Apr 2022 15:37:21 +0000 Subject: [PATCH] Accepting request 972247 from home:susnux:network - Python package: Do not use C json parser on 32bit as large numbers will overflow. Fixed ovn on i586 OBS-URL: https://build.opensuse.org/request/show/972247 OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=225 --- openvswitch.changes | 6 ++++++ openvswitch.spec | 4 ++++ 2 files changed, 10 insertions(+) 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}