From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: "Thomas Huth" <thuth@redhat.com>,
qemu-devel <qemu-devel@nongnu.org>,
"Stefan Hajnoczi" <stefanha@redhat.com>,
"Michael Roth" <michael.roth@amd.com>,
"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
"Gerd Hoffmann" <kraxel@redhat.com>,
"Cédric Le Goater" <clg@kaod.org>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Michael Tokarev" <mjt@tls.msk.ru>,
"qemu-ppc@nongnu.org list:PowerPC" <qemu-ppc@nongnu.org>,
qemu-arm <qemu-arm@nongnu.org>, "Brad Smith" <brad@comstyle.com>,
"Kamil Rytarowski" <kamil@netbsd.org>,
"Reinoud Zandijk" <reinoud@netbsd.org>,
"Ryo ONODERA" <ryoon@netbsd.org>
Subject: Re: [PATCH 1/3] scripts/make-release: Do not include the edk2 sources in the tarball anymore
Date: Mon, 4 Jul 2022 10:14:18 +0100 [thread overview]
Message-ID: <YsKvalrPIO96wWuP@redhat.com> (raw)
In-Reply-To: <CAJSP0QUx8456jPp4=MOjRwZMPrBYgU1669HnEpC_+gDobhOiCQ@mail.gmail.com>
On Mon, Jul 04, 2022 at 08:26:34AM +0100, Stefan Hajnoczi wrote:
> On Mon, 4 Jul 2022 at 07:45, Thomas Huth <thuth@redhat.com> wrote:
> >
> > The edk2 sources are bigger than the sources of QEMU - so they double the
> > size of our release tarballs if we include them. Fortunately, edk2 has a
> > permissive license, so there is no need for us to do this as long as we
> > continue to distribute the edk2 license information in our release tarball.
> >
> > Signed-off-by: Thomas Huth <thuth@redhat.com>
> > ---
> > scripts/make-release | 27 +++++++++++++++++++++------
> > 1 file changed, 21 insertions(+), 6 deletions(-)
> >
> > diff --git a/scripts/make-release b/scripts/make-release
> > index 05b14ecc95..f79ed7a2ae 100755
> > --- a/scripts/make-release
> > +++ b/scripts/make-release
> > @@ -20,19 +20,34 @@ git checkout "v${version}"
> > git submodule update --init
> > (cd roms/seabios && git describe --tags --long --dirty > .version)
> > (cd roms/skiboot && ./make_version.sh > .version)
> > -# Fetch edk2 submodule's submodules, since it won't have access to them via
> > -# the tarball later.
> > +
> > +# Fetch edk2 submodule's submodules to get their license information.
> > +# Edk2 is distributed under permissive licenses, so we don't have to
> > +# include the full source tree here (which is bigger than QEMU's sources)
> > +# as long as we provide the license information in the tarball.
> > #
> > # A more uniform way to handle this sort of situation would be nice, but we
> > # don't necessarily have much control over how a submodule handles its
> > # submodule dependencies, so we continue to handle these on a case-by-case
> > # basis for now.
> > -(cd roms/edk2 && \
> > - git submodule update --init -- \
> > +cd roms/edk2
> > +git submodule update --init --depth 1 -- \
> > ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 \
> > BaseTools/Source/C/BrotliCompress/brotli \
> > - CryptoPkg/Library/OpensslLib/openssl \
> > - MdeModulePkg/Library/BrotliCustomDecompressLib/brotli)
> > + CryptoPkg/Library/OpensslLib/openssl
> > +mv ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3/COPYING.txt \
> > + License-softfloat.txt
> > +mv BaseTools/Source/C/BrotliCompress/brotli/LICENSE License-brotli.txt
> > +mv CryptoPkg/Library/OpensslLib/openssl/LICENSE License-openssl.txt
> > +edk2rev=$(git rev-parse --short=12 HEAD)
> > +rm -r $(ls | grep -v License) .[a-z]*
> > +cat > sources.txt <<EOF
> > +The edk2 sources can be downloaded from:
> > +
> > +https://github.com/tianocore/edk2/archive/${edk2rev}.tar.gz
>
> Please use QEMU's edk2 mirror:
> https://gitlab.com/qemu-project/edk2
>
> QEMU mirrors all dependencies so that even if upstream projects go
> offline we can still rebuild all of QEMU from source.
Note that the github/lab generated tarballs are not signed, while
QEMU's release tarballs are gpg signed, so from that POV this would
be a regression no matter which site we point to.
Also it would need more guidance on what to actually do with the
tarball, as if you merely unpack it into this dir, it won't work
as it will be one level of dirs nesting too deep for QEMU's
build scripts to work.
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2022-07-04 9:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-04 6:42 [PATCH 0/3] scripts/make-release: Decrease the size of the release tarballs Thomas Huth
2022-07-04 6:42 ` [PATCH 1/3] scripts/make-release: Do not include the edk2 sources in the tarball anymore Thomas Huth
2022-07-04 7:26 ` Stefan Hajnoczi
2022-07-04 8:23 ` Thomas Huth
2022-07-04 9:14 ` Daniel P. Berrangé [this message]
2022-07-04 9:37 ` Thomas Huth
2022-07-04 9:49 ` Gerd Hoffmann
2022-07-04 10:45 ` Daniel P. Berrangé
2022-07-20 15:01 ` Thomas Huth
2022-07-04 6:42 ` [PATCH 2/3] scripts/make-release: Do not include the skiboot " Thomas Huth
2022-07-04 8:39 ` Cédric Le Goater
2022-07-04 6:42 ` [PATCH 3/3] scripts/make-release: Remove CI yaml and more git files from the tarball Thomas Huth
2022-07-04 7:29 ` Stefan Hajnoczi
2022-07-04 7:30 ` [PATCH 0/3] scripts/make-release: Decrease the size of the release tarballs Stefan Hajnoczi
2022-07-04 9:30 ` Daniel P. Berrangé
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=YsKvalrPIO96wWuP@redhat.com \
--to=berrange@redhat.com \
--cc=brad@comstyle.com \
--cc=clg@kaod.org \
--cc=f4bug@amsat.org \
--cc=kamil@netbsd.org \
--cc=kraxel@redhat.com \
--cc=michael.roth@amd.com \
--cc=mjt@tls.msk.ru \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=reinoud@netbsd.org \
--cc=richard.henderson@linaro.org \
--cc=ryoon@netbsd.org \
--cc=stefanha@gmail.com \
--cc=stefanha@redhat.com \
--cc=thuth@redhat.com \
/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.