All of lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] [autobuild.buildroot.net] Build results for 2014-04-10
Date: Fri, 11 Apr 2014 15:39:31 +0300	[thread overview]
Message-ID: <20140411123931.GZ4096@tarshish> (raw)
In-Reply-To: <20140411141346.49e1251a@skate>

Hi Thomas,

On Fri, Apr 11, 2014 at 02:13:46PM +0200, Thomas Petazzoni wrote:
> 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?

That's apparently what happened at 
http://autobuild.buildroot.net/results/d19/d1967ec1b19211d209b6f476654bb30039da94fa/build-end.log.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

  reply	other threads:[~2014-04-11 12:39 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
2014-04-11 12:39           ` Baruch Siach [this message]
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=20140411123931.GZ4096@tarshish \
    --to=baruch@tkos.co.il \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.