summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2018-09-27 19:53:07 +0000
committertnn <tnn@pkgsrc.org>2018-09-27 19:53:07 +0000
commitac841d4b692ee73eeb235c062cd18d6a0563f053 (patch)
treeca61db4b1180e12d7ddfb6fe71565caf2d0caf51 /chat
parent5c74335abfe2df462c8b63bf5616600e5036d8b7 (diff)
downloadpkgsrc-ac841d4b692ee73eeb235c062cd18d6a0563f053.tar.gz
telegram-purple: build fix
Diffstat (limited to 'chat')
-rw-r--r--chat/telegram-purple/distinfo3
-rw-r--r--chat/telegram-purple/patches/patch-tgl_tl-parser_tl-parser.c23
2 files changed, 25 insertions, 1 deletions
diff --git a/chat/telegram-purple/distinfo b/chat/telegram-purple/distinfo
index abc8cdcbbec..70a2d145831 100644
--- a/chat/telegram-purple/distinfo
+++ b/chat/telegram-purple/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2017/05/12 22:35:52 khorben Exp $
+$NetBSD: distinfo,v 1.4 2018/09/27 19:53:07 tnn Exp $
SHA1 (telegram-purple_1.3.0.orig.tar.gz) = 764a41616c813f14bd0c823fadf7901041b44ae7
RMD160 (telegram-purple_1.3.0.orig.tar.gz) = a90a1b193bf8ff48e3ec120a8f41f5dcd71693eb
@@ -6,3 +6,4 @@ SHA512 (telegram-purple_1.3.0.orig.tar.gz) = 580de77a595d676c3cfe618b10da424767a
Size (telegram-purple_1.3.0.orig.tar.gz) = 498493 bytes
SHA1 (patch-configure) = a517d347dcaad90e8f24ccd9f92c1216a9f05545
SHA1 (patch-tgl_tl-parser_portable__endian.h) = b4c4179fbb29bdbcc368a837d0dc6a6b84e0e23c
+SHA1 (patch-tgl_tl-parser_tl-parser.c) = bd6af1514d724f71ffffb51b824baa18084c289d
diff --git a/chat/telegram-purple/patches/patch-tgl_tl-parser_tl-parser.c b/chat/telegram-purple/patches/patch-tgl_tl-parser_tl-parser.c
new file mode 100644
index 00000000000..83031578a1d
--- /dev/null
+++ b/chat/telegram-purple/patches/patch-tgl_tl-parser_tl-parser.c
@@ -0,0 +1,23 @@
+$NetBSD: patch-tgl_tl-parser_tl-parser.c,v 1.1 2018/09/27 19:53:07 tnn Exp $
+
+error: %m is only allowed in syslog(3) like functions
+
+--- tgl/tl-parser/tl-parser.c.orig 2015-10-17 13:33:25.000000000 +0000
++++ tgl/tl-parser/tl-parser.c
+@@ -32,6 +32,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <assert.h>
++#include <errno.h>
+ #include <string.h>
+ #include <time.h>
+ #include <zlib.h>
+@@ -333,7 +334,7 @@ int expect (char *s) {
+ struct parse *tl_init_parse_file (const char *fname) {
+ int fd = open (fname, O_RDONLY);
+ if (fd < 0) {
+- fprintf (stderr, "Error %m\n");
++ fprintf (stderr, "Error %s\n", strerror(errno));
+ assert (0);
+ return 0;
+ }