]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
scripts: make sure scripts are invoked via $(PYTHON)
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 May 2023 09:27:39 +0000 (11:27 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 May 2023 18:40:29 +0000 (20:40 +0200)
Some scripts are invoked via the first "python3" binary in the PATH,
because they are executable and their shebang line is "#! /usr/bin/env
python3".  To enforce usage of $(PYTHON), make them nonexecutable.
Scripts invoked via meson need nothing else, and meson-buildoptions.py
is already using $(PYTHON).  For probe-gdb-support.py however the
invocation in the configure script has to be adjusted.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure
scripts/meson-buildoptions.py [changed mode: 0755->0644]
scripts/modinfo-collect.py [changed mode: 0755->0644]
scripts/modinfo-generate.py [changed mode: 0755->0644]
scripts/probe-gdb-support.py [changed mode: 0755->0644]

index f7cd376e525f74996c655561f1d5a7d56bdcb5a7..1bdc7fd69b7bcee627a1f8b9f28de4511e0e02eb 100755 (executable)
--- a/configure
+++ b/configure
@@ -1767,7 +1767,7 @@ if test -n "$gdb_bin"; then
     gdb_version=$($gdb_bin --version | head -n 1)
     if version_ge ${gdb_version##* } 9.1; then
         echo "HAVE_GDB_BIN=$gdb_bin" >> $config_host_mak
-        gdb_arches=$("$source_path/scripts/probe-gdb-support.py" $gdb_bin)
+        gdb_arches=$($python "$source_path/scripts/probe-gdb-support.py" $gdb_bin)
     else
         gdb_bin=""
     fi
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)