NetBSD Problem Report #33028

From www@netbsd.org  Wed Mar  8 02:19:45 2006
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id D142E63B89A; Wed,  8 Mar 2006 02:19:45 +0000 (UTC)
Message-Id: <20060308021945.D142E63B89A@narn.netbsd.org>
Date: Wed,  8 Mar 2006 02:19:45 +0000 (UTC)
From: Lloyd.Parkes@ird.govt.nz
Reply-To: Lloyd.Parkes@ird.govt.nz
To: gnats-bugs@netbsd.org
Subject: cfengine2 on Solaris needs flex, not lex
X-Send-Pr-Version: www-1.0

>Number:         33028
>Category:       pkg
>Synopsis:       cfengine2 on Solaris needs flex, not lex
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 08 02:20:00 +0000 2006
>Closed-Date:    Wed Oct 10 11:11:51 +0000 2007
>Last-Modified:  Wed Oct 10 11:15:01 +0000 2007
>Originator:     Lloyd Parkes
>Release:        Solaris 9
>Organization:
Inland Revenue
>Environment:
SunOS XXX.ird.govt.nz 5.9 Generic sun4u sparc SUNW,UltraAX-i2

>Description:
lex(1) cannot cope with cflex.l 

/bin/bash ../ylwrap cflex.l lex.yy.c cflex.c -- lex  
got /home/lloyd/pkgsrc/sysutils/cfengine2/work/cfengine-2\.1\.10/src/
"/home/lloyd/pkgsrc/sysutils/cfengine2/work/cfengine-2.1.10/src/cflex.l":line 513: Error: Too many transitions 
636/1000 nodes(%e), 11077/12000 positions(%p), 990/2000 (%n), 178207 transitions,
227/10000 packed char classes(%k),  16032/16000 packed transitions(%a),  0/30000 output slots(%o)
*** Error code 1

Stop.
bmake: stopped in /home/lloyd/pkgsrc/sysutils/cfengine2/work/cfengine-2.1.10/src
*** Error code 1


>How-To-Repeat:
Try building cfengine2 on Solaris without flex installed.
>Fix:
Add the following three lines to sysutils/cfengine2/Makefile

.if ${OPSYS} == "SunOS"
.include "../../devel/flex/buildlink3.mk"
.endif


>Release-Note:

>Audit-Trail:
From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/33028: cfengine2 on Solaris needs flex, not lex
Date: Tue, 7 Mar 2006 18:26:52 -0800 (PST)

 On Wed, 8 Mar 2006 Lloyd.Parkes@ird.govt.nz wrote:

 > .if ${OPSYS} == "SunOS"
 > .include "../../devel/flex/buildlink3.mk"
 > .endif

 Maybe use instead:
 USE_TOOLS+=          flex

  Jeremy C. Reed

 echo ':6DB6=88>?;@69876tA=AC8BB5tA6487><' | tr '4-F' 'wu rofIn.lkigemca'

From: Lloyd Parkes <Lloyd.Parkes@ird.govt.nz>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/33028: cfengine2 on Solaris needs flex, not lex
Date: Wed, 08 Mar 2006 15:48:21 +1300

 Jeremy C. Reed wrote:
 >  Maybe use instead:
 >  USE_TOOLS+=          flex

 That seems to work fine.

 I'm normally a bit wary of forcing the use of a particular 
 implementation of a utility (who needs so sit and watch software build 
 when the OS tools work fine?), but as far as I know, there are only two 
 implementations of lex, and only one of them works for cfengine2.

 Cheers
 -- 
 Lloyd Parkes
 Senior Systems Programmer
 Open Systems
 Ph: +64 4 803 1437

From: "Jeremy C. Reed" <reed@reedmedia.net>
To: Lloyd Parkes <Lloyd.Parkes@ird.govt.nz>
Cc: gnats-bugs@netbsd.org, pkg-manager@netbsd.org,
	pkgsrc-bugs@netbsd.org
Subject: Re: pkg/33028: cfengine2 on Solaris needs flex, not lex
Date: Tue, 7 Mar 2006 20:05:01 -0800 (PST)

 On Wed, 8 Mar 2006, Lloyd Parkes wrote:

 > >  Maybe use instead:
 > >  USE_TOOLS+=          flex
 > 
 > That seems to work fine.
 > 
 > I'm normally a bit wary of forcing the use of a particular implementation of a
 > utility (who needs so sit and watch software build when the OS tools work
 > fine?),

 I know what you mean. At least on NetBSD, the flex and lex are identical 
 and in the base install, so USE_TOOLS+=flex won't install anything extra.

 Also using USE_TOOLS instead of BUILD_DEPENDS helps by using the 
 OS-provided tools.

 > but as far as I know, there are only two implementations of lex, and
 > only one of them works for cfengine2.



  Jeremy C. Reed

 echo 'I7@87944:;6<754372=9=?48812=7043:>' | tr '0-@' 'wutrofn mlkige.ca'

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: cube@netbsd.org
Responsible-Changed-When: Sun, 12 Mar 2006 19:05:02 +0000
Responsible-Changed-Why:
Solaris-specific issue.


From: Lloyd Parkes <Lloyd.Parkes@ird.govt.nz>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/33028: cfengine2 on Solaris needs flex, not lex
Date: Wed, 20 Jun 2007 19:44:23 +1200

 This patch fixes this problem. If someone would be so good as to apply it, it 
 would be much appreciated. Thanks.

 $NetBSD$

 --- Makefile.orig	2007-06-20 19:33:18.637190000 +1200
 +++ Makefile
 @@ -16,6 +16,8 @@ CONFIGURE_ARGS+=	--with-openssl=${BUILDL

   RCD_SCRIPTS=		cfexecd cfservd cfenvd

 +USE_TOOLS+=		flex
 +
   post-install:
   	${INSTALL_MAN_DIR} ${PREFIX}/${PKGMANDIR}/man8
   	${INSTALL_MAN} ${WRKSRC}/doc/*.8 ${PREFIX}/${PKGMANDIR}/man8

State-Changed-From-To: open->closed
State-Changed-By: rillig@netbsd.org
State-Changed-When: Wed, 10 Oct 2007 11:11:51 +0000
State-Changed-Why:
Fixed. Thanks for the PR.


From: Roland Illig <rillig@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/33028 CVS commit: pkgsrc/sysutils/cfengine2
Date: Wed, 10 Oct 2007 11:11:35 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	rillig
 Date:		Wed Oct 10 11:11:35 UTC 2007

 Modified Files:
 	pkgsrc/sysutils/cfengine2: Makefile

 Log Message:
 Needs flex; fixes PR 33028.


 To generate a diff of this commit:
 cvs rdiff -r1.21 -r1.22 pkgsrc/sysutils/cfengine2/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.