# HG changeset patch # User Pascal Bellard # Date 1580579238 -3600 # Node ID 2f171f8462dd14c45ef36d3004236836efaff482 # Parent 0feced246be79b1366ed471b631ffb912ec896b2 openvas-libraries: patch for Bison 3 diff -r 0feced246be7 -r 2f171f8462dd openvas-libraries/receipt --- a/openvas-libraries/receipt Sat Feb 01 12:34:43 2020 +0100 +++ b/openvas-libraries/receipt Sat Feb 01 18:47:18 2020 +0100 @@ -20,6 +20,11 @@ sed -i 's/.*gnutls_transport_set_lowat.*/#if GNUTLS_VERSION_NUMBER < 0x020c00\n&\n#endif/' misc/network.c # gnutls_connection_end_t depredicated for gnutls >= 3.0.18 sed -i 's/gnutls_connection_end_t/unsigned int/' misc/openvas_server.h misc/openvas_server.c + + # Update for bison 3 + sed -i -e 's|naslerror(|naslerror(naslctxt *parm, |' \ + -e 's|pure_parser|pure-parser\n%parse-param {naslctxt * parm}\n%lex-param {naslctxt * parm}|' \ + nasl/nasl_grammar.y ./configure --prefix=/usr --localstatedir=/var \ --mandir=/usr/share/man \ $CONFIGURE_ARGS &&