Fix newvers.sh with BUILD_WITH_STRICT_TMPPATH=1

newvers.sh runs mkfifo which did not exist before this change.
However, I didn't notice before because it is run from a function
where a missing command does cause a noticeable failure.

Reviewed By:	emaste, markj
Differential Revision: https://reviews.freebsd.org/D18377
This commit is contained in:
Alex Richardson 2018-12-05 10:57:57 +00:00
parent 419333b944
commit c10d927c40
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=341514
2 changed files with 3 additions and 1 deletions

View file

@ -2215,6 +2215,8 @@ _basic_bootstrap_tools+=usr.bin/ldd
_basic_bootstrap_tools+=usr.sbin/services_mkdb usr.sbin/pwd_mkdb
# sysctl/chflags are required for installkernel:
_basic_bootstrap_tools+=sbin/sysctl bin/chflags
# mkfifo is used by sys/conf/newvers.sh
_basic_bootstrap_tools+=usr.bin/mkfifo
.if ${MK_AMD} != "no"
# unifdef is only used by usr.sbin/amd/libamu/Makefile

View file

@ -86,7 +86,7 @@ git_tree_modified()
local fifo
fifo=$(mktemp -u)
mkfifo -m 600 $fifo
mkfifo -m 600 $fifo || exit 1
$git_cmd --work-tree=${VCSTOP} diff-index HEAD > $fifo &
while read smode dmode ssha dsha status file; do
if ! expr $dsha : '^00*$' >/dev/null; then