Add full path to sysctl; not everyone has /sbin in their PATH. (If we
still support systems where sysctl is in /usr/bin then this needs to be fixed.) Noticed by: distfile survey
This commit is contained in:
parent
cc35e16915
commit
9d596c885f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=48490
@ -108,7 +108,7 @@ BRAND_FILES= bin/rpm sbin/ldconfig sbin/sln
|
||||
|
||||
FALLBACK_ELF_MIB= kern.fallback_elf_brand
|
||||
LINUX_ELF= 3
|
||||
PREVIOUS_ELF!= sysctl -n ${FALLBACK_ELF_MIB}
|
||||
PREVIOUS_ELF!= /sbin/sysctl -n ${FALLBACK_ELF_MIB}
|
||||
|
||||
do-patch:
|
||||
@${DO_NADA}
|
||||
@ -132,7 +132,7 @@ do-install:
|
||||
# Install all packages. Ignore dependencies just like the Red Hat installer.
|
||||
# Also, set the ELF fallback brand to Linux, so that we don't have to do
|
||||
# anything special to run staticly linked binaries.
|
||||
@sysctl -w ${FALLBACK_ELF_MIB}=${LINUX_ELF}
|
||||
@/sbin/sysctl -w ${FALLBACK_ELF_MIB}=${LINUX_ELF}
|
||||
@for R in ${DISTFILES}; do \
|
||||
${ECHO} $$R; \
|
||||
${RPM} -U ${RPMFLAGS} ${RPMDIR}/$$R; \
|
||||
@ -146,7 +146,7 @@ do-install:
|
||||
${ECHO} $$R; \
|
||||
${RPM} -U ${RPMFLAGS} ${RPMDIR}/$$R; \
|
||||
done
|
||||
@sysctl -w ${FALLBACK_ELF_MIB}=${PREVIOUS_ELF}
|
||||
@/sbin/sysctl -w ${FALLBACK_ELF_MIB}=${PREVIOUS_ELF}
|
||||
#
|
||||
# Install yp.conf as a hint to NIS users
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user