aboutsummaryrefslogtreecommitdiff
path: root/bsd-user/netbsd/host-os.h
diff options
context:
space:
mode:
authorMichael Roth <michael.roth@amd.com>2025-02-13 17:53:20 -0600
committerMichael Tokarev <mjt@tls.msk.ru>2025-02-14 08:49:57 +0300
commitb79b05d1a06a013447ea93b81c07612766b735f2 (patch)
tree2e9f44de0cdfd5be8149dd0d68631c7739f277e0 /bsd-user/netbsd/host-os.h
parent0f35d854d25f70b6cf37b3c122e11b83e4832516 (diff)
downloadqemu-b79b05d1a06a013447ea93b81c07612766b735f2.zip
qemu-b79b05d1a06a013447ea93b81c07612766b735f2.tar.gz
qemu-b79b05d1a06a013447ea93b81c07612766b735f2.tar.bz2
make-release: don't rely on $CWD when excluding subproject directories
The current logic scans qemu.git/subprojects/ from *.wrap files to determine whether or not to include the associated directories in the release tarballs. However, the script assumes that it is being run from the top-level of the source directory, which may not always be the case. In particular, when generating releases via, e.g.: make qemu-9.2.1.tar.xz the $CWD will either be an arbitrary external build directory, or qemu.git/build, and the exclusions will not be processed as expected. Fix this by using the $src parameter passed to the script as the root directory for the various subproject/ paths referenced by this logic. Also, the error case at the beginning of the subproject_dir() will not result in the error message being printed, and will instead produce an error message about "error" not being a valid command. Fix this by using basic shell commands. Fixes: be27b5149c86 ("make-release: only leave tarball of wrap-file subprojects") Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Michael Tokarev <mjt@tls.msk.ru> Cc: qemu-stable@nongnu.org Signed-off-by: Michael Roth <michael.roth@amd.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'bsd-user/netbsd/host-os.h')
0 files changed, 0 insertions, 0 deletions