From 1290c13b1b9c92bdbf9046671d6fa5e37fdaa4aa Mon Sep 17 00:00:00 2001 From: dholland Date: Sat, 24 Apr 2010 19:36:14 +0000 Subject: Hack around build problem with -current's lex. --- wm/golem/distinfo | 3 ++- wm/golem/patches/patch-aj | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 wm/golem/patches/patch-aj (limited to 'wm/golem') diff --git a/wm/golem/distinfo b/wm/golem/distinfo index ed294d7f45d..77cee4bebe7 100644 --- a/wm/golem/distinfo +++ b/wm/golem/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.6 2010/04/24 19:28:31 dholland Exp $ +$NetBSD: distinfo,v 1.7 2010/04/24 19:36:14 dholland Exp $ SHA1 (golem-0.0.5.tar.gz) = 5939acf109502a2f962e20fa933b31970fb2ed74 RMD160 (golem-0.0.5.tar.gz) = 845d67cc96fbf34aca99c50bdccf4c1afdafb7f1 @@ -12,3 +12,4 @@ SHA1 (patch-af) = 3d74dacec56e4c953169300dd492ecdbb67d3302 SHA1 (patch-ag) = 29b9e2068191a84d30224eb1103e68601a3da220 SHA1 (patch-ah) = a60ccac1bb4d818c7ac11c5acadd131e25f6803d SHA1 (patch-ai) = 580b4cbccb7039b476a3469a63d1d888d86e0993 +SHA1 (patch-aj) = 7e9df0996e972b174dfe833705219e937f11ab28 diff --git a/wm/golem/patches/patch-aj b/wm/golem/patches/patch-aj new file mode 100644 index 00000000000..6a168bed36e --- /dev/null +++ b/wm/golem/patches/patch-aj @@ -0,0 +1,19 @@ +$NetBSD: patch-aj,v 1.1 2010/04/24 19:36:14 dholland Exp $ + +Hack around a problem that appears with the newer flex in NetBSD-current. +(This is a hack, not a fix.) + +--- src/rclex.l~ 2002-01-18 01:11:10.000000000 +0000 ++++ src/rclex.l +@@ -134,7 +134,11 @@ static int rclex_includef(FILE *file, ch + inside_forplug = forplug; + yyin = file; + yy_switch_to_buffer(yy_create_buffer(yyin, YY_BUF_SIZE)); ++#ifndef INITIAL /* hack; flex docs say INITIAL === 0 */ ++ BEGIN(0); ++#else + BEGIN(INITIAL); ++#endif + + return 0; + } -- cgit v1.2.3