pkgsrc-WIP-changes archive

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

sparse: don't die when missing includes



Module Name:	pkgsrc-wip
Committed By:	coypu <coypu%sdf.org@localhost>
Pushed By:	coypu
Date:		Sat Oct 15 23:51:32 2016 +0300
Changeset:	092a08daf0826112372ff6b5bfe854534b049ed7

Modified Files:
	sparse/distinfo
Added Files:
	sparse/patches/patch-pre-process.c

Log Message:
sparse: don't die when missing includes

helps netbsd which uses opt_* includes (which don't exist,
certainly not in /usr/include where it normally searches..)

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=092a08daf0826112372ff6b5bfe854534b049ed7

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 sparse/distinfo                    |  2 ++
 sparse/patches/patch-pre-process.c | 14 ++++++++++++++
 2 files changed, 16 insertions(+)

diffs:
diff --git a/sparse/distinfo b/sparse/distinfo
index e79e9e2..9411fb0 100644
--- a/sparse/distinfo
+++ b/sparse/distinfo
@@ -6,3 +6,5 @@ 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
diff --git a/sparse/patches/patch-pre-process.c b/sparse/patches/patch-pre-process.c
new file mode 100644
index 0000000..e48ddd4
--- /dev/null
+++ b/sparse/patches/patch-pre-process.c
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- 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
+ 	if (do_include_path(path, list, token, filename, flen))
+ 		return 0;
+ out:
+-	error_die(token->pos, "unable to open '%s'", filename);
++	sparse_error(token->pos, "unable to open '%s'", filename);
++	return -1;
+ }
+ 
+ static int handle_include(struct stream *stream, struct token **list, struct token *token)


Home | Main Index | Thread Index | Old Index