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] [autobuild.buildroot.net] Build results for 2014-04-10
Date: Fri, 11 Apr 2014 14:13:46 +0200	[thread overview]
Message-ID: <20140411141346.49e1251a@skate> (raw)
In-Reply-To: <20140411065158.0a9308de@core2quad.morethan.org>

Dear Mike Zick,

On Fri, 11 Apr 2014 06:51:58 -0500, Mike Zick wrote:

> >  > This looks weird, and I don't have a good explanation. For now,
> >  > I've removed this bogus file, and we'll see if this occurs again
> >  > in the future.
> > 
> > Agreed. Thanks for looking into it!
> > 
> 
> That reads like wget behavior, if interrupted and without the
> "continue" option.

Our wget download method normally downloads to a different temporary
file, and then moves the temporary file to the final location once the
download was successful. Hum, but it doesn't remove the temporary file
*before* starting the download:

define DOWNLOAD_WGET
        test -e $(DL_DIR)/$(2) || \
        ($(WGET) -O $(DL_DIR)/$(2).tmp '$(call qstrip,$(1))' && \
         mv $(DL_DIR)/$(2).tmp $(DL_DIR)/$(2)) || \
        (rm -f $(DL_DIR)/$(2).tmp ; exit 1)
endef

So if you have the following sequence:

 1/ wget downloads into tarball.tar.gz.tmp

 2/ wget is interrupted by Ctrl+C, the .tmp file remains

 3/ the build is restarted, so wget runs again, and downloads the file
    again

 4/ the download is successful, and the .tmp file is renamed to the
    final name

Would this sequence be possible?

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

  reply	other threads:[~2014-04-11 12:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-11  6:30 [Buildroot] [autobuild.buildroot.net] Build results for 2014-04-10 Thomas Petazzoni
2014-04-11  7:01 ` Peter Korsgaard
2014-04-11  7:30   ` Thomas Petazzoni
2014-04-11  8:04     ` Peter Korsgaard
2014-04-11 11:51       ` Mike Zick
2014-04-11 12:13         ` Thomas Petazzoni [this message]
2014-04-11 12:39           ` Baruch Siach
2014-04-11 12:59             ` Thomas Petazzoni
2014-04-11 14:00               ` Peter Korsgaard
2014-04-18 16:27                 ` Arnout Vandecappelle
2014-04-19 12:11                   ` Thomas Petazzoni
2014-04-19 14:17                   ` Mike Zick

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=20140411141346.49e1251a@skate \
    --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