summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-12-09 12:11:28 +0000
committerrillig <rillig@pkgsrc.org>2006-12-09 12:11:28 +0000
commitec0abe202c49f819c1a3f0e3b4fd0cdc2150ea38 (patch)
treec5b0069a32961c71a996fa13f74574a981686bcd /mk
parent7bf0660e7113ea21391afffe00dadc659b6c76ff (diff)
downloadpkgsrc-ec0abe202c49f819c1a3f0e3b4fd0cdc2150ea38.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')
-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}