diff options
author | rillig <rillig@pkgsrc.org> | 2007-06-15 10:39:08 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-06-15 10:39:08 +0000 |
commit | 0f21e6fc1cf6e11e38ea479b64994764afd819e2 (patch) | |
tree | 7e23f9f6db7c9a5e7147fc0212227863a4c53986 /mk/flavor | |
parent | 303376199b786480c916674b45ef974c08b375a4 (diff) | |
download | pkgsrc-0f21e6fc1cf6e11e38ea479b64994764afd819e2.tar.gz |
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
Diffstat (limited to 'mk/flavor')
-rw-r--r-- | mk/flavor/pkg/depends.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mk/flavor/pkg/depends.mk b/mk/flavor/pkg/depends.mk index 03b44017b17..ffcbcceef5d 100644 --- a/mk/flavor/pkg/depends.mk +++ b/mk/flavor/pkg/depends.mk @@ -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: |