When a recursive make is run, stdin must be preserved. Otherwise su(1)

cannot ask for a password and fails. Patch provided by OBATA Akio in
http://mail-index.netbsd.org/pkgsrc-users/2007/04/23/0001.html
This commit is contained in:
rillig 2007-06-15 10:39:08 +00:00
parent 303376199b
commit 0f21e6fc1c

View file

@ -1,4 +1,4 @@
# $NetBSD: depends.mk,v 1.37 2007/06/07 15:30:26 jlam Exp $
# $NetBSD: depends.mk,v 1.38 2007/06/15 10:39:08 rillig Exp $
# This command prints out the dependency patterns for all full (run-time)
# dependencies of the package.
@ -115,10 +115,12 @@ ${_RDEPENDS_FILE}: ${_DEPENDS_FILE}
# Installs any missing dependencies.
#
_flavor-install-dependencies: .PHONY ${_DEPENDS_FILE}
${RUN}${CAT} ${_DEPENDS_FILE} | \
${RUN} \
exec 3<&0; \
${CAT} ${_DEPENDS_FILE} | \
while read type pattern dir; do \
${TEST} "$$type" = "bootstrap" && continue; \
${_DEPENDS_INSTALL_CMD}; \
${_DEPENDS_INSTALL_CMD} 0<&3; \
done
# _flavor-post-install-dependencies: