diff options
author | rillig <rillig@pkgsrc.org> | 2005-12-01 00:27:56 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-12-01 00:27:56 +0000 |
commit | f39d78748c0235df1bc02cfca0309bbdb7af8074 (patch) | |
tree | 5cdf24c16138c5b6deb3f23914d8548425755e82 /mk/bsd.pkg.mk | |
parent | be7bdd3b87977e0851b7270f9568290074b6abb5 (diff) | |
download | pkgsrc-f39d78748c0235df1bc02cfca0309bbdb7af8074.tar.gz |
Inserted "set -e" as the first command in the show-depends-dirs target
to force an early exit as soon as a "cd" command fails. Otherwise, "/"
would have been added as a dependency, leading to undefined behavior.
See PR 32202 for details.
Fixes the second item of PR 32202.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r-- | mk/bsd.pkg.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index fb16131e473..09543b0ad66 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1770 2005/12/01 00:17:05 rillig Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1771 2005/12/01 00:27:56 rillig Exp $ # # This file is in the public domain. # @@ -1403,7 +1403,8 @@ do-fetch: .if !target(show-depends-dirs) _ALL_DEPENDS= ${DEPENDS} ${BUILD_DEPENDS} show-depends-dirs: do-check-pkg-fail-reason - @dlist=""; \ + @set -e; \ + dlist=""; \ depends=${_ALL_DEPENDS:C/^[^:]*://:O:u:Q}; \ for reldir in $$depends; do \ case $$reldir in \ |