Subject: Re: pkg/6604: lex fails somehow when building NMH-0.27
To: None <gnats-bugs@gnats.netbsd.org,>
From: Greg A. Woods <woods@most.weird.com>
List: netbsd-bugs
Date: 04/05/1999 17:01:17
[ On , December 17, 1998 at 07:20:01 (-0000), gnats-bugs@gnats.netbsd.org wrote: ]
> Subject: Re: pkg/6604: lex fails somehow when building NMH-0.27
>

This still happens with NMH-1.0 on NetBSD-1.3I (lex version 2.5.4):

	lex -nt ./dtimep.lex | sed -f ./lexedit.sed > dtimep.c
	LEX FAILED: using pre-lexed dtimep.c

However I now see that the Makefile includes the following comments:

	# This will bomb if lex is really flex, so check
	# file and use pre-generated version if necessary

This seems silly, but of course indicates that the "bug" (if you'll call
it that) isn't in NetBSD's lex, but rather in NMH (or at least in it's
time parser's dependence on AT&T lex).

One more interesting tidbit...  The nmh configure script reports:

	checking for flex... flex

but of course it never uses it because the Makefile.in uses:

	# LEX = @LEX@
	LEX = lex

I guess this PR should just be closed, since only if NMH is updated to
be able to use flex will NetBSD's "lex" ever work for it....

-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>      <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>