From 38f525261066abef07f187656974479e4311519cfea8037d85d17e2a68bf8c4d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 3 Jan 2020 14:37:00 +0000 Subject: [PATCH] - Use bundled libev library to overcome the current incompatibility with libev > 4.25. gh#gevent/gevent#1501 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gevent?expand=0&rev=63 --- python-gevent.changes | 6 ++++++ python-gevent.spec | 21 ++++++++++++--------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/python-gevent.changes b/python-gevent.changes index b41a43a..d2e4e19 100644 --- a/python-gevent.changes +++ b/python-gevent.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jan 3 11:51:00 CET 2020 - Matej Cepl + +- Use bundled libev library to overcome the current + incompatibility with libev > 4.25. gh#gevent/gevent#1501 + ------------------------------------------------------------------- Thu Jan 2 14:09:44 CET 2020 - Matej Cepl diff --git a/python-gevent.spec b/python-gevent.spec index 844ddcd..ef93df9 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -16,6 +16,9 @@ # +# DON'T USE FOR SLE, USES BUNDLED VERSION OF LIBEV!!! +%define use_bundled_libev 1 + %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define modversion 1.5a3 %define modname gevent @@ -50,7 +53,9 @@ BuildRequires: pkgconfig BuildRequires: python-rpm-macros BuildRequires: python3-testsuite BuildRequires: pkgconfig(libcares) +%if 0%{?use_bundled_libev} BuildRequires: pkgconfig(libev) +%endif BuildRequires: pkgconfig(libuv) Requires: python-cffi Requires: python-dnspython @@ -98,13 +103,13 @@ Documentation and examples for %{name}. sed -i -e '1s!bin/env python!bin/python!' examples/*.py %build -export LIBEV_EMBED=0 +export LIBEV_EMBED=%{use_bundled_libev} export CARES_EMBED=0 export CFLAGS="%{optflags} -fno-strict-aliasing" %python_build %install -export LIBEV_EMBED=0 +export LIBEV_EMBED=%{use_bundled_libev} export CARES_EMBED=0 %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} @@ -116,17 +121,15 @@ export CARES_EMBED=0 # Also, gh#gevent/gevent#1390 # Also, gh#gevent/gevent#1501 cat <<'EOF' >> network_tests.txt -test__close_backend_fd.py -test__core_stat.py -test___example_servers.py +test__all__.py +test___config.py +test__doctests.py test__examples.py +test__execmodules.py test__getaddrinfo_import.py test_httplib.py -test_https.py -test__select.py -test__server.py -test__server_pywsgi.py test__socket_dns.py +test_socket.py test__socket_ssl.py test__ssl.py test_ssl.py