Hello community, here is the log from the commit of package gtk-doc for openSUSE:Factory checked in at 2017-12-05 01:28:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gtk-doc (Old) and /work/SRC/openSUSE:Factory/.gtk-doc.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gtk-doc" Tue Dec 5 01:28:26 2017 rev:38 rq:547579 version:1.26 Changes: -------- --- /work/SRC/openSUSE:Factory/gtk-doc/gtk-doc.changes 2017-11-02 10:24:04.904790859 +0100 +++ /work/SRC/openSUSE:Factory/.gtk-doc.new/gtk-doc.changes 2017-12-05 01:28:29.621100944 +0100 @@ -1,0 +2,6 @@ +Sat Dec 2 15:17:35 UTC 2017 - dims...@opensuse.org + +- Add gtk-doc-fixxref-logging.patch: Use logging infrastructure for + LogWarning (bgo#791131). + +------------------------------------------------------------------- New: ---- gtk-doc-fixxref-logging.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gtk-doc.spec ++++++ --- /var/tmp/diff_new_pack.wSdBhU/_old 2017-12-05 01:28:30.165081182 +0100 +++ /var/tmp/diff_new_pack.wSdBhU/_new 2017-12-05 01:28:30.165081182 +0100 @@ -29,6 +29,8 @@ Patch0: gtk-doc-Generate-main-sgml.patch # PATCH-FIX-UPSTREAM gtk-doc-open-docs-as-utf8.patch dims...@opensuse.org -- Always open files using utf-8 Patch1: gtk-doc-open-docs-as-utf8.patch +# PATCH-FIX-UPSTREAM gtk-doc-fixxref-logging.patch bgo#791131 dims...@opensuse.org -- Use logging infrastructure for LogWarning +Patch2: gtk-doc-fixxref-logging.patch BuildRequires: docbook-xsl-stylesheets BuildRequires: libtool BuildRequires: libxml2-tools @@ -63,6 +65,7 @@ %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build autoreconf -fiv ++++++ gtk-doc-fixxref-logging.patch ++++++ >From 2d364e50140d17cf455365df537e5976d5d480d2 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger <dims...@opensuse.org> Date: Sat, 2 Dec 2017 16:11:50 +0100 Subject: [PATCH] Use logging infrastructure for LogWarning Using pure 'print' statements often fail if we have a message containing UTF-8, but output on a terminal/pipe not supporting UTF-8. Instead of trying to en/decode (and likely fail all the time) use logging.warning This causes a slight change of the format, as the log is prefixed with WARNING:root but that seems better than crashing https://bugzilla.gnome.org/show_bug.cgi?id=791131 --- gtkdoc/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtkdoc/common.py b/gtkdoc/common.py index ca82263..286f7f3 100644 --- a/gtkdoc/common.py +++ b/gtkdoc/common.py @@ -148,7 +148,7 @@ def LogWarning(filename, line, message): filename = filename or "unknown" # TODO: write to stderr - print ("%s:%d: warning: %s" % (filename, line, message)) + logging.warning ("%s:%d: warning: %s" % (filename, line, message)) def CreateValidSGMLID(xml_id): -- 2.15.0