Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCHv2] core/pkg-toolchain-external: quiesce spurious stderr
Date: Sat, 19 Aug 2017 15:08:07 +0200	[thread overview]
Message-ID: <20170819150807.5ab32f8e@windsurf> (raw)
In-Reply-To: <20170817191946.9167-1-yann.morin.1998@free.fr>

Hello,

On Thu, 17 Aug 2017 21:19:46 +0200, Yann E. MORIN wrote:
> Since 392b0a26f5 (toolchain-external: default BR2_TOOLCHAIN_EXTERNAL_PATH
> to empty), calling 'make clean' or similar can yield a spurious stderr
> message:
>     dirname: missing operand
>     Try 'dirname --help' for more information.
> 
> Which is definitely baffling and unsettling...
> 
> It turns out that it is pretty trivial to reproduce, and this defconfig
> is just enough:
> 
>     $ cat my-defconfig
>     BR2_TOOLCHAIN_EXTERNAL=y
> 
>     $ make BR2_DEFCONFIG=$(pwd)/my-defconfig defconfig
> 
>     $ make clean
>     dirname: missing operand
>     Try 'dirname --help' for more information.
>     [--snip--]
> 
> This is because the cross-compiler is not found in the PATH (and for
> good reasons, I don't have it in the PATH, not even at all).
> 
> So, when the cross-compiler is not found in the path, we simply
> continue as if all was good, and postpone the check to much later,
> when we try to copy the toolchain libs...
> 
> So, use a make construct rather than calling to the shell: $(dir ...)
> does not whine if passed nothing.
> 
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Arnout Vandecappelle <arnout@mind.be>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com>
> 
> ---
> Changes v1 -> v2:
>   - use $(dir ...) instead of $(shell dirname ...)  (Arnout)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

      parent reply	other threads:[~2017-08-19 13:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-17 19:19 [Buildroot] [PATCHv2] core/pkg-toolchain-external: quiesce spurious stderr Yann E. MORIN
2017-08-17 22:08 ` Arnout Vandecappelle
2017-08-19 13:08 ` Thomas Petazzoni [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170819150807.5ab32f8e@windsurf \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox