put sbin directories in PATH when building standalone so lsof is found
This ensures that the standalone builds will include lsof, and it'll then be in the runshell PATH, so will work. This does not deal with manual builds where lsof is not in path, which will fail at runtime due to the program being missing.
This commit is contained in:
parent
08af051238
commit
0fdfab366e
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -162,7 +162,7 @@ linuxstandalone:
|
|||
|
||||
set -e; \
|
||||
for bin in $(THIRDPARTY_BINS); do \
|
||||
p="$$(which "$$bin")"; \
|
||||
p="$$(PATH=$$PATH:/usr/sbin:/sbin:/usr/local/sbin which "$$bin")"; \
|
||||
if [ -z "$$p" ]; then \
|
||||
echo "** missing $$bin" >&2; \
|
||||
exit 1; \
|
||||
|
@ -207,7 +207,7 @@ osxapp:
|
|||
cp $(OSXAPP_BASE)/LICENSE $(GIT_ANNEX_TMP_BUILD_DIR)/build-dmg/LICENSE.txt
|
||||
|
||||
for bin in $(THIRDPARTY_BINS); do \
|
||||
p="$$(which "$$bin")"; \
|
||||
p="$$(PATH=$$PATH:/usr/sbin:/sbin:/usr/local/sbin which "$$bin")"; \
|
||||
if [ -z "$$p" ]; then \
|
||||
echo "** missing $$bin" >&2; \
|
||||
exit 1; \
|
||||
|
|
Loading…
Reference in a new issue