1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00

Depend on flex and bison from ports on 9.

According to portsmon, benchmarks/fio's build is currently broken on 9 after
the update to 2.2.11:

  lex: can't open lex.yy.c

with a verbose build it's possible to see that this is because base's flex
on 9 is too old and does not support "-o foo", it requires "-ofoo".

Depending on flex from ports to fix the build is not enough, as then the
yacc call fails:

  /usr/bin/yacc -o y.tab.c -l -d -b y exp/expression-parser.y
  yacc: e - line 68 of "exp/expression-parser.y", syntax error
  %parse-param { long long *result }
  ^
  Makefile:312: recipe for target 'y.tab.c' failed

Fix it by depending on both textproc/flex and devel/bison when the versions
in base are too old.

PR:		205022
Approved by:	bapt (maintainer)
This commit is contained in:
Raphael Kubo da Costa 2015-12-05 01:08:22 +00:00
parent 905a009ac4
commit f212e8c1e6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=403016

View File

@ -18,6 +18,18 @@ GNUPLOT_DESC= Support for plotting graphs
GNUPLOT_BUILD_DEPENDS= ${LOCALBASE}/bin/gnuplot:${PORTSDIR}/math/gnuplot
.include <bsd.port.options.mk>
if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000013
USES+= bison
MAKE_ARGS+= YACC=${LOCALBASE}/bin/bison
.endif
if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000033
BUILD_DEPENDS+= flex>0:${PORTSDIR}/textproc/flex
MAKE_ARGS+= LEX=${LOCALBASE}/bin/flex
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/fio ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/tools/fio_generate_plots ${STAGEDIR}${PREFIX}/bin