pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/wrapper When a wrapped compiler or linker command f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/87101b1e4d5f
branches:  trunk
changeset: 528903:87101b1e4d5f
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat May 19 17:25:56 2007 +0000

description:
When a wrapped compiler or linker command fails, the transformed command
line is no longer printed by default. To get that behavior back, you can
set the variable WRAPPER_DEBUG to "yes".

This avoids some noise during the build. The old behavior was mostly
useful on Solaris and IRIX, where a -std=c99 or -c99 option had been
added to the compiler's arguments by the wrapper. This caused
diagnostics that were hard to understand, since the user did not specify
these flags and there was no sign that they had been added.

diffstat:

 mk/wrapper/wrapper.sh |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 537451fc716a -r 87101b1e4d5f mk/wrapper/wrapper.sh
--- a/mk/wrapper/wrapper.sh     Sat May 19 16:36:04 2007 +0000
+++ b/mk/wrapper/wrapper.sh     Sat May 19 17:25:56 2007 +0000
@@ -1,6 +1,6 @@
 #! @WRAPPER_SHELL@
 #
-# $NetBSD: wrapper.sh,v 1.17 2007/03/15 22:09:29 rillig Exp $
+# $NetBSD: wrapper.sh,v 1.18 2007/05/19 17:25:56 rillig Exp $
 #
 # Copyright (c) 2004 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -133,7 +133,7 @@
 
 . $cleanup
 
-[ $wrapper_result -eq 0 ] || {
+[ $wrapper_result -eq 0 ] || [ "$debug" != "yes" ] || {
        echo ""
        echo "[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:"
        echo "$cmd"



Home | Main Index | Thread Index | Old Index