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
This commit is contained in:
Dirk Mueller 2022-04-26 15:37:21 +00:00 committed by Git OBS Bridge
parent 6e6d5f61e6
commit e6a9ac2ea1
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Apr 22 20:42:31 UTC 2022 - Ferdinand Thiessen <rpm@fthiessen.de>
- 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 <rpm@fthiessen.de>

View File

@ -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}