pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

net/gnome-online-accounts: patch and buildlink



I've needed the patch because of this warning:
goadaemon.c:251:7: error: %m is only allowed in syslog(3) like functions
 [-Werror=format=] g_warning ("Error creating directory %s: %m", path);

I needed the buildlink to use it with wip/evolution-data-server.

Should this patch be upstreamed?

---
 net/gnome-online-accounts/buildlink3.mk             | 13 +++++++++++++
 net/gnome-online-accounts/distinfo                  |  1 +
 .../patches/patch-src_daemon_goadaemon.c            | 21 +++++++++++++++++++++
 3 files changed, 35 insertions(+)
 create mode 100644 net/gnome-online-accounts/buildlink3.mk
 create mode 100644 net/gnome-online-accounts/patches/patch-src_daemon_goadaemon.c

diff --git a/net/gnome-online-accounts/buildlink3.mk b/net/gnome-online-accounts/buildlink3.mk
new file mode 100644
index 0000000..abd14b6
--- /dev/null
+++ b/net/gnome-online-accounts/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	gnome-online-accounts
+
+.if !defined(GNOME_ONLINE_ACCOUNTS_BUILDLINK3_MK)
+GNOME_ONLINE_ACCOUNTS_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.gnome-online-accounts+=	gnome-online-accounts>=3.16.3nb2
+BUILDLINK_PKGSRCDIR.gnome-online-accounts?=	../../net/gnome-online-accounts
+
+.endif	# GNOME_ONLINE_ACCOUNTS_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-gnome-online-accounts
diff --git a/net/gnome-online-accounts/distinfo b/net/gnome-online-accounts/distinfo
index 8d4791b..150be3e 100644
--- a/net/gnome-online-accounts/distinfo
+++ b/net/gnome-online-accounts/distinfo
@@ -4,3 +4,4 @@ SHA1 (gnome-online-accounts-3.16.3.tar.xz) = a5d5e1bd69b8e0b7bf1f10621610790de38
 RMD160 (gnome-online-accounts-3.16.3.tar.xz) = 609caac3c6af40fd24439d440f3f31f618191b60
 SHA512 (gnome-online-accounts-3.16.3.tar.xz) = 34056d996b6d2d217375e1a86ff544915ae707759b64c77030366f9d3d34c0c735869130beb7fe94bbd949adc46d87153de47afa2fe1bcd3f175c6c420037145
 Size (gnome-online-accounts-3.16.3.tar.xz) = 1420940 bytes
+SHA1 (patch-src_daemon_goadaemon.c) = a6e624562fadf9c5b038ef62d2348071f0ae2f20
diff --git a/net/gnome-online-accounts/patches/patch-src_daemon_goadaemon.c b/net/gnome-online-accounts/patches/patch-src_daemon_goadaemon.c
new file mode 100644
index 0000000..9c49c30
--- /dev/null
+++ b/net/gnome-online-accounts/patches/patch-src_daemon_goadaemon.c
@@ -0,0 +1,21 @@
+$NetBSD$
+
+--- src/daemon/goadaemon.c.orig	2015-06-09 10:34:12.000000000 +0000
++++ src/daemon/goadaemon.c
+@@ -17,6 +17,7 @@
+  */
+ 
+ #include "config.h"
++#include <errno.h>
+ #include <glib/gi18n.h>
+ #include <gio/gdesktopappinfo.h>
+ #include <rest/rest-proxy.h>
+@@ -248,7 +249,7 @@ goa_daemon_init (GoaDaemon *self)
+   path = g_strdup_printf ("%s/goa-1.0", g_get_user_config_dir ());
+   if (g_mkdir_with_parents (path, 0755) != 0)
+     {
+-      g_warning ("Error creating directory %s: %m", path);
++      g_warning ("Error creating directory %s: %s", path, strerror(errno));
+     }
+   g_free (path);
+ 
-- 
2.7.0


-- 


Home | Main Index | Thread Index | Old Index