Created attachment 180394 [details] More shebang entries for devel/bazel. devel/bazel doesn't update enough files in the shebang list. This causes (at least) the gerrit build to fail looking for /bin/bash. I've attached a more complete list of files to fix. It also fixes the expected location of bazelrc after the update to 0.4.4. With this, and the update to shells/bash in bug 217451, gerrit builds on FreeBSD without modification.
Comment on attachment 180394 [details] More shebang entries for devel/bazel. Your observation is absolutely correct. Thanks for the patch. Can some committer please commit it? Thanks.
Take.
It fails to install on 10.3/i386 ===> Generating temporary packing list /bin/cp /wrkdirs/usr/ports/devel/bazel/work/bazel-0.4.4/output/bazel /wrkdirs/usr/ports/devel/bazel/work/stage/usr/local/bin cp: /wrkdirs/usr/ports/devel/bazel/work/bazel-0.4.4/output/bazel: No such file or directory *** Error code 1 Stop. make: stopped in /usr/ports/devel/bazel http://sprunge.us/cYLf
Created attachment 180456 [details] Fixed way of having more shebang fixes Thanks for noting the build failure. I should have been more carefully when reviewing the patch. The provided SHEBANG_REGEX also matches the file third_party/grpc/grpc-stub-0.15.0.jar which should not be touched. The attached patch has a correct regex. It also bumps the PORTREVISION, as the fix affects the built binary.
(In reply to Klaus Aehlig from comment #4) LGTM, but I would make another change to make portlint happy. -48,7 +49,7 @@ ${LOCALBASE}/bin/bash ./compile.sh) do-install: - ${CP} ${WRKSRC}/output/bazel ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/output/bazel ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${ETCDIR} ${INSTALL_DATA} ${WRKSRC}/scripts/packages/debian/bazel.bazelrc ${STAGEDIR}${ETCDIR}/bazel.bazelrc.sample
A commit references this bug: Author: cpm Date: Fri Mar 3 14:52:54 UTC 2017 New revision: 435344 URL: https://svnweb.freebsd.org/changeset/ports/435344 Log: - Use SHEBANG_REGEX instead of SHEBANG_FILES. Update the list of files to fix. - Bump PORTREVISION PR: 217453 Submitted by: Dan McGregor <dan.mcgregor@usask.ca> Approved by: Klaus Aehlig <aelig@linta.de> (maintainer) Changes: head/devel/bazel/Makefile
Committed! Thanks