libtool-patches
[Top][All Lists]
Advanced

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

Re: [PATCH] libtool -- don't print warnings with --silent


From: Peter O'Gorman
Subject: Re: [PATCH] libtool -- don't print warnings with --silent
Date: Mon, 29 Aug 2011 11:14:50 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Thunderbird/3.1.10

On 07/29/2011 07:55 PM, John David Anglin wrote:
Ping?

Hi Dave,

ltmain.sh is a generated file, so this patch is not correct. Perhaps something like (pasted in mail, so wrapped):

diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index 9358ec5..bd5736c 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -377,9 +377,11 @@ M4SH_GETOPTS(
        func_append preserve_args " $opt"],
   [],          [--silent|--quiet],             [],                     [
        func_append preserve_args " $opt"
+        opt_warning=false
         opt_verbose=false],
   [v],         [--verbose],                    [],                     [
        func_append preserve_args " $opt"
+        opt_warning=:
        opt_silent=false],
   [!],         [--tag],                        [],                     [
        func_append preserve_args " $opt $optarg"

This turns off warnings for --silent (and turns them on again for --verbose).

But I am not sure that --silent was meant to imply "no warnings", rather it turns off the verbose compile/link messages.

Would a new --no-warnings option be more appropriate?

Peter


On 9-Jul-11, at 7:03 PM, John David Anglin wrote:

The attached patch fixes the boehm-gc testsuite on hppa2.0w-hp-hpux11.11.
Without it, libtool always generates an informational warning when
linking
causing the entire boehm-gc testsuite to fail.

Ok? Ralf would you please install in libtool tree if ok.

2011-07-09 John David Anglin <address@hidden>

PR boehm-gc/48494
* ltmain.sh (func_warning): Don't print warnings if opt_silent is true.

Index: ltmain.sh
===================================================================
--- ltmain.sh (revision 176045)
+++ ltmain.sh (working copy)
@@ -437,7 +437,9 @@
# Echo program name prefixed warning message to standard error.
func_warning ()
{
- $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"}
1>&2
+ ${opt_silent-false} || {
+ $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"}
1>&2
+ }

# bash bug again:
:

Dave
--
J. David Anglin address@hidden
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]