Hello community,

here is the log from the commit of package python-gevent for openSUSE:Factory 
checked in at 2014-06-19 13:20:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-gevent (Old)
 and      /work/SRC/openSUSE:Factory/.python-gevent.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-gevent"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-gevent/python-gevent.changes      
2013-12-16 07:08:55.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-gevent.new/python-gevent.changes 
2014-06-19 13:20:15.000000000 +0200
@@ -1,0 +2,5 @@
+Thu Jun 12 08:47:18 UTC 2014 - [email protected]
+
+- libev.patch: fix syntax error in preprocessor conditional
+
+-------------------------------------------------------------------

New:
----
  libev.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-gevent.spec ++++++
--- /var/tmp/diff_new_pack.WQ9zpG/_old  2014-06-19 13:20:16.000000000 +0200
+++ /var/tmp/diff_new_pack.WQ9zpG/_new  2014-06-19 13:20:16.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-gevent
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,6 +24,8 @@
 License:        MIT
 Group:          Development/Languages/Python
 Source:         
http://pypi.python.org/packages/source/g/gevent/gevent-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM fix syntax error in preprocessor conditional (github 
issue 361)
+Patch:          libev.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  libevent-devel
 #BuildRequires:  python-Sphinx
@@ -54,6 +56,7 @@
 
 %prep
 %setup -q -n gevent-%{version}
+%patch -p1
 
 %build
 CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build

++++++ libev.patch ++++++
Index: gevent-1.0/libev/ev.c
===================================================================
--- gevent-1.0.orig/libev/ev.c
+++ gevent-1.0/libev/ev.c
@@ -617,9 +617,16 @@ struct signalfd_siginfo
   #if ECB_GCC_VERSION(4,7)
     /* see comment below (stdatomic.h) about the C11 memory model. */
     #define ECB_MEMORY_FENCE         __atomic_thread_fence (__ATOMIC_SEQ_CST)
-  #elif defined __clang && __has_feature (cxx_atomic)
-    /* see comment below (stdatomic.h) about the C11 memory model. */
-    #define ECB_MEMORY_FENCE         __c11_atomic_thread_fence 
(__ATOMIC_SEQ_CST)
+
+  /* The __has_feature syntax from clang is so misdesigned that we cannot use 
it
+   * without risking compile time errors with other compilers. We *could*
+   * define our own ecb_clang_has_feature, but I just can't be bothered to work
+   * around this shit time and again.
+   * #elif defined __clang && __has_feature (cxx_atomic)
+   *   // see comment below (stdatomic.h) about the C11 memory model.
+   *   #define ECB_MEMORY_FENCE         __c11_atomic_thread_fence 
(__ATOMIC_SEQ_CST)
+   */
+
   #elif ECB_GCC_VERSION(4,4) || defined __INTEL_COMPILER || defined __clang__
     #define ECB_MEMORY_FENCE         __sync_synchronize ()
   #elif _MSC_VER >= 1400 /* VC++ 2005 */
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to