Subject: pkg/33028: cfengine2 on Solaris needs flex, not lex
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 03/08/2006 02:20:00
>Number:         33028
>Category:       pkg
>Synopsis:       cfengine2 on Solaris needs flex, not lex
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 08 02:20:00 +0000 2006
>Originator:     Lloyd Parkes
>Release:        Solaris 9
Inland Revenue
SunOS 5.9 Generic sun4u sparc SUNW,UltraAX-i2

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

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

Try building cfengine2 on Solaris without flex installed.
Add the following three lines to sysutils/cfengine2/Makefile

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