]> git.proxmox.com Git - mirror_qemu.git/commitdiff
scripts/xml-preprocess: Make sure this script is invoked via the right Python
authorThomas Huth <thuth@redhat.com>
Fri, 6 Oct 2023 04:52:56 +0000 (06:52 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 11 Oct 2023 21:37:39 +0000 (00:37 +0300)
If a script is executable and has a shebang line, Meson treats it as
a normal executable, so that this script here is run via the "python3"
binary in the $PATH. However, "python3" might not be in the $PATH at
all, or it might be a wrong version, so we should make sure to run
this script via the Python version that has been chosen for the QEMU
build process. The best way to do this is to remove the executable bit
from the access mode bits. (See also commit 4b424c757188f7a4)

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1918
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
scripts/xml-preprocess.py [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)