Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jan 2000 08:09:00 -0800 (PST)
From:      asami@cs.berkeley.edu (Satoshi Asami)
To:        ports@FreeBSD.org
Cc:        obrien@FreeBSD.org
Subject:   USE_BISON
Message-ID:  <200001191609.IAA05299@silvia.hip.berkeley.edu>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001191609.IAA05299>