summaryrefslogtreecommitdiffstats
path: root/abs/extra/gamin/fix-deprecated-const.patch
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-04-27 18:55:03 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-04-27 18:55:03 (GMT)
commitaea443b8ba699ce899b5de1b8abe92764779db8a (patch)
tree027c0ca5e59a36fedbde0f7eb0c1df02b4969e9a /abs/extra/gamin/fix-deprecated-const.patch
parent3d7290aa9f05bb5ff1c0bfe47108c833e01a2cfe (diff)
downloadlinhes_pkgbuild-aea443b8ba699ce899b5de1b8abe92764779db8a.zip
linhes_pkgbuild-aea443b8ba699ce899b5de1b8abe92764779db8a.tar.gz
linhes_pkgbuild-aea443b8ba699ce899b5de1b8abe92764779db8a.tar.bz2
gamin: dep of samba
Diffstat (limited to 'abs/extra/gamin/fix-deprecated-const.patch')
-rw-r--r--abs/extra/gamin/fix-deprecated-const.patch56
1 files changed, 56 insertions, 0 deletions
diff --git a/abs/extra/gamin/fix-deprecated-const.patch b/abs/extra/gamin/fix-deprecated-const.patch
new file mode 100644
index 0000000..3d5f613
--- /dev/null
+++ b/abs/extra/gamin/fix-deprecated-const.patch
@@ -0,0 +1,56 @@
+Description: Don't use deprecated G_CONST_RETURN. Fixes building with newer glib versions.
+Author: Matthias Klose <doko@ubuntu.com>
+Bug-Ubuntu: https://launchpad.net/bugs/829504
+
+Index: gamin/server/gam_node.c
+===================================================================
+--- gamin.orig/server/gam_node.c 2011-10-18 16:09:04.873780685 +0200
++++ gamin/server/gam_node.c 2011-10-18 16:09:01.965780543 +0200
+@@ -122,7 +122,7 @@
+ * it has finished with the string. If it must keep it longer, it
+ * should makes its own copy. The returned string must not be freed.
+ */
+-G_CONST_RETURN char *
++const char *
+ gam_node_get_path(GamNode * node)
+ {
+ g_assert(node);
+Index: gamin/server/gam_node.h
+===================================================================
+--- gamin.orig/server/gam_node.h 2011-10-18 16:09:04.729780677 +0200
++++ gamin/server/gam_node.h 2011-10-18 16:09:01.961780544 +0200
+@@ -58,7 +58,7 @@
+ void gam_node_set_is_dir (GamNode *node,
+ gboolean is_dir);
+
+-G_CONST_RETURN char *gam_node_get_path (GamNode *node);
++const char *gam_node_get_path (GamNode *node);
+
+ GList *gam_node_get_subscriptions (GamNode *node);
+
+Index: gamin/server/gam_subscription.c
+===================================================================
+--- gamin.orig/server/gam_subscription.c 2011-10-18 16:09:04.817780682 +0200
++++ gamin/server/gam_subscription.c 2011-10-18 16:09:01.965780543 +0200
+@@ -141,7 +141,7 @@
+ * @param sub the GamSubscription
+ * @returns The path being monitored. It should not be freed.
+ */
+-G_CONST_RETURN char *
++const char *
+ gam_subscription_get_path(GamSubscription * sub)
+ {
+ if (sub == NULL)
+Index: gamin/server/gam_subscription.h
+===================================================================
+--- gamin.orig/server/gam_subscription.h 2011-10-18 16:09:04.929780687 +0200
++++ gamin/server/gam_subscription.h 2011-10-18 16:09:01.965780543 +0200
+@@ -21,7 +21,7 @@
+
+ int gam_subscription_get_reqno (GamSubscription *sub);
+
+-G_CONST_RETURN char *gam_subscription_get_path (GamSubscription *sub);
++const char *gam_subscription_get_path (GamSubscription *sub);
+
+ GamListener *gam_subscription_get_listener (GamSubscription *sub);
+