Bug 223542 - net/glusterfs scripts /var/db/glusterd/hooks/1/ use /bin/bash not /usr/local/bin/bash
Summary: net/glusterfs scripts /var/db/glusterd/hooks/1/ use /bin/bash not /usr/local/...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
Keywords: easy, needs-patch
Depends on:
Reported: 2017-11-08 18:19 UTC by markhamb
Modified: 2021-03-14 22:53 UTC (History)
3 users (show)

See Also:
daniel: maintainer-feedback+
koobs: merge-quarterly?


Note You need to log in before you can comment on or make changes to this bug.
Description markhamb 2017-11-08 18:19:14 UTC
I am trying to get glusterfs-3.11.1_2 working on 11.1-RELEASE and noticed some errors in the logs.

The scripts in /var/db/glusterd/hooks/1/ all use #!/bin/bash when the default installation for FreeBSD is /usr/local/bin/bash.
The package also does not list bash as a dependency.

I have created a symlink for /bin/bash as a work-around.
Comment 1 craig001 2017-11-08 23:09:52 UTC
Thanks for capturing and reporting this...  I believe the correct way to handle it is to capture the scripts in the SHEBANG_FILES section in the Makefile before they are installed into the filesystem.
I will add this to the to do list with the next version bump, and update this PR accordingly.
Comment 2 craig001 2017-11-09 01:18:47 UTC
Hello Markham

Feel free to review, test, and comment on;

Kind Regards

Craig Butler
Comment 3 Daniel Morante 2020-08-10 23:17:46 UTC
The latest version of the port (8.0) fixes some of this, but I noticed some files missing from the SHEBANG_FILES list.

Comment 4 Daniel Morante 2021-03-14 22:53:23 UTC
This can probably be closed now.