Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bonzini committed May 19, 2023
1 parent 9fd9f39 commit 4b424c7
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure
Expand Up @@ -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
Expand Down
Empty file modified scripts/meson-buildoptions.py 100755 → 100644
Empty file.
Empty file modified scripts/modinfo-collect.py 100755 → 100644
Empty file.
Empty file modified scripts/modinfo-generate.py 100755 → 100644
Empty file.
Empty file modified scripts/probe-gdb-support.py 100755 → 100644
Empty file.

0 comments on commit 4b424c7

Please sign in to comment.