Script rc.d/rabbitmq contains this line: export PATH=/usr/local/lib/%%ERLANG_LIB%%/bin:$PATH I think it should be resolved when the packages is built to something like this export PATH=/usr/local/lib/erlang25/bin:$PATH
Two version upgrades later but this bug is still there. Can somebody fix it please? I think the bug was introduced in this change https://cgit.freebsd.org/ports/commit/net/rabbitmq/Makefile?id=c9033971719dc098b34276f11b8e5a5e22b966fd
Added Dave Cottlehuber to Cc, because he was the committer of the change where ERLANG_LIB was changed to _ERLANG_LIB (prefixed with underscore) but files/rabbitmq.in was not adapted to this change.
Hi! I'm looking into this problem. Sorry, I also missed that bug report so far.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=eaf122aac00621177a187c6cc77629bcc2e11318 commit eaf122aac00621177a187c6cc77629bcc2e11318 Author: Jean-Sébastien Pédron <dumbbell@FreeBSD.org> AuthorDate: 2023-07-31 09:22:33 +0000 Commit: Jean-Sébastien Pédron <dumbbell@FreeBSD.org> CommitDate: 2023-07-31 09:27:57 +0000 net/rabbitmq: Fix `rabbitmq` rc.d script to use `%%_ERLANG_LIB%%` [Why] In commit c9033971719dc098b34276f11b8e5a5e22b966fd, the variable was renamed from `ERLANG_LIB` to `_ERLANG_LIB`. However the rc.d script was not updated to reflect that change. Therefore the script didn't use the expected version of Erlang. This meant that it could use `lang/erlang` if it was installed (which could be incompatible) or not start at all. [How] The rc.d script is simply updated to use the new variable name. The port revision is bumped to note the change. PR: 271269 Reported by: Miroslav Lachman <000.fbsd@quip.cz> net/rabbitmq/Makefile | 1 + net/rabbitmq/files/rabbitmq.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
Fixed. Thank you for the report and analysis!