From: Yann E. MORIN Date: Sun, 28 Sep 2014 22:08:36 +0000 (+0200) Subject: pkg-utils: qstrip MESSAGE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57ae95be21f8e550bc387a54e8086b8abc48c612;p=buildroot.git pkg-utils: qstrip MESSAGE Currently, the MESSAGE macro double-quotes the message. But a few call sites also double-quote the message, resulting in a borked call to echo, like: $(call MESSAGE,"user text") would expand to: echo "Leading text "user message" trailign text" Just use qstrip on the user message, so we get protected from either a comma in the user text (so make does not interpret it), or a semi-colon (so the shell does not interpret it.) Signed-off-by: "Yann E. MORIN" Cc: Peter Korsgaard Cc: Thomas De Schampheleire Signed-off-by: Peter Korsgaard --- diff --git a/package/pkg-utils.mk b/package/pkg-utils.mk index 89ad9e9c6a..44766a062e 100644 --- a/package/pkg-utils.mk +++ b/package/pkg-utils.mk @@ -67,7 +67,7 @@ INFLATE.tar = cat suitable-extractor = $(INFLATE$(suffix $(1))) # MESSAGE Macro -- display a message in bold type -MESSAGE = echo "$(TERM_BOLD)>>> $($(PKG)_NAME) $($(PKG)_VERSION) $(1)$(TERM_RESET)" +MESSAGE = echo "$(TERM_BOLD)>>> $($(PKG)_NAME) $($(PKG)_VERSION) $(call qstrip,$(1))$(TERM_RESET)" TERM_BOLD := $(shell tput smso) TERM_RESET := $(shell tput rmso)