meson: Run the install script with Python 3
authorMathieu Bridon <bochecha@daitauha.fr>
Wed, 22 Aug 2018 12:09:49 +0000 (14:09 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 23 Aug 2018 11:12:06 +0000 (12:12 +0100)
The script was being run directly as an executable, and it has a
Python 2 shebang.

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/targets/dri/meson.build
src/gallium/targets/va/meson.build
src/gallium/targets/vdpau/meson.build
src/gallium/targets/xvmc/meson.build
src/mesa/drivers/dri/meson.build

index e3202c99678c02964b1887fd6c47e469f11d0cdc..51940a2f350c4f87e66577ec1d113008693b7396 100644 (file)
@@ -84,6 +84,7 @@ foreach d : [[with_gallium_pl111, 'pl111_dri.so'],
 endforeach
 
 meson.add_install_script(
+  prog_python.path(),
   join_paths(meson.source_root(), 'bin/install_megadrivers.py'),
   libgallium_dri.full_path(),
   dri_drivers_path,
index 57d267e5b6ecda622441b31b727000677dace479..ded689b464d567eeefde1b1eb8c4b56af1bccc12 100644 (file)
@@ -62,6 +62,7 @@ foreach d : [[with_gallium_r600, 'r600'],
 endforeach
 
 meson.add_install_script(
+  prog_python.path(),
   join_paths(meson.source_root(), 'bin/install_megadrivers.py'),
   libva_gallium.full_path(),
   va_drivers_path,
index 93969d8399bf5ada1a0e1b02a2a84ca3b2c82e4e..005cf642498d68a0b39551716d75ae950338bf4b 100644 (file)
@@ -65,6 +65,7 @@ foreach d : [[with_gallium_r300, 'r300'],
 endforeach
 
 meson.add_install_script(
+  prog_python.path(),
   join_paths(meson.source_root(), 'bin/install_megadrivers.py'),
   libvdpau_gallium.full_path(),
   vdpau_drivers_path,
index 2bf5ea2309156e31e1e4f34139afcc20cc51e870..0af5b6477ce1fa25c41b73a521e72aeef8e6fda0 100644 (file)
@@ -56,6 +56,7 @@ foreach d : [[with_gallium_r600, 'r600'], [with_gallium_nouveau, 'nouveau']]
 endforeach
 
 meson.add_install_script(
+  prog_python.path(),
   join_paths(meson.source_root(), 'bin/install_megadrivers.py'),
   libxvmc_gallium.full_path(),
   xvmc_drivers_path,
index 943727b662abd5e05f8795a0dedfdb0eb491dba2..d98c823f5fe1363e73d6e5fc9c321ca33d6b77bf 100644 (file)
@@ -57,6 +57,7 @@ if dri_drivers != []
   )
 
   meson.add_install_script(
+    prog_python.path(),
     join_paths(meson.source_root(), 'bin/install_megadrivers.py'),
     libmesa_dri_drivers.full_path(),
     dri_drivers_path,