pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkgin pkgin: fix some clang build errors on N...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/91a0226055ea
branches:  trunk
changeset: 317730:91a0226055ea
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Jan 15 09:49:40 2019 +0000

description:
pkgin: fix some clang build errors on NetBSD-current

diffstat:

 pkgtools/pkgin/distinfo                |   5 ++++-
 pkgtools/pkgin/patches/patch-main.c    |  14 ++++++++++++++
 pkgtools/pkgin/patches/patch-pkgindb.c |  14 ++++++++++++++
 pkgtools/pkgin/patches/patch-tools.c   |  14 ++++++++++++++
 4 files changed, 46 insertions(+), 1 deletions(-)

diffs (68 lines):

diff -r 0efc996247fd -r 91a0226055ea pkgtools/pkgin/distinfo
--- a/pkgtools/pkgin/distinfo   Tue Jan 15 09:39:26 2019 +0000
+++ b/pkgtools/pkgin/distinfo   Tue Jan 15 09:49:40 2019 +0000
@@ -1,6 +1,9 @@
-$NetBSD: distinfo,v 1.54 2018/09/20 12:45:19 jperkin Exp $
+$NetBSD: distinfo,v 1.55 2019/01/15 09:49:40 wiz Exp $
 
 SHA1 (pkgin-0.11.6.tar.gz) = 25be08de68d07bb7b0d7c18f606401824d32ca12
 RMD160 (pkgin-0.11.6.tar.gz) = 928e4379785affb66ebaee89dd13dbdff2fa8be3
 SHA512 (pkgin-0.11.6.tar.gz) = 54435c871ec6d5400b6e44f26b7013bceac7821ae67ed091f172e61c6bb1469bcd496b5a34fc98721f2afef0611cb99a606e8ce0efb5a83ce83121dba940b5ed
 Size (pkgin-0.11.6.tar.gz) = 197396 bytes
+SHA1 (patch-main.c) = a40a09c6563fd90791f2b5ed2f36dafdaa8b54a7
+SHA1 (patch-pkgindb.c) = 95c0b32407ecd721495246da9f52a49db4367980
+SHA1 (patch-tools.c) = ddc90e21012c95c2064434cd5129f27e87aa1594
diff -r 0efc996247fd -r 91a0226055ea pkgtools/pkgin/patches/patch-main.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/pkgin/patches/patch-main.c       Tue Jan 15 09:49:40 2019 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-main.c,v 1.4 2019/01/15 09:49:40 wiz Exp $
+
+main.c:340:1: error: function 'usage' could be declared with attribute 'noreturn' [-Werror,-Wmissing-noreturn]
+
+--- main.c.orig        2018-09-20 12:31:51.000000000 +0000
++++ main.c
+@@ -335,6 +335,7 @@ find_cmd(const char *arg)
+       return -1;
+ }
+ 
++__attribute__((noreturn))
+ static void
+ usage(int status)
+ {
diff -r 0efc996247fd -r 91a0226055ea pkgtools/pkgin/patches/patch-pkgindb.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/pkgin/patches/patch-pkgindb.c    Tue Jan 15 09:49:40 2019 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-pkgindb.c,v 1.1 2019/01/15 09:49:40 wiz Exp $
+
+pkgindb.c:280:1: error: function 'pkgindb_sqlfail' could be declared with attribute 'noreturn' [-Werror,-Wmissing-noreturn]
+
+--- pkgindb.c.orig     2018-09-20 12:31:51.000000000 +0000
++++ pkgindb.c
+@@ -275,6 +275,7 @@ pkgindb_close(void)
+       sqlite3_close(pdb);
+ }
+ 
++__attribute__((noreturn))
+ static void
+ pkgindb_sqlfail(void)
+ {
diff -r 0efc996247fd -r 91a0226055ea pkgtools/pkgin/patches/patch-tools.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/pkgin/patches/patch-tools.c      Tue Jan 15 09:49:40 2019 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-tools.c,v 1.1 2019/01/15 09:49:40 wiz Exp $
+
+tools.c:107:28: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
+
+--- tools.c.orig       2018-09-20 12:31:51.000000000 +0000
++++ tools.c
+@@ -96,6 +96,7 @@ trunc_str(char *str, char limit, int dir
+       }
+ }
+ 
++__attribute__((__format__ (__printf__, 2, 3)))
+ void
+ do_log(const char *path, const char *fmt, ...)
+ {



Home | Main Index | Thread Index | Old Index