From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2 v2] support/download: make the git wrapper more robust
Date: Tue, 25 Oct 2016 23:49:53 +0200 [thread overview]
Message-ID: <20161025234953.5b20eca8@free-electrons.com> (raw)
In-Reply-To: <dfa66e5e537b137b49627a284ad872c6676f916b.1470004037.git.yann.morin.1998@free.fr>
Hello,
On Mon, 1 Aug 2016 00:35:55 +0200, Yann E. MORIN wrote:
> Currently, there are two failure paths in the wrapper:
>
> - if the tar fails, then the error is ignored because it is on the
> left-hand-side of a pipe;
>
> - if the find fails, then the error is ignored because it is a
> process substitution (and there is a pipe, too).
>
> While the former could be fixed with "set -o pipefail", the latter can
> not be fixed thusly and we must use an intemediate file for it.
>
> So, fix both issues by using intermediate files, both to generate the
> list of files to include in the archive, and generate the archive in a
> temporary tarball.
>
> Fixes the following build issue, where the find is failing for whatever
> unknown reason:
> http://autobuild.buildroot.net/results/20f/20fd76d2256eee81837f7e9bbaefbe79d7645ae9/
>
> And this one, where the process substitution failed, also for an unknown
> reason:
> http://autobuild.buildroot.org/results/018/018971ea9227b386fe25d3c264c7e80b843a9f68/
>
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
>
> ---
> Changes v1 -> v2:
> - also drop the pipe of the find command
> ---
> support/download/git | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-10-25 21:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-31 22:35 [Buildroot] [PATCH 0/2 v2] support/download: make the git helper more robust (branch yem/dl-git-robust) Yann E. MORIN
2016-07-31 22:35 ` [Buildroot] [PATCH 1/2 v2] support/download: make the git wrapper more robust Yann E. MORIN
2016-10-25 21:49 ` Thomas Petazzoni [this message]
2016-07-31 22:35 ` [Buildroot] [PATCH 2/2 v2] support/download: be more conservative about git special refs Yann E. MORIN
2016-08-24 13:32 ` Ricardo Martincoski
2016-10-15 9:00 ` Yann E. MORIN
2016-10-15 18:35 ` Henrique Marks
2016-10-16 6:10 ` Ricardo Martincoski
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=20161025234953.5b20eca8@free-electrons.com \
--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