From owner-freebsd-ports Wed Jan 19 8: 9:37 2000 Delivered-To: freebsd-ports@freebsd.org Received: from m0.cs.berkeley.edu (m0.CS.Berkeley.EDU [128.32.45.176]) by hub.freebsd.org (Postfix) with ESMTP id 1620614C05; Wed, 19 Jan 2000 08:09:34 -0800 (PST) (envelope-from asami@cs.berkeley.edu) Received: from silvia.hip.berkeley.edu (sji-ca7-245.ix.netcom.com [209.109.235.245]) by m0.cs.berkeley.edu (8.9.3/8.9.3) with ESMTP id IAA92578; Wed, 19 Jan 2000 08:09:31 -0800 (PST) (envelope-from asami@cs.berkeley.edu) Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.9.3/8.6.9) id IAA05299; Wed, 19 Jan 2000 08:09:00 -0800 (PST) Date: Wed, 19 Jan 2000 08:09:00 -0800 (PST) Message-Id: <200001191609.IAA05299@silvia.hip.berkeley.edu> X-Authentication-Warning: silvia.hip.berkeley.edu: asami set sender to asami@cs.berkeley.edu using -f To: ports@FreeBSD.org Cc: obrien@FreeBSD.org Subject: USE_BISON From: asami@cs.berkeley.edu (Satoshi Asami) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Since -current now lacks bison, what about the following patch? === Index: bsd.port.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.325 diff -u -r1.325 bsd.port.mk --- bsd.port.mk 2000/01/17 12:43:10 1.325 +++ bsd.port.mk 2000/01/19 15:59:54 @@ -138,6 +138,7 @@ # PERL_VER - Short version of perl5 (see below for current value). # PERL_ARCH - Directory name of architecture dependent libraries # (value: ${ARCH}-freebsd). +# USE_BISON - Says that the port uses bison for building. # USE_IMAKE - Says that the port uses imake. Implies USE_X_PREFIX. # XMKMF - Set to path of `xmkmf' if not in $PATH (default: xmkmf -a ). # NO_INSTALL_MANPAGES - For imake ports that don't like the install.man @@ -661,6 +662,12 @@ PKG_IGNORE_DEPENDS?= '(XFree86-3\.3\.6|Motif-2\.1\.10)' +.if defined(USE_BISON) +.if ${OSVERSION} >= 400014 +BUILD_DEPENDS+= bison:${PORTSDIR}/devel/bison +.endif +.endif + .if ${OSVERSION} >= 300000 PERL_VERSION= 5.00503 .else === So far these ports have demonstrated their need for bison. (Note the 4-current build is still running -- the final death toll will likely be much higher.) === bc-gcc-2.7.2p1.0.2.log:bison: not found boa-0.92.log:bison:No such file or directory gnats-3.112.1.log:gmake[1]: bison: Command not found ja-jlatex209-a17-n152.log:bison: not found ja-jlatex209-n152.log:bison: not found ja-nethack-1.0.5.19970924.log:gmake[1]: bison: Command not found modula-3-lib-3.6.log:bison: not found sc-6.21.log:bison:No such file or directory ssystem-1.6.log:bison:No such file or directory tcptrace-5.2.0.log:bison:No such file or directory xmulti-2.00b4.log:bison:No such file or directory === Of course, we might be able to convince some of these to use byacc, but I'd rather not try to second-guess the authors and let our dependency mechanism take care of it. -PW P.S. Note the dependency checks the availability of bison first, so if you have a -current system you've been source-upgrading and never deleted /usr/bin/bison, it will essentially be a no-op. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message