* [PATCH 3/5] Makefile: suppress error message from shell
@ 2009-07-18 20:42 Ramsay Jones
2009-07-19 14:03 ` Josh Triplett
0 siblings, 1 reply; 6+ messages in thread
From: Ramsay Jones @ 2009-07-18 20:42 UTC (permalink / raw)
To: Christopher Li; +Cc: Sparse Mailing-list
In particular, on systems which do not have 'pkg-config' installed,
every invocation of make issues the following message:
/bin/sh: pkg-config: command not found
Suppress the message by redirecting stderr to the bit-bucket.
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
---
Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index 72f3686..70ccbc9 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ AR = ar
# CFLAGS += -O0 -DDEBUG -g3 -gdwarf-2
#
-HAVE_LIBXML=$(shell pkg-config --exists libxml-2.0 && echo 'yes')
+HAVE_LIBXML=$(shell pkg-config --exists libxml-2.0 2>/dev/null && echo 'yes')
HAVE_GCC_DEP=$(shell touch .gcc-test.c && \
$(CC) -c -Wp,-MD,.gcc-test.d .gcc-test.c 2>/dev/null && \
echo 'yes'; rm -f .gcc-test.d .gcc-test.o .gcc-test.c)
--
1.6.3.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH 3/5] Makefile: suppress error message from shell
2009-07-18 20:42 [PATCH 3/5] Makefile: suppress error message from shell Ramsay Jones
@ 2009-07-19 14:03 ` Josh Triplett
2009-07-20 20:21 ` Christopher Li
0 siblings, 1 reply; 6+ messages in thread
From: Josh Triplett @ 2009-07-19 14:03 UTC (permalink / raw)
To: Ramsay Jones; +Cc: Christopher Li, Sparse Mailing-list
On Sat, Jul 18, 2009 at 09:42:56PM +0100, Ramsay Jones wrote:
> In particular, on systems which do not have 'pkg-config' installed,
> every invocation of make issues the following message:
>
> /bin/sh: pkg-config: command not found
>
> Suppress the message by redirecting stderr to the bit-bucket.
[...]
> --- a/Makefile
> +++ b/Makefile
> @@ -15,7 +15,7 @@ AR = ar
> # CFLAGS += -O0 -DDEBUG -g3 -gdwarf-2
> #
>
> -HAVE_LIBXML=$(shell pkg-config --exists libxml-2.0 && echo 'yes')
> +HAVE_LIBXML=$(shell pkg-config --exists libxml-2.0 2>/dev/null && echo 'yes')
Seems sensible; this way, systems without pkg-config will simply end up
without HAVE_LIBXML.
- Josh Triplett
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 3/5] Makefile: suppress error message from shell
2009-07-19 14:03 ` Josh Triplett
@ 2009-07-20 20:21 ` Christopher Li
2009-07-21 21:50 ` Ramsay Jones
0 siblings, 1 reply; 6+ messages in thread
From: Christopher Li @ 2009-07-20 20:21 UTC (permalink / raw)
To: Josh Triplett; +Cc: Ramsay Jones, Sparse Mailing-list
> On Sat, Jul 18, 2009 at 09:42:56PM +0100, Ramsay Jones wrote:
>> In particular, on systems which do not have 'pkg-config' installed,
>> every invocation of make issues the following message:
>>
>> /bin/sh: pkg-config: command not found
>>
>> Suppress the message by redirecting stderr to the bit-bucket.
Applied.
Thanks
Chris
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 3/5] Makefile: suppress error message from shell
2009-07-20 20:21 ` Christopher Li
@ 2009-07-21 21:50 ` Ramsay Jones
2009-07-22 0:35 ` Christopher Li
0 siblings, 1 reply; 6+ messages in thread
From: Ramsay Jones @ 2009-07-21 21:50 UTC (permalink / raw)
To: Christopher Li; +Cc: Josh Triplett, Sparse Mailing-list
Christopher Li wrote:
>> On Sat, Jul 18, 2009 at 09:42:56PM +0100, Ramsay Jones wrote:
>>> In particular, on systems which do not have 'pkg-config' installed,
>>> every invocation of make issues the following message:
>>>
>>> /bin/sh: pkg-config: command not found
>>>
>>> Suppress the message by redirecting stderr to the bit-bucket.
>
> Applied.
>
> Thanks
Thanks.
Hmm, I noticed that you edited the "subject line" when you applied
the patch; namely s/shell/pkg-config/.
I find this a little puzzling, since the error message *is* issued
by the shell and is definitely *not* issued by pkg-config... which
is kinda the point... ;-)
ATB,
Ramsay Jones
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 3/5] Makefile: suppress error message from shell
2009-07-21 21:50 ` Ramsay Jones
@ 2009-07-22 0:35 ` Christopher Li
2009-07-24 18:40 ` Ramsay Jones
0 siblings, 1 reply; 6+ messages in thread
From: Christopher Li @ 2009-07-22 0:35 UTC (permalink / raw)
To: Ramsay Jones; +Cc: Josh Triplett, Sparse Mailing-list
On Tue, Jul 21, 2009 at 2:50 PM, Ramsay Jones<ramsay@ramsay1.demon.co.uk> wrote:
> Hmm, I noticed that you edited the "subject line" when you applied
> the patch; namely s/shell/pkg-config/.
>
> I find this a little puzzling, since the error message *is* issued
> by the shell and is definitely *not* issued by pkg-config... which
> is kinda the point... ;-)
>
Oh, right. The error is issue from shell when it try to run pkg-config.
If I just read the title, it is hard for me to predict where the change
is going to be. I just want to be more specific.
There is a reason I haven't push those to official tree yet. We can
still change it if we want. Suggestion?
Chris
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 3/5] Makefile: suppress error message from shell
2009-07-22 0:35 ` Christopher Li
@ 2009-07-24 18:40 ` Ramsay Jones
0 siblings, 0 replies; 6+ messages in thread
From: Ramsay Jones @ 2009-07-24 18:40 UTC (permalink / raw)
To: Christopher Li; +Cc: Josh Triplett, Sparse Mailing-list
Christopher Li wrote:
> On Tue, Jul 21, 2009 at 2:50 PM, Ramsay Jones<ramsay@ramsay1.demon.co.uk> wrote:
>> Hmm, I noticed that you edited the "subject line" when you applied
>> the patch; namely s/shell/pkg-config/.
>>
>> I find this a little puzzling, since the error message *is* issued
>> by the shell and is definitely *not* issued by pkg-config... which
>> is kinda the point... ;-)
>>
> Oh, right. The error is issue from shell when it try to run pkg-config.
> If I just read the title, it is hard for me to predict where the change
> is going to be. I just want to be more specific.
>
> There is a reason I haven't push those to official tree yet. We can
> still change it if we want. Suggestion?
I liked the original myself. :)
The "Makefile:" prefix was intended to indicate where the change was
made and I thought that the one-line summary was compact and accurate.
It's a bit difficult to indicate that "the cause of the error, which
is issued by the shell, is a missing pkg-config command on some
systems" as part of the one-line summary. (So I didn't try ;P )
Having said that, I can't claim to be good at writing commit messages.
So, feel free to re-write it as you wish.
ATB,
Ramsay Jones
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-07-24 19:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-18 20:42 [PATCH 3/5] Makefile: suppress error message from shell Ramsay Jones
2009-07-19 14:03 ` Josh Triplett
2009-07-20 20:21 ` Christopher Li
2009-07-21 21:50 ` Ramsay Jones
2009-07-22 0:35 ` Christopher Li
2009-07-24 18:40 ` Ramsay Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox