From: Paolo Bonzini <pbonzini@redhat.com>
To: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [PATCH] git-submodule.sh: allow running in validate mode without previous update
Date: Thu, 22 Jun 2023 11:50:50 +0200 [thread overview]
Message-ID: <d560c659-32e3-1610-6a81-2aa54e94a814@redhat.com> (raw)
In-Reply-To: <bc41fa85012d7eaf1534016f17308f9b50f35f27.camel@linux.ibm.com>
On 6/21/23 16:20, Nina Schoetterl-Glausch wrote:
> On Wed, 2023-06-21 at 16:07 +0200, Nina Schoetterl-Glausch wrote:
>> On Tue, 2023-06-20 at 22:44 +0200, Paolo Bonzini wrote:
>>> Il mar 20 giu 2023, 19:35 Nina Schoetterl-Glausch <nsg@linux.ibm.com> ha scritto:
>>>>> + modules="$modules $m"
>>>>> + grep $m $substat > /dev/null 2>&1 || $GIT submodule status $module >> $substat
>>>>> + else
>>>>> + echo "warn: ignoring non-existent submodule $m"
>>>>
>>>> What is the rational for ignoring non-existing submodules, i.e. how do the arguments to
>>>> the script go stale as you say in the patch description?
>>>
>>> For example when a Makefile calls the script before the Makefile itself is rebuilt.
>>
>> Ah thanks. Can this still happen, roms/SLOF being the only
>> remaining build time user of submodules,
>> as per 1f468152fb ("build: remove git submodule handling from main
>> makefile")? pc-bios/s390-ccw/Makefile explicitly names roms/SLOF,
>> so if that were removed, the Makefile would
>> need to be fixed anyway.
Yeah it cannot happen but I'm thinking it's sensible behavior in
principle. It also matches "git submodule update", which doesn't return
an error if the required path is not a submodule.
>>> You mean it succeeds even if roms/SLOF is empty?
>>
>> Yeah, it does:
>>
>> %prep
>> %autosetup -n qemu-%{version}%{?rcstr} -S git_am
>>
>> Which I does a git init, git add ., git commit, so no submodules exist
>> and git-submodule.sh ignores every maybe_module.
>
> Also the official source tar does include roms/SLOF, so they won't run into problems.
> I used the spec file with a tar generated by archive-source.sh which doesn't package roms/SLOF.
> How is the official tar generated?
It's generated with scripts/make-release.
Paolo
prev parent reply other threads:[~2023-06-22 9:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-18 21:20 [PATCH] git-submodule.sh: allow running in validate mode without previous update Paolo Bonzini
2023-06-20 17:35 ` Nina Schoetterl-Glausch
2023-06-20 20:44 ` Paolo Bonzini
2023-06-21 14:07 ` Nina Schoetterl-Glausch
2023-06-21 14:20 ` Nina Schoetterl-Glausch
2023-06-22 9:50 ` Paolo Bonzini [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=d560c659-32e3-1610-6a81-2aa54e94a814@redhat.com \
--to=pbonzini@redhat.com \
--cc=nsg@linux.ibm.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).