summaryrefslogtreecommitdiff
path: root/mk/wrapper
diff options
context:
space:
mode:
authorrillig <rillig>2006-12-09 12:11:28 +0000
committerrillig <rillig>2006-12-09 12:11:28 +0000
commitbb2e35d47a705eb84c11eb04c50e7a79f7307f1a (patch)
treec5b0069a32961c71a996fa13f74574a981686bcd /mk/wrapper
parent7077c419ac422b122a9a97808bcf23410ff3f8c4 (diff)
downloadpkgsrc-bb2e35d47a705eb84c11eb04c50e7a79f7307f1a.tar.gz
Since the wrapper transformations are usually quite hard to follow and
may lead to failure for some packages, a note to the user is printed when a wrapped command fails, including the "real" command line of the wrapped command. This change arose from the implicit addition of the -std=c99, -std=gnu99 or -c99 options, which made some packages fail with obscure error messages. This change helps users get to the real cause more quickly.
Diffstat (limited to 'mk/wrapper')
-rw-r--r--mk/wrapper/wrapper.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/wrapper/wrapper.sh b/mk/wrapper/wrapper.sh
index 86f475a7fcb..af016cc3031 100644
--- a/mk/wrapper/wrapper.sh
+++ b/mk/wrapper/wrapper.sh
@@ -1,6 +1,6 @@
#! @WRAPPER_SHELL@
#
-# $NetBSD: wrapper.sh,v 1.9 2006/11/26 14:42:17 rillig Exp $
+# $NetBSD: wrapper.sh,v 1.10 2006/12/09 12:11:28 rillig Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -120,4 +120,10 @@ eval "$cmd" || wrapper_result="$?"
. $cleanup
+[ $wrapper_result -eq 0 ] || {
+ echo ""
+ echo "[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:"
+ echo "$cmd"
+} 1>&2
+
exit ${wrapper_result}