Sun Aug 12 09:15:07 2012 UTC ()
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.


(marino)
diff -r1.5 -r1.6 pkgsrc/security/aide06/distinfo
diff -r0 -r1.1 pkgsrc/security/aide06/patches/patch-src_conf_lex.l
diff -r0 -r1.1 pkgsrc/security/aide06/patches/patch-src_db_lex.c
diff -r0 -r1.1 pkgsrc/security/aide06/patches/patch-src_db_lex.l

cvs diff -r1.5 -r1.6 pkgsrc/security/aide06/distinfo (expand / switch to unified diff)

--- pkgsrc/security/aide06/distinfo 2005/05/23 21:24:17 1.5
+++ pkgsrc/security/aide06/distinfo 2012/08/12 09:15:07 1.6
@@ -1,10 +1,13 @@ @@ -1,10 +1,13 @@
1$NetBSD: distinfo,v 1.5 2005/05/23 21:24:17 jlam Exp $ 1$NetBSD: distinfo,v 1.6 2012/08/12 09:15:07 marino Exp $
2 2
3SHA1 (aide-0.6.tar.gz) = e6d112193ad96bdbbe1e1b685dac644d958a1155 3SHA1 (aide-0.6.tar.gz) = e6d112193ad96bdbbe1e1b685dac644d958a1155
4RMD160 (aide-0.6.tar.gz) = 034fe31c83125b6b0a7d23516122e161da0a2b2d 4RMD160 (aide-0.6.tar.gz) = 034fe31c83125b6b0a7d23516122e161da0a2b2d
5Size (aide-0.6.tar.gz) = 212475 bytes 5Size (aide-0.6.tar.gz) = 212475 bytes
6SHA1 (patch-aa) = db675e373464c5127f9bd4cbfd38e6634c950ebf 6SHA1 (patch-aa) = db675e373464c5127f9bd4cbfd38e6634c950ebf
7SHA1 (patch-ab) = 5cc5fdd9fcfde2c5e118bfa4cf68ec7e05215003 7SHA1 (patch-ab) = 5cc5fdd9fcfde2c5e118bfa4cf68ec7e05215003
8SHA1 (patch-ac) = 994de0dc4fc72d9a94f1110c79ece4cc4c0129cb 8SHA1 (patch-ac) = 994de0dc4fc72d9a94f1110c79ece4cc4c0129cb
9SHA1 (patch-ad) = 95cb43837470eb1316ef3c234abd71e79838e752 9SHA1 (patch-ad) = 95cb43837470eb1316ef3c234abd71e79838e752
10SHA1 (patch-ae) = bf37dc4f8f6d32f8357925d05f7cd398c917c317 10SHA1 (patch-ae) = bf37dc4f8f6d32f8357925d05f7cd398c917c317
 11SHA1 (patch-src_conf_lex.l) = 71f982518fac9ca78f6e5c17756fffb6f6b7cf88
 12SHA1 (patch-src_db_lex.c) = d8ec57425df56fc33fa0a5a86f074bbe758db5f9
 13SHA1 (patch-src_db_lex.l) = fc2cef91d2ab6183de7beee069e43f8b05d87560

File Added: pkgsrc/security/aide06/patches/patch-src_conf_lex.l
$NetBSD: patch-src_conf_lex.l,v 1.1 2012/08/12 09:15:07 marino Exp $

--- src/conf_lex.l.orig	2000-01-27 14:42:24.000000000 +0000
+++ src/conf_lex.l
@@ -12,7 +12,7 @@ EX      [" "\t]*
 
 %{
 
-#define YYDEBUG
+#define YYDEBUG 1
 
 #include <string.h>
 #include "conf_yacc.h"

File Added: pkgsrc/security/aide06/patches/patch-src_db_lex.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>

File Added: pkgsrc/security/aide06/patches/patch-src_db_lex.l
$NetBSD: patch-src_db_lex.l,v 1.1 2012/08/12 09:15:07 marino Exp $

--- src/db_lex.l.orig	1999-11-25 14:22:50.000000000 +0000
+++ src/db_lex.l
@@ -24,7 +24,7 @@ extern YYSTYPE yylval;
 #define YY_DECL int db_scan(void)
 
 
-#define YYDEBUG
+#define YYDEBUG 1
 
 #include "conf_yacc.h"
 #include <string.h>