pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/chat/telegram-purple telegram-purple: build fix



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e13f1a922ce7
branches:  trunk
changeset: 313342:e13f1a922ce7
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Thu Sep 27 19:53:07 2018 +0000

description:
telegram-purple: build fix

diffstat:

 chat/telegram-purple/distinfo                                |   3 +-
 chat/telegram-purple/patches/patch-tgl_tl-parser_tl-parser.c |  23 ++++++++++++
 2 files changed, 25 insertions(+), 1 deletions(-)

diffs (41 lines):

diff -r daadf1aac4a0 -r e13f1a922ce7 chat/telegram-purple/distinfo
--- a/chat/telegram-purple/distinfo     Thu Sep 27 19:47:09 2018 +0000
+++ b/chat/telegram-purple/distinfo     Thu Sep 27 19:53:07 2018 +0000
@@ -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 @@
 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 -r daadf1aac4a0 -r e13f1a922ce7 chat/telegram-purple/patches/patch-tgl_tl-parser_tl-parser.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/telegram-purple/patches/patch-tgl_tl-parser_tl-parser.c      Thu Sep 27 19:53:07 2018 +0000
@@ -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;
+   }



Home | Main Index | Thread Index | Old Index