python-gevent/use-libev-cffi.patch
Todd R 399e35b696 Accepting request 671192 from home:alarrosa:branches:devel:languages:python
- Add patches to fix building the package:
 * remove-testCongestion.patch to remove a test that is failing
  due to a timeout
 * fix-tests.patch to fix some tests
   - ssl.OP_NO_COMPRESSION is set by default by ssl.
   - thread_ident can be represented as a negative hex number now,
     so replace the negative sign with the regex too, and not just the number.
 * use-libev-cffi.patch, libev-cext seems to be broken on i586, so
   use libev-cffi by default (also, the gevent documentation mentions
   that upstream will make libev-cffi the default soon).

OBS-URL: https://build.opensuse.org/request/show/671192
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gevent?expand=0&rev=52
2019-02-05 18:25:27 +00:00

24 lines
708 B
Diff

From: Antonio Larrosa <alarrosa@suse.com>
Subject: Fix failing tests
libev-cext seems to be broken on i586, so use libev-cffi by default
(also, the gevent documentation mentions that upstream will make
libev-cffi the default soon [1]).
[1] http://www.gevent.org/loop_impls.html#libev
Index: gevent-1.4.0/src/gevent/_config.py
===================================================================
--- gevent-1.4.0.orig/src/gevent/_config.py
+++ gevent-1.4.0/src/gevent/_config.py
@@ -352,8 +352,8 @@ class Loop(ImportableSetting, Setting):
"""
default = [
- 'libev-cext',
'libev-cffi',
+ 'libev-cext',
'libuv-cffi',
] if not WIN else [
'libuv-cffi',