Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libgusb for openSUSE:Factory checked 
in at 2022-08-08 08:45:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libgusb (Old)
 and      /work/SRC/openSUSE:Factory/.libgusb.new.1521 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libgusb"

Mon Aug  8 08:45:06 2022 rev:23 rq:993338 version:0.3.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/libgusb/libgusb.changes  2022-05-10 
15:11:30.171537703 +0200
+++ /work/SRC/openSUSE:Factory/.libgusb.new.1521/libgusb.changes        
2022-08-08 08:45:18.866473874 +0200
@@ -1,0 +2,9 @@
+Fri Aug  5 11:30:24 UTC 2022 - Matej Cepl <mc...@suse.com>
+
+- Add no-pkg-resources.patch:
+  * Replaces pkg_resources with python-packaging
+  * pkg_resources is provided by setuptools, but the previously
+    transitive pull in of setuptools has been broken by
+    gtk-doc --> python3-Pygments -/-> python3-setuptools
+
+-------------------------------------------------------------------

New:
----
  no-pkg-resources.patch

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

Other differences:
------------------
++++++ libgusb.spec ++++++
--- /var/tmp/diff_new_pack.ec3VlN/_old  2022-08-08 08:45:19.314475192 +0200
+++ /var/tmp/diff_new_pack.ec3VlN/_new  2022-08-08 08:45:19.318475204 +0200
@@ -25,9 +25,14 @@
 URL:            https://github.com/hughsie/libgusb
 Source0:        
http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
 Source99:       baselibs.conf
+# PATCH-FIX-UPSTREAM no-pkg-resources.patch gh#hughsie/libgusb#61 
mc...@suse.com
+# Don't rely on the obsolete version of pkg_resources
+Patch0:         no-pkg-resources.patch
 BuildRequires:  gtk-doc
 BuildRequires:  meson
 BuildRequires:  pkgconfig
+BuildRequires:  python3-base
+BuildRequires:  python3-packaging
 BuildRequires:  vala
 BuildRequires:  pkgconfig(glib-2.0) >= 2.44.0
 BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 1.29
@@ -69,7 +74,7 @@
 cancellation and integration into a mainloop.
 
 %prep
-%setup -q
+%autosetup -p1
 
 %build
 %meson

++++++ no-pkg-resources.patch ++++++
---
 contrib/generate-version-script.py |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--- a/contrib/generate-version-script.py
+++ b/contrib/generate-version-script.py
@@ -7,7 +7,7 @@
 import sys
 import xml.etree.ElementTree as ET
 
-from pkg_resources import parse_version
+from packaging.version import parse
 
 XMLNS = '{http://www.gtk.org/introspection/core/1.0}'
 XMLNS_C = '{http://www.gtk.org/introspection/c/1.0}'
@@ -54,14 +54,14 @@ class LdVersionScript:
         for node in cls.findall(XMLNS + 'method'):
             version_tmp = self._add_node(node)
             if version_tmp:
-                if not version_lowest or parse_version(version_tmp) < 
parse_version(version_lowest):
+                if not version_lowest or parse(version_tmp) < 
parse(version_lowest):
                     version_lowest = version_tmp
 
         # add the constructor
         for node in cls.findall(XMLNS + 'constructor'):
             version_tmp = self._add_node(node)
             if version_tmp:
-                if not version_lowest or parse_version(version_tmp) < 
parse_version(version_lowest):
+                if not version_lowest or parse(version_tmp) < 
parse(version_lowest):
                     version_lowest = version_tmp
 
         if '{http://www.gtk.org/introspection/glib/1.0}get-type' not in 
cls.attrib:
@@ -93,7 +93,7 @@ class LdVersionScript:
         # output the version data to a file
         verout = '# generated automatically, do not edit!\n'
         oldversion = None
-        for version in sorted(versions, key=parse_version):
+        for version in sorted(versions, key=parse):
             symbols = sorted(self.releases[version])
             verout += '\n%s_%s {\n' % (self.library_name, version)
             verout += '  global:\n'

Reply via email to