diff --git a/0001-Disable-deprecation-warnings-for-the-stable-release-.patch b/0001-Disable-deprecation-warnings-for-the-stable-release-.patch new file mode 100644 index 0000000..4771816 --- /dev/null +++ b/0001-Disable-deprecation-warnings-for-the-stable-release-.patch @@ -0,0 +1,28 @@ +From 3bd1618ea955f950f87bc4e452029c5f0cea35aa Mon Sep 17 00:00:00 2001 +From: Matthias Clasen +Date: Mon, 14 Sep 2015 18:42:12 -0400 +Subject: [PATCH] Disable deprecation warnings for the stable release again + +Keeping these enabled causes too many people to file +bugs against gobject, and not enough people to send +patches to port away from deprecated properties. +--- + gobject/gobject.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gobject/gobject.c b/gobject/gobject.c +index 3a0d008..a3c0875 100644 +--- a/gobject/gobject.c ++++ b/gobject/gobject.c +@@ -1316,7 +1316,7 @@ consider_issuing_property_deprecation_warning (const GParamSpec *pspec) + const gchar *value = g_getenv ("G_ENABLE_DIAGNOSTIC"); + + if (!value) +- value = "-"; ++ value = "0"; + + g_once_init_leave (&enable_diagnostic, value); + } +-- +2.5.0 + diff --git a/glib2.spec b/glib2.spec index f3ee402..088877e 100644 --- a/glib2.spec +++ b/glib2.spec @@ -3,12 +3,14 @@ Summary: A library of handy utility functions Name: glib2 Version: 2.44.1 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPLv2+ Group: System Environment/Libraries URL: http://www.gtk.org #VCS: git:git://git.gnome.org/glib Source: http://download.gnome.org/sources/glib/2.44/glib-%{version}.tar.xz +# Disable gobject property deprecation warnings by default +Patch0: 0001-Disable-deprecation-warnings-for-the-stable-release-.patch BuildRequires: pkgconfig BuildRequires: gettext @@ -81,6 +83,7 @@ the functionality of the installed glib2 package. %prep %setup -q -n glib-%{version} +%patch0 -p1 %build # Support builds of both git snapshots and tarballs packed with autogoo @@ -218,6 +221,9 @@ gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules %{_datadir}/installed-tests %changelog +* Mon Sep 21 2015 Kalev Lember - 2.44.1-2 +- Disable gobject property deprecation warnings by default + * Wed May 13 2015 Kalev Lember - 2.44.1-1 - Update to 2.44.1