Hello community,

here is the log from the commit of package libepoxy for openSUSE:Factory 
checked in at 2015-02-16 07:36:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libepoxy (Old)
 and      /work/SRC/openSUSE:Factory/.libepoxy.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libepoxy"

Changes:
--------
--- /work/SRC/openSUSE:Factory/libepoxy/libepoxy.changes        2014-05-22 
09:04:12.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.libepoxy.new/libepoxy.changes   2015-02-16 
07:36:15.000000000 +0100
@@ -1,0 +2,7 @@
+Thu Feb 12 10:13:10 UTC 2015 - [email protected]
+
+- u_sort-the-providers-by-their-enum-not-by-their-functi.patch
+  * sort the providers by their enum not by their function name;
+    patch by coolo (bnc#917533)
+
+-------------------------------------------------------------------

New:
----
  u_sort-the-providers-by-their-enum-not-by-their-functi.patch

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

Other differences:
------------------
++++++ libepoxy.spec ++++++
--- /var/tmp/diff_new_pack.OOrhI5/_old  2015-02-16 07:36:16.000000000 +0100
+++ /var/tmp/diff_new_pack.OOrhI5/_new  2015-02-16 07:36:16.000000000 +0100
@@ -25,6 +25,7 @@
 Group:          Development/Libraries/C and C++
 Url:            https://github.com/anholt/libepoxy
 Source:         https://github.com/anholt/%{name}/archive/v%{version}.tar.gz
+Patch0:         u_sort-the-providers-by-their-enum-not-by-their-functi.patch
 BuildRequires:  autoconf >= 2.60
 BuildRequires:  automake
 BuildRequires:  libtool
@@ -73,6 +74,7 @@
 
 %prep
 %setup -q -n %{name}-%{version}
+%patch0 -p1
 
 %build
 if [ ! -e configure ]; then

++++++ u_sort-the-providers-by-their-enum-not-by-their-functi.patch ++++++
>From 05c11521105a00d3644fbc7e92dd97e3ab6531fe Mon Sep 17 00:00:00 2001
From: Stefan Dirsch <[email protected]>
Date: Thu, 12 Feb 2015 10:47:28 +0100
Subject: [PATCH] sort the providers by their enum not by their function name

Patch by Stephan Kulow <[email protected]>
---
 src/gen_dispatch.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gen_dispatch.py b/src/gen_dispatch.py
index ab526ef..f8b7492 100755
--- a/src/gen_dispatch.py
+++ b/src/gen_dispatch.py
@@ -566,8 +566,8 @@ class Generator(object):
                 providers.append(provider)
 
         def provider_sort(provider):
-            return (provider.name != func.name, provider.name)
-        providers.sort(key=provider_sort);
+            return (provider.name != func.name, provider.enum)
+        providers.sort(key=provider_sort)
 
         if len(providers) != 1:
             self.outln('    static const enum {0}_provider providers[] = 
{{'.format(self.target))
-- 
1.8.4.5

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to