Created attachment 243692 [details] Path to port to make use /bin/sh instead When incron is run for users, it uses a hard-coded /bin/bash to execute the command. This results in a confusing error about not being able to execute the command. Use /bin/sh instead since that is the regular shell on FreeBSD.
this seems like something that could be pushed upstream, or at least as feature request to set at build time
(In reply to Mina Galić from comment #1) I don't disagree that this should be fixed upstream! But I figured there was a better chance of getting the minimum patch working for FreeBSD and then work on getting a more cross-platform patch for upstream. As I was just trying to get the incron for my use case, I went with the minimal solution, but figured others would run into the problem. My hope was that the maintainer might know a better solution and this was an OK stopgap or a stepping stone to the correct cross-platform solution.
it definitely is a good solution for now and much better than depending on bash.
Committed with maintainer timeout. Thanks!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=ba7720b45c318713be97c1739af97d468e5241eb commit ba7720b45c318713be97c1739af97d468e5241eb Author: Trenton Schulz <trueos@norwegianrockcat.com> AuthorDate: 2023-07-31 08:28:05 +0000 Commit: Fernando Apesteguía <fernape@FreeBSD.org> CommitDate: 2023-08-13 16:41:05 +0000 sysutils/incron: fix dependency on hard-coded /bin/bash PR: 272800 Reported by: trueos@norwegianrockcat.com Approved by: joh.hendriks@gmail.com (maintainer, timeout > 2 weeks) sysutils/incron/Makefile | 2 +- sysutils/incron/files/patch-usertable.cpp (new) | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-)