pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
sparse: add some patches to be useful for netbsd
Module Name: pkgsrc-wip
Committed By: coypu <coypu%sdf.org@localhost>
Pushed By: coypu
Date: Mon Oct 17 16:22:19 2016 +0300
Changeset: 4744ffd1dd67d66150351bc722bca9bac69b1c5c
Modified Files:
sparse/distinfo
sparse/patches/patch-pre-process.c
Added Files:
sparse/patches/patch-dissect.h
sparse/patches/patch-lib.c
Log Message:
sparse: add some patches to be useful for netbsd
it keeps spewing:
error: Expected ) in function declarator
error: got ,
or:
error: got "GCC visibility push(default)"
if we tolerate more warnings and errors, it can
be filtered out later on.
one patch from pkgsrc itself.
describe patch for not dying on missing includes
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4744ffd1dd67d66150351bc722bca9bac69b1c5c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
sparse/distinfo | 5 +++--
sparse/patches/patch-dissect.h | 27 +++++++++++++++++++++++++++
sparse/patches/patch-lib.c | 31 +++++++++++++++++++++++++++++++
sparse/patches/patch-pre-process.c | 3 +++
4 files changed, 64 insertions(+), 2 deletions(-)
diffs:
diff --git a/sparse/distinfo b/sparse/distinfo
index 9411fb0..4c97a9d 100644
--- a/sparse/distinfo
+++ b/sparse/distinfo
@@ -6,5 +6,6 @@ SHA512 (sparse-0.5.0.tar.gz) = 6c21735a4c9548771d51a8f22256122ee6f17489e830efd9b
Size (sparse-0.5.0.tar.gz) = 239809 bytes
SHA1 (patch-Makefile) = 2f31f0b28bf64b6c24fff2cd786f420f853222fb
SHA1 (patch-cgcc) = 2525546ee8ea3ed52b3f3adc33add0365cf5cf49
-SHA1 (patch-dissect.h) = 850271dbec6758380134c3e36fb5a885cf69259e
-SHA1 (patch-pre-process.c) = d374d94d9284764124c053e32036958a430d2da7
+SHA1 (patch-dissect.h) = 75f6216fdd1776621181e82ffd610138c1811a9b
+SHA1 (patch-lib.c) = 4531f9125af693d6d8b752c7ea1829ccb62f6bf1
+SHA1 (patch-pre-process.c) = a30be7c701ac8933f93a4021593dcdb61ed5ec0c
diff --git a/sparse/patches/patch-dissect.h b/sparse/patches/patch-dissect.h
new file mode 100644
index 0000000..ff9e743
--- /dev/null
+++ b/sparse/patches/patch-dissect.h
@@ -0,0 +1,27 @@
+$NetBSD$
+
+--- dissect.h.orig 2014-02-16 22:44:57.000000000 +0000
++++ dissect.h
+@@ -27,13 +27,16 @@ struct reporter
+ extern void dissect(struct symbol_list *, struct reporter *);
+
+ #define MK_IDENT(s) ({ \
+- static struct { \
++ static union { \
+ struct ident ident; \
+- char __[sizeof(s)]; \
+- } ident = {{ \
+- .len = sizeof(s)-1, \
+- .name = s, \
+- }}; \
++ struct { \
++ char id[sizeof(struct ident)]; \
++ char name[sizeof(s)]; \
++ } named; \
++ } ident = { \
++ .ident.len = sizeof(s)-1, \
++ .named.name = s, \
++ }; \
+ &ident.ident; \
+ })
+
diff --git a/sparse/patches/patch-lib.c b/sparse/patches/patch-lib.c
new file mode 100644
index 0000000..282a0a3
--- /dev/null
+++ b/sparse/patches/patch-lib.c
@@ -0,0 +1,31 @@
+$NetBSD$
+
+Tolerate more warnings and errors, because there are a lot
+of nonsense warnings which are a pain to clean up (GCC
+visibility garbage).
+
+--- lib.c.orig 2014-02-16 22:44:57.000000000 +0000
++++ lib.c
+@@ -112,7 +112,7 @@ static void do_warn(const char *type, st
+ name, pos.line, pos.pos, type, buffer);
+ }
+
+-static int max_warnings = 100;
++static int max_warnings = 5000;
+ static int show_info = 1;
+
+ void info(struct position pos, const char * fmt, ...)
+@@ -148,11 +148,11 @@ void warning(struct position pos, const
+ static void do_error(struct position pos, const char * fmt, va_list args)
+ {
+ static int errors = 0;
+- die_if_error = 1;
++ die_if_error = 0;
+ show_info = 1;
+ /* Shut up warnings after an error */
+ max_warnings = 0;
+- if (errors > 100) {
++ if (errors > 5000) {
+ static int once = 0;
+ show_info = 0;
+ if (once)
diff --git a/sparse/patches/patch-pre-process.c b/sparse/patches/patch-pre-process.c
index e48ddd4..7e523c0 100644
--- a/sparse/patches/patch-pre-process.c
+++ b/sparse/patches/patch-pre-process.c
@@ -1,5 +1,8 @@
$NetBSD$
+don't die on missing includes. matters for netbsd for which
+opt_ files are generated by configs.
+
--- pre-process.c.orig 2014-02-16 22:44:57.000000000 +0000
+++ pre-process.c
@@ -933,7 +933,8 @@ static int handle_include_path(struct st
Home |
Main Index |
Thread Index |
Old Index