Subject: pkg/23014: devel/bonobo-activation needs LEX and YACC
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 09/30/2003 10:39:29
>Number:         23014
>Category:       pkg
>Synopsis:       devel/bonobo-activation needs LEX and YACC
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 30 17:40:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6.1_STABLE
>Organization:
http://bsd.reedmedia.net/
>Environment:
	
	
System: NetBSD rainier.reedmedia.net 1.6.1_STABLE NetBSD 1.6.1_STABLE (GENERIC) #0: Tue Aug 12 02:52:57 PDT 2003 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
devel/bonobo-activation needs LEX and YACC.
>How-To-Repeat:
build devel/bonobo-activation without having flex and bison installed
and not having lex or yacc installed.
>Fix:
I added:
BUILD_USES_LEX=         YES
BUILD_USES_YACC=        YES

Then my bsd.pkg.mk has:


.if defined(BUILD_USES_LEX) && \
    (!exists(/usr/bin/lex) || !exists(/usr/bin/flex))
# XXX This should be made smarter so it can check if lex is good enough.
BUILD_DEPENDS+=		flex-[0-9]*:../../devel/flex
LEX=			${LOCALBASE}/bin/flex
.endif

.if defined(BUILD_USES_YACC) && !exists(/usr/bin/yacc)
# XXX This could be smarter to check for byacc and bison too.
# XXX Also a byacc package is available that could be used.
BUILD_DEPENDS+=		bison-[0-9]*:../../devel/bison
YACC=			${LOCALBASE}/bin/bison -y
.endif
>Release-Note:
>Audit-Trail:
>Unformatted: