Mesa (main): python: explicitly require python3
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Aug 14 22:06:58 UTC 2021
Module: Mesa
Branch: main
Commit: 6f854145d20501d783c1cb9325ace79eaa238991
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6f854145d20501d783c1cb9325ace79eaa238991
Author: Eric Engestrom <eric at engestrom.ch>
Date: Sun Feb 2 15:26:16 2020 +0000
python: explicitly require python3
Ubuntu has dropped the `python` symlink to `python2` [1] instead of
redirecting it to `python3` like other distros are doing, which means
that if we want to build Mesa on Ubuntu we need the `python3` shebang.
[1] https://lists.ubuntu.com/archives/ubuntu-devel/2020-January/040882.html
Reported-by: Vinson Lee <vlee at freedesktop.org>
Signed-off-by: Eric Engestrom <eric at engestrom.ch>
Acked-by: Jose Fonseca <jfonseca at vmware.com>
Reviewed-by: Alyssa Rosenzweig <alyssa at collabora.com>
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3674>
---
bin/meson_get_version.py | 2 +-
bin/symbols-check.py | 2 +-
src/egl/egl-entrypoint-check.py | 2 +-
src/egl/generate/gen_egl_dispatch.py | 2 +-
src/mapi/new/genCommon.py | 2 +-
src/mapi/new/gen_gldispatch_mapi.py | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/bin/meson_get_version.py b/bin/meson_get_version.py
index a221e26f250..2e631d23673 100644
--- a/bin/meson_get_version.py
+++ b/bin/meson_get_version.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# encoding=utf-8
# Copyright © 2017 Intel Corporation
diff --git a/bin/symbols-check.py b/bin/symbols-check.py
index c284d4c7a48..5ebeb861d12 100644
--- a/bin/symbols-check.py
+++ b/bin/symbols-check.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
import argparse
import os
diff --git a/src/egl/egl-entrypoint-check.py b/src/egl/egl-entrypoint-check.py
index 332578f44c2..967ea0646ba 100644
--- a/src/egl/egl-entrypoint-check.py
+++ b/src/egl/egl-entrypoint-check.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
import argparse
from generate.eglFunctionList import EGL_FUNCTIONS as GLVND_ENTRYPOINTS
diff --git a/src/egl/generate/gen_egl_dispatch.py b/src/egl/generate/gen_egl_dispatch.py
index 2063e9d0993..17200db0f39 100644
--- a/src/egl/generate/gen_egl_dispatch.py
+++ b/src/egl/generate/gen_egl_dispatch.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# (C) Copyright 2016, NVIDIA CORPORATION.
# All Rights Reserved.
diff --git a/src/mapi/new/genCommon.py b/src/mapi/new/genCommon.py
index ec8e9e75019..5c6e8c93159 100644
--- a/src/mapi/new/genCommon.py
+++ b/src/mapi/new/genCommon.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# (C) Copyright 2015, NVIDIA CORPORATION.
# All Rights Reserved.
diff --git a/src/mapi/new/gen_gldispatch_mapi.py b/src/mapi/new/gen_gldispatch_mapi.py
index 85596792e13..e5678867df2 100755
--- a/src/mapi/new/gen_gldispatch_mapi.py
+++ b/src/mapi/new/gen_gldispatch_mapi.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Copyright (C) 2010 LunarG Inc.
# (C) Copyright 2015, NVIDIA CORPORATION.
More information about the mesa-commit
mailing list