meson: gtester-report #! not replaced with ${PYTHON}
The Autotools build system installs gtester-report
with its first line set to #!${PYTHON}
where ${PYTHON}
is the absolute path to whatever Python was detected by configure (possibly overridden by ./configure PYTHON=python3
). We make use of this in Debian to get all GLib's scripts to be run with Python 3.
The Meson build system doesn't currently have this special case, although it does use python_name
for gdbus-codegen, glib-genmarshal and glib-mkenums, defaulting to python3
. This means gtester-report ends up keeping #! /usr/bin/env python
, which the Debian packaging subsequently rewrites to #!/usr/bin/python2
(in Debian, /usr/bin/python
and /usr/bin/python2
are both symlinks to Python 2.7, if present).