Hello community, here is the log from the commit of package gummi for openSUSE:Factory checked in at 2012-02-17 15:00:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gummi (Old) and /work/SRC/openSUSE:Factory/.gummi.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "gummi", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/gummi/gummi.changes 2011-12-25 17:34:40.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.gummi.new/gummi.changes 2012-02-17 15:00:43.000000000 +0100 @@ -1,0 +2,6 @@ +Tue Feb 14 10:10:45 UTC 2012 - badshah400@gmail.com + +- Add gummi-deprecated-g_thread_init.patch to fix build failures + for openSUSE > 12.1 + +------------------------------------------------------------------- New: ---- gummi-deprecated-g_thread_init.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gummi.spec ++++++ --- /var/tmp/diff_new_pack.QyDSPo/_old 2012-02-17 15:00:45.000000000 +0100 +++ /var/tmp/diff_new_pack.QyDSPo/_new 2012-02-17 15:00:45.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package gummi # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 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 @@ -11,10 +11,12 @@ # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + + Name: gummi Version: 0.6.1 Release: 1 @@ -23,6 +25,10 @@ Url: http://gummi.midnightcoding.org/ Group: Productivity/Publishing/TeX/Frontends Source0: %{name}-%{version}.tar.gz +%if 0%{?suse_version} > 1210 +# PATCH-FIX-UPSTREAM gummi-deprecated-g_thread_init.patch badshah400@gmail.com -- Remove usage of deprecated g_thread_init(). +Patch0: gummi-deprecated-g_thread_init.patch +%endif BuildRequires: intltool BuildRequires: fdupes BuildRequires: pkg-config @@ -45,6 +51,9 @@ %prep %setup -q +%if 0%{?suse_version} > 1210 +%patch0 -p1 +%endif %build %configure ++++++ gummi-deprecated-g_thread_init.patch ++++++ Index: gummi-0.6.1/src/main.c =================================================================== --- gummi-0.6.1.orig/src/main.c +++ gummi-0.6.1/src/main.c @@ -75,7 +75,13 @@ int main (int argc, char *argv[]) { g_option_context_parse (context, &argc, &argv, &error); /* initialize GTK */ - g_thread_init (NULL); + /* g_thread_init has been deprecated since version 2.32 and + * should not be used in newly-written code. This function is + * no longer necessary. The GLib threading system is + * automatically initialized at the start of your program. + * http://developer.gnome.org/glib/2.31/glib-Deprecated-Thread-APIs.html + * g_thread_init (NULL); */ + gdk_threads_init (); gtk_init (&argc, &argv); GtkBuilder* builder = gtk_builder_new (); -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org