diff options
author | rillig <rillig@pkgsrc.org> | 2006-12-09 12:11:28 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-12-09 12:11:28 +0000 |
commit | ec0abe202c49f819c1a3f0e3b4fd0cdc2150ea38 (patch) | |
tree | c5b0069a32961c71a996fa13f74574a981686bcd /mk/wrapper | |
parent | 7bf0660e7113ea21391afffe00dadc659b6c76ff (diff) | |
download | pkgsrc-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/wrapper')
-rw-r--r-- | mk/wrapper/wrapper.sh | 8 |
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} |