From: Peter Maydell <peter.maydell@linaro.org>
To: "Daniel P. Berrange" <berrange@redhat.com>
Cc: Aaron Lindsay <alindsay@codeaurora.org>,
QEMU Developers <qemu-devel@nongnu.org>,
Gerd Hoffmann <kraxel@redhat.com>, Fam Zheng <famz@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] build: Fix dtc-checkout race condition in Makefile
Date: Thu, 19 Oct 2017 18:05:15 +0100 [thread overview]
Message-ID: <CAFEAcA-eUxmCTB=-gMwHDfxn2n01+cOULH6S211BybWex=7DiA@mail.gmail.com> (raw)
In-Reply-To: <20171019091507.GF8408@redhat.com>
On 19 October 2017 at 10:15, Daniel P. Berrange <berrange@redhat.com> wrote:
> On Wed, Oct 18, 2017 at 02:40:23PM -0400, Aaron Lindsay wrote:
>> This was introduced by:
>> commit aef45d51d1204f3335fb99de6658e0c5612c2b67
>> Author: Daniel P. Berrange <berrange@redhat.com>
>> Date: Fri Sep 29 11:11:56 2017 +0100
>>
>> build: automatically handle GIT submodule checkout for dtc
>>
>> On my system, I see the following with a fresh clone:
>>
>> % ./configure --disable-gtk --target-list=aarch64-softmmu
>> % make -j8
>> GEN aarch64-softmmu/config-devices.mak.tmp
>> GEN config-host.h
>> mkdir -p dtc/libfdt
>> GIT ui/keycodemapdb dtc
>> mkdir -p dtc/tests
>> GEN qemu-options.def
>> [snip]
>> GEN migration/trace.h
>> make: *** [git-submodule-update] Error 1
>> make: *** Waiting for unfinished jobs....
>>
>> Upon closer inspection, the root cause of the error is:
>>
>> % git submodule update --init ui/keycodemapdb dtc
>> fatal: destination path 'dtc' already exists and is not an empty directory.
>> Clone of 'git://git.qemu-project.org/dtc.git' into submodule path 'dtc' failed
>>
>> This patch fixes this race condition by forcing the 'dtc/%' rule which caused
>> 'dtc' to be non-empty to wait on '.git-submodule-status'.
>
> Yes this makes sense
>
>>
>> Signed-off-by: Aaron Lindsay <alindsay@codeaurora.org>
> Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Thanks; applied to master as a buildfix.
-- PMM
prev parent reply other threads:[~2017-10-19 17:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-18 18:40 [Qemu-devel] [PATCH] build: Fix dtc-checkout race condition in Makefile Aaron Lindsay
2017-10-18 21:41 ` Philippe Mathieu-Daudé
2017-10-19 9:15 ` Daniel P. Berrange
2017-10-19 17:05 ` Peter Maydell [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='CAFEAcA-eUxmCTB=-gMwHDfxn2n01+cOULH6S211BybWex=7DiA@mail.gmail.com' \
--to=peter.maydell@linaro.org \
--cc=alindsay@codeaurora.org \
--cc=berrange@redhat.com \
--cc=famz@redhat.com \
--cc=kraxel@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/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;
as well as URLs for NNTP newsgroup(s).