]> git.ipfire.org Git - thirdparty/qemu.git/commit
make-release: only leave tarball of wrap-file subprojects
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Dec 2024 10:24:13 +0000 (11:24 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 17 Jan 2025 18:54:18 +0000 (21:54 +0300)
commit1032dccadb647cf517c9ee57ffd7acca2f88df5d
tree9a060d6750053751ceed32127776e82f8c68606a
parentacc4e8b69b9d7a6fc30f0be63ce0bf4dffd5d560
make-release: only leave tarball of wrap-file subprojects

The QEMU source archive is including the sources downloaded from crates.io
in both tarball form (in subprojects/packagecache) and expanded/patched
form (in the subprojects directory).  The former is the more authoritative
form, as it has a hash that can be verified in the wrap file and checked
against the download URL, so keep that one only.  This works also with
--disable-download; when building QEMU for the first time from the
tarball, Meson will print something like

    Using proc-macro2-1-rs source from cache.

for each subproject, and then go on to extract the tarball and apply the
overlay or the patches in subprojects/packagefiles.

Reported-by: Michael Tokarev <mjt@tls.msk.ru>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2719
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit be27b5149c86f81531f8fc609baf3480fc4d9ca0)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
scripts/make-release