pkgsrc/security/aide06/patches/patch-src_db_lex.c
marino 6e2e78a24d security/aide06: Fix regression caused by bison 2.6.x
Bison 2.6.x+ handles the yydebug functionality differently by predefining
YYDEBUG.  The yacc logic is not expecting YYDEBUG to be defined without
an value, so it breaks on an "#if YYDEBUG" macro in a few places.

In order to make this work with pre-2.6 bison as well as current versions,
hard code the inclusion of debug symbols.  It doesn't hurt anything and
it fixes the package.
2012-08-12 09:15:07 +00:00

13 lines
308 B
C

$NetBSD: patch-src_db_lex.c,v 1.1 2012/08/12 09:15:07 marino Exp $
--- src/db_lex.c.orig 1999-11-25 14:44:34.000000000 +0000
+++ src/db_lex.c
@@ -418,7 +418,7 @@ extern YYSTYPE yylval;
#define YY_DECL int db_scan(void)
-#define YYDEBUG
+#define YYDEBUG 1
#include "conf_yacc.h"
#include <string.h>