Hello community,

here is the log from the commit of package glib2 for openSUSE:Factory checked 
in at 2017-12-12 21:18:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/glib2 (Old)
 and      /work/SRC/openSUSE:Factory/.glib2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "glib2"

Tue Dec 12 21:18:43 2017 rev:192 rq:554787 version:2.54.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/glib2/glib2.changes      2017-12-04 
12:14:35.728469474 +0100
+++ /work/SRC/openSUSE:Factory/.glib2.new/glib2.changes 2017-12-12 
21:18:47.590524323 +0100
@@ -1,0 +2,6 @@
+Wed Dec  6 08:03:38 UTC 2017 - dims...@opensuse.org
+
+- Add glib2-gtester-report-py3.patch: gtester-reporter fails to
+  run with python3 (bgo#791296, boo#1071378).
+
+-------------------------------------------------------------------

New:
----
  glib2-gtester-report-py3.patch

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

Other differences:
------------------
++++++ glib2.spec ++++++
--- /var/tmp/diff_new_pack.dVh1uO/_old  2017-12-12 21:18:48.890461569 +0100
+++ /var/tmp/diff_new_pack.dVh1uO/_new  2017-12-12 21:18:48.890461569 +0100
@@ -51,6 +51,8 @@
 Patch14:        glib2-dbus-socket-path.patch
 # PATCH-FIX-OPENSUSE glib2-gdbus-codegen-version.patch  o...@aepfle.de -- 
Remove version string from files generated by gdbus-codegen
 Patch16:        glib2-gdbus-codegen-version.patch
+# PATCH-FIX-UPSTREAM glib2-gtester-report-py3.patch bgo#791298 boo#1071378 
dims...@opensuse.org -- gtester-reporter fails to run with python3
+Patch17:        glib2-gtester-report-py3.patch
 BuildRequires:  automake
 BuildRequires:  docbook-xsl-stylesheets
 BuildRequires:  fdupes
@@ -265,6 +267,7 @@
 %patch13 -p1
 %patch14 -p1
 %patch16 -p1
+%patch17 -p1
 cp -a %{SOURCE1} %{SOURCE2} %{SOURCE5} .
 cp -a %{SOURCE4} gnome_defaults.conf
 if ! test -f %{_datadir}/aclocal/gtk-doc.m4 ; then

++++++ glib2-gtester-report-py3.patch ++++++
>From 54347e52f4e0f1fcb5f361715caf3600b48c05bb Mon Sep 17 00:00:00 2001
From: Dominique Leuenberger <dims...@opensuse.org>
Date: Wed, 6 Dec 2017 08:58:41 +0100
Subject: [PATCH] gtester-report: fix range usage when running as python3 app

When using python3 as interpreter, range only takes integer arguments or
it results in errors like:

   File "/usr/bin/gtester-report", line 78, in html_indent_string
     for i in range (0, (n + 1) / 2):
 TypeError: 'float' object cannot be interpreted as an integer

https://bugzilla.gnome.org/show_bug.cgi?id=791296
---
 glib/gtester-report | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/glib/gtester-report b/glib/gtester-report
index d11b255bc..c4790adbb 100755
--- a/glib/gtester-report
+++ b/glib/gtester-report
@@ -75,7 +75,7 @@ def attribute_as_text (node, aname, node_name = None):
 def html_indent_string (n):
   uncollapsible_space = ' &nbsp;' # HTML won't compress alternating sequences 
of ' ' and '&nbsp;'
   string = ''
-  for i in range (0, (n + 1) / 2):
+  for i in range (0, int((n + 1) / 2)):
     string += uncollapsible_space
   return string
 
-- 
2.15.0


Reply via email to