Created attachment 206730 [details] Patch that fixes some style issues and clean the Makefile Cleaned up the Makefile by running portlint(1) and portfmt(1). No changes in logic hence no PKGREVISION bump. Tested builds in 12.0-RELEASE-p9 (amd64). Would be nice if this can be applied to the ports tree.
Created attachment 206733 [details] Patch that fixes some style issues and clean the Makefile. In addition to the above clean up. Adds explicit invocation of gen_version_file.sh using the shell. (Without the explicit invocation, this was causing build failures within poudriere).
> Adds explicit invocation of gen_version_file.sh using the shell. Then the +sh_OLD_CMD= "/usr/bin/env bash" +sh_CMD= ${SH} +SHEBANG_FILES= gen_version_file.sh cruft could be removed, no? Or is gen_version_file.sh installed or called again later?
(In reply to Tobias Kortkamp from comment #2) But I would like to remove the bash dependency within the shell script. And just put /bin/sh there. It is called exactly once, before the build process starts.
(In reply to Santhosh Raju from comment #3) > But I would like to remove the bash dependency within the shell script. And just put /bin/sh there. USES=shebangfix only affects the first line of the script. "#!/usr/bin/env bash" is never used by anything if you explicitly run the script with ${SH} and patching it away becomes a pointless exercise.
(In reply to Tobias Kortkamp from comment #4) I did not know that, thank you for the information, sure in that case the additional 3 lines can be removed. In future if some bash specific dependency arises in the script this can be revisited.
Committed with some additional cleanup. Thanks!
A commit references this bug: Author: tobik Date: Fri Aug 30 22:07:28 UTC 2019 New revision: 510300 URL: https://svnweb.freebsd.org/changeset/ports/510300 Log: net-im/coyim: Makefile cleanup - Clean up by running portlint(1) and portfmt(1) - Remove some USES=shebangfix cruft - Make better use of USES=go while here - Use ${ECHO_CMD} not ${ECHO} per bsd.commands.mk PR: 239993 Submitted by: Santhosh Raju <santhosh.raju@gmail.com> (maintainer) Changes: head/net-im/coyim/Makefile