packages: libepc/libepc.spec, libepc/G_CONST_RETURN.patch (NEW) - avoid usi...

wiget wiget at pld-linux.org
Fri Sep 30 22:58:07 CEST 2011


Author: wiget                        Date: Fri Sep 30 20:58:07 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- avoid using deprecated G_CONST_RETURN
- rel. 2

---- Files affected:
packages/libepc:
   libepc.spec (1.16 -> 1.17) , G_CONST_RETURN.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/libepc/libepc.spec
diff -u packages/libepc/libepc.spec:1.16 packages/libepc/libepc.spec:1.17
--- packages/libepc/libepc.spec:1.16	Fri Sep 30 21:43:15 2011
+++ packages/libepc/libepc.spec	Fri Sep 30 22:58:02 2011
@@ -2,11 +2,12 @@
 Summary:	Easy Publish and Consume library
 Name:		libepc
 Version:	0.4.1
-Release:	1
+Release:	2
 License:	LGPL v2+
 Group:		Libraries
 Source0:	http://ftp.gnome.org/pub/GNOME/sources/libepc/0.4/%{name}-%{version}.tar.xz
 # Source0-md5:	6854ad8d6dd94070f56b033329a320ac
+Patch0:		G_CONST_RETURN.patch
 URL:		http://live.gnome.org/libepc
 BuildRequires:	autoconf >= 2.63
 BuildRequires:	automake >= 1:1.10.3
@@ -125,6 +126,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__gtkdocize}
@@ -205,6 +207,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.17  2011/09/30 20:58:02  wiget
+- avoid using deprecated G_CONST_RETURN
+- rel. 2
+
 Revision 1.16  2011/09/30 19:43:15  wiget
 - up to 0.4.1
 

================================================================
Index: packages/libepc/G_CONST_RETURN.patch
diff -u /dev/null packages/libepc/G_CONST_RETURN.patch:1.1
--- /dev/null	Fri Sep 30 22:58:07 2011
+++ packages/libepc/G_CONST_RETURN.patch	Fri Sep 30 22:58:02 2011
@@ -0,0 +1,51 @@
+From e3e1141ed96f3d377bdd902225865cce16526bfd Mon Sep 17 00:00:00 2001
+From: Ionut Biru <ibiru at archlinux.org>
+Date: Fri, 30 Sep 2011 10:57:14 +0000
+Subject: Avoid use of deprecated G_CONST_RETURN
+
+  * libepc/enums.c.in: Avoid use of deprecated G_CONST_RETURN.
+  Bug #660558
+---
+diff --git a/ChangeLog b/ChangeLog
+index a7d235d..857feb2 100644
+--- a/ChangeLog
++++ b/ChangeLog
+@@ -1,3 +1,10 @@
++2011-08-31  Ionut Biru <ibiru at archlinux.org>
++
++  Avoid use of deprecated G_CONST_RETURN
++    
++  * libepc/enums.c.in: Avoid use of deprecated G_CONST_RETURN.
++  Bug #660558
++
+ 	=== Release 0.4.1 ===
+ 	
+ 2011-08-31  Murray Cumming  <murrayc at murrayc.com>
+diff --git a/libepc/enums.c.in b/libepc/enums.c.in
+index 75f737c..bc81b84 100644
+--- a/libepc/enums.c.in
++++ b/libepc/enums.c.in
+@@ -65,7 +65,7 @@ G at Type@Class*
+  *
+  * Returns: The string representation of @value, or %NULL.
+  */
+-G_CONST_RETURN gchar*
++const gchar*
+ @enum_name at _to_string (@EnumName@ value)
+ {
+   const G at Type@Value *@type at _value = g_ at type@_get_value (@enum_name at _get_class (), value);
+diff --git a/libepc/enums.h.in b/libepc/enums.h.in
+index fea8b07..48973e5 100644
+--- a/libepc/enums.h.in
++++ b/libepc/enums.h.in
+@@ -19,7 +19,7 @@ G_BEGIN_DECLS
+ 
+ GType                 @enum_name at _get_type  (void) G_GNUC_CONST;
+ G at Type@Class*           @enum_name at _get_class (void) G_GNUC_CONST;
+-G_CONST_RETURN gchar* @enum_name at _to_string (@EnumName@ value) G_GNUC_PURE;
++const gchar* @enum_name at _to_string (@EnumName@ value) G_GNUC_PURE;
+ /*** END value-header ***/
+ 
+ /*** BEGIN file-tail ***/
+--
+cgit v0.9.0.2
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/libepc/libepc.spec?r1=1.16&r2=1.17&f=u



More information about the pld-cvs-commit mailing list