From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 08/12] pkg-infra: don't use DL_DIR as scratchpad for temporary VCS checkouts
Date: Thu, 06 Mar 2014 18:45:00 +0100 [thread overview]
Message-ID: <5318B41C.1010801@mind.be> (raw)
In-Reply-To: <CAHXCMMJ-rQzL+Jkn_9QNw5y6t4W+ADQATR1JWe_bWJjM3h+YDg@mail.gmail.com>
On 06/03/14 11:25, Samuel Martin wrote:
[snip]
>> +
>> > +cd "${BUILD_DIR}"
>> > +# Remove leftovers from a previous failed run
>> > +rm -rf "${repodir}" "${output}.tmp"
>> > +
>> > ${CVS} -z3 -d":pserver:anonymous@${repo}" \
>> > - co -d "${basename}" -r ":${rev}" -P "${rawname}"
>> > -tar czf "${output}" "${basename}"
>> > -rm -rf "${basename}"
>> > + co -d "${repodir}" -r ":${rev}" -P "${rawname}"
>> > +tar czf "${output}.tmp" "${repodir}"
>> > +mv "${output}.tmp" "${output}"
> You move the temporary repository in the package build_dir.
> Maybe the temporary output archive should be generated there as well,
> so that the mv command will only move something valid.
No! If the DL_DIR is on a different mount point than the build dir (e.g.
on a shared network drive), then the move will become a copy so
non-atomic. We want to avoid that!
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
next prev parent reply other threads:[~2014-03-06 17:45 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-05 21:47 [Buildroot] [PATCH 0/12 v3] some download-related changes Yann E. MORIN
2014-03-05 21:47 ` [Buildroot] [PATCH 01/12] Makefile: rename USER_HOOKS_EXTRA_ENV to EXTRA_ENV Yann E. MORIN
2014-03-05 21:47 ` [Buildroot] [PATCH 02/12] Makefile: add BR2_DL_DIR " Yann E. MORIN
2014-03-05 21:47 ` [Buildroot] [PATCH 03/12] pkg-infra: move the git download helper to a script Yann E. MORIN
2014-03-05 21:47 ` [Buildroot] [PATCH 04/12] pkg-infra: move the svn " Yann E. MORIN
2014-03-05 21:47 ` [Buildroot] [PATCH 05/12] pkg-infra: move the cvs " Yann E. MORIN
2014-03-05 21:47 ` [Buildroot] [PATCH 06/12] pkg-infra: move the hg " Yann E. MORIN
2014-03-05 21:47 ` [Buildroot] [PATCH 07/12] pkg-infra: move the wget " Yann E. MORIN
2014-03-05 21:47 ` [Buildroot] [PATCH 08/12] pkg-infra: don't use DL_DIR as scratchpad for temporary VCS checkouts Yann E. MORIN
2014-03-06 10:25 ` Samuel Martin
2014-03-06 16:54 ` Yann E. MORIN
2014-03-06 17:45 ` Arnout Vandecappelle [this message]
2014-03-05 21:47 ` [Buildroot] [PATCH 09/12] pkg-infra: also set PKGDIR for the download step Yann E. MORIN
2014-03-05 21:47 ` [Buildroot] [PATCH 10/12] pkg-infra: add possiblity to check downloaded files against known hashes Yann E. MORIN
2014-03-06 10:45 ` Samuel Martin
2014-03-05 21:47 ` [Buildroot] [PATCH 11/12] manual: add documentation about packages' hashes Yann E. MORIN
2014-03-06 10:56 ` Samuel Martin
2014-03-06 17:09 ` Yann E. MORIN
2014-03-06 17:14 ` Thomas De Schampheleire
2014-03-06 17:37 ` Yann E. MORIN
2014-03-05 21:47 ` [Buildroot] [PATCH 12/12] package/ca-certificates: add tarball's hashes Yann E. MORIN
-- strict thread matches above, loose matches on Subject: below --
2014-03-10 20:51 [Buildroot] [PATCH 0/12 v4] Some download-related changes (branch yem/check-downloads) Yann E. MORIN
2014-03-10 20:51 ` [Buildroot] [PATCH 08/12] pkg-infra: don't use DL_DIR as scratchpad for temporary VCS checkouts Yann E. MORIN
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=5318B41C.1010801@mind.be \
--to=arnout@mind.be \
--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