pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Inserted "set -e" as the first command in the show-...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6a364deeb421
branches: trunk
changeset: 503825:6a364deeb421
user: rillig <rillig%pkgsrc.org@localhost>
date: Thu Dec 01 00:27:56 2005 +0000
description:
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:
mk/bsd.pkg.mk | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 70612fb9f873 -r 6a364deeb421 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk Thu Dec 01 00:17:05 2005 +0000
+++ b/mk/bsd.pkg.mk Thu Dec 01 00:27:56 2005 +0000
@@ -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 @@
.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 \
Home |
Main Index |
Thread Index |
Old Index