Disable gobject property deprecation warnings by default
This commit is contained in:
parent
1144d61132
commit
bdab866334
@ -0,0 +1,28 @@
|
||||
From 3bd1618ea955f950f87bc4e452029c5f0cea35aa Mon Sep 17 00:00:00 2001
|
||||
From: Matthias Clasen <mclasen@redhat.com>
|
||||
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
|
||||
|
@ -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 <klember@redhat.com> - 2.44.1-2
|
||||
- Disable gobject property deprecation warnings by default
|
||||
|
||||
* Wed May 13 2015 Kalev Lember <kalevlember@gmail.com> - 2.44.1-1
|
||||
- Update to 2.44.1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user