[133990] trunk/dports/security/openvas-libnasl/files/bison3.patch

larryv at macports.org larryv at macports.org
Mon Mar 16 15:47:00 PDT 2015


Revision: 133990
          https://trac.macports.org/changeset/133990
Author:   larryv at macports.org
Date:     2015-03-16 15:47:00 -0700 (Mon, 16 Mar 2015)
Log Message:
-----------
openvas-libnasl: Maintain compatibility with Bison 2

The `param` directive is very new and easily replaced with more
compatible alternatives.

Modified Paths:
--------------
    trunk/dports/security/openvas-libnasl/files/bison3.patch

Modified: trunk/dports/security/openvas-libnasl/files/bison3.patch
===================================================================
--- trunk/dports/security/openvas-libnasl/files/bison3.patch	2015-03-16 22:20:03 UTC (rev 133989)
+++ trunk/dports/security/openvas-libnasl/files/bison3.patch	2015-03-16 22:47:00 UTC (rev 133990)
@@ -4,14 +4,15 @@
 ===================================================================
 --- nasl/nasl_grammar.y.orig
 +++ nasl/nasl_grammar.y
-@@ -1,4 +1,5 @@
+@@ -1,4 +1,6 @@
 -%pure_parser
 +%define api.pure
-+%param {void * parm}
++%lex-param {void * parm}
++%parse-param {void * parm}
  %expect 1
  %{
  /* Nessus Attack Scripting Language version 2
-@@ -19,9 +20,6 @@
+@@ -19,9 +21,6 @@
   * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   */
  
@@ -21,7 +22,7 @@
  #define LNB	(((naslctxt*)parm)->line_nb)
  #include "includes.h"
  #include "nasl_tree.h"
-@@ -32,7 +30,7 @@
+@@ -32,7 +31,7 @@
  #include "nasl_debug.h"
  #include "nasl_signature.h"
  
@@ -30,7 +31,7 @@
  #define YYERROR_VERBOSE
  %}
  
-@@ -470,7 +468,7 @@ glob: GLOBAL arg_decl 
+@@ -470,7 +469,7 @@ glob: GLOBAL arg_decl 
  #include <stdlib.h>
  
  static void 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150316/65fd15da/attachment.html>


More information about the macports-changes mailing list