diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-05-18 11:27:39 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-05-19 20:40:29 +0200 |
commit | 4b424c757188f7a47630a4d8edcf4ad9f19255bc (patch) | |
tree | 23d69d1f61965897aa42489fcb9a244f287d763d | |
parent | 9fd9f3952f20046dd454f85dc46c9d13af50c700 (diff) | |
download | qemu-4b424c757188f7a47630a4d8edcf4ad9f19255bc.zip qemu-4b424c757188f7a47630a4d8edcf4ad9f19255bc.tar.gz qemu-4b424c757188f7a47630a4d8edcf4ad9f19255bc.tar.bz2 |
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 <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | scripts/meson-buildoptions.py | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | scripts/modinfo-collect.py | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | scripts/modinfo-generate.py | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | scripts/probe-gdb-support.py | 0 |
5 files changed, 1 insertions, 1 deletions
@@ -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 index 8d2e526..8d2e526 100755..100644 --- a/scripts/meson-buildoptions.py +++ b/scripts/meson-buildoptions.py diff --git a/scripts/modinfo-collect.py b/scripts/modinfo-collect.py index 4e7584d..4e7584d 100755..100644 --- a/scripts/modinfo-collect.py +++ b/scripts/modinfo-collect.py diff --git a/scripts/modinfo-generate.py b/scripts/modinfo-generate.py index b1538fc..b1538fc 100755..100644 --- a/scripts/modinfo-generate.py +++ b/scripts/modinfo-generate.py diff --git a/scripts/probe-gdb-support.py b/scripts/probe-gdb-support.py index 5755255..5755255 100755..100644 --- a/scripts/probe-gdb-support.py +++ b/scripts/probe-gdb-support.py |