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 mailing list
URL:
Keywords: easy, needs-patch
Depends on:
Blocks:
 
Reported: 2017-11-08 18:19 UTC by freebsd
Modified: 2019-07-03 09:14 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (craig001)
koobs: merge-quarterly?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description freebsd 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;
https://reviews.freebsd.org/D13010
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223548

Kind Regards

Craig Butler