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.
13 lines
275 B
Text
13 lines
275 B
Text
$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"
|