diff options
author | wiz <wiz@pkgsrc.org> | 2013-08-20 13:08:29 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2013-08-20 13:08:29 +0000 |
commit | 3c9e8f66dbbdf952a479a686dbab58509ff9a4ae (patch) | |
tree | 757e04bd005108d9915d4d61b3587db8bd27a4f5 /security/openvas-libnasl | |
parent | f198f6d7545f88f45a860e3e1b2d37de32c162a2 (diff) | |
download | pkgsrc-3c9e8f66dbbdf952a479a686dbab58509ff9a4ae.tar.gz |
Fix build with bison-3.0.
(just build-tested)
Diffstat (limited to 'security/openvas-libnasl')
-rw-r--r-- | security/openvas-libnasl/distinfo | 3 | ||||
-rw-r--r-- | security/openvas-libnasl/patches/patch-nasl_nasl__grammar.y | 32 |
2 files changed, 34 insertions, 1 deletions
diff --git a/security/openvas-libnasl/distinfo b/security/openvas-libnasl/distinfo index dc2fcbc538d..01bdf37db30 100644 --- a/security/openvas-libnasl/distinfo +++ b/security/openvas-libnasl/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.2 2011/07/05 05:02:10 dholland Exp $ +$NetBSD: distinfo,v 1.3 2013/08/20 13:08:29 wiz Exp $ SHA1 (openvas-libnasl-2.0.0.tar.gz) = 91d6e0c9e6686aaba6b9bc64df3a941f703381af RMD160 (openvas-libnasl-2.0.0.tar.gz) = 4f1933bfa2c4cdfdd8047e2e5572ed0f045b7719 Size (openvas-libnasl-2.0.0.tar.gz) = 497973 bytes SHA1 (patch-aa) = da45176003eaf27c61b707a17cef48ee2fcb95da SHA1 (patch-nasl_Makefile) = 395a2da0af5249c9cce0e916f1c0f641bc183a21 +SHA1 (patch-nasl_nasl__grammar.y) = 1c5eef82e0ffc3277789aaa1573c13f297e5a583 diff --git a/security/openvas-libnasl/patches/patch-nasl_nasl__grammar.y b/security/openvas-libnasl/patches/patch-nasl_nasl__grammar.y new file mode 100644 index 00000000000..eb1c7eefd31 --- /dev/null +++ b/security/openvas-libnasl/patches/patch-nasl_nasl__grammar.y @@ -0,0 +1,32 @@ +$NetBSD: patch-nasl_nasl__grammar.y,v 1.1 2013/08/20 13:08:29 wiz Exp $ + +Fix build with bison-3.0. + +--- nasl/nasl_grammar.y.orig 2008-12-16 13:06:34.000000000 +0000 ++++ nasl/nasl_grammar.y +@@ -1,4 +1,6 @@ +-%pure_parser ++%pure-parser ++%parse-param {void *parm} ++%lex-param {void *parm} + %expect 1 + %{ + /* Nessus Attack Scripting Language version 2 +@@ -32,7 +34,7 @@ + #include "nasl_debug.h" + #include "nasl_signature.h" + +-static void naslerror(const char *); ++static void naslerror(void *, char const *); + #define YYERROR_VERBOSE + %} + +@@ -470,7 +472,7 @@ glob: GLOBAL arg_decl + #include <stdlib.h> + + static void +-naslerror(const char *s) ++naslerror(void *locp, char const *s) + { + fputs(s, stderr); + } |