svn commit: r403016 - head/benchmarks/fio
Raphael Kubo da Costa
rakuco at FreeBSD.org
Sat Dec 5 01:08:23 UTC 2015
Author: rakuco
Date: Sat Dec 5 01:08:22 2015
New Revision: 403016
URL: https://svnweb.freebsd.org/changeset/ports/403016
Log:
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)
Modified:
head/benchmarks/fio/Makefile
Modified: head/benchmarks/fio/Makefile
==============================================================================
--- head/benchmarks/fio/Makefile Sat Dec 5 00:12:31 2015 (r403015)
+++ head/benchmarks/fio/Makefile Sat Dec 5 01:08:22 2015 (r403016)
@@ -18,6 +18,18 @@ GNUPLOT_DESC= Support for plotting graph
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
More information about the svn-ports-head
mailing list