From: Paolo Bonzini Date: Thu, 18 May 2023 09:27:39 +0000 (+0200) Subject: scripts: make sure scripts are invoked via $(PYTHON) X-Git-Tag: v8.1.0-rc0~109^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b424c757188f7a4;p=thirdparty%2Fqemu.git scripts: make sure scripts are invoked via $(PYTHON) 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 Signed-off-by: Paolo Bonzini --- diff --git a/configure b/configure index f7cd376e525..1bdc7fd69b7 100755 --- 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 diff --git a/scripts/meson-buildoptions.py b/scripts/meson-buildoptions.py old mode 100755 new mode 100644 diff --git a/scripts/modinfo-collect.py b/scripts/modinfo-collect.py old mode 100755 new mode 100644 diff --git a/scripts/modinfo-generate.py b/scripts/modinfo-generate.py old mode 100755 new mode 100644 diff --git a/scripts/probe-gdb-support.py b/scripts/probe-gdb-support.py old mode 100755 new mode 100644