foxygit / doom Log in
commit b291e003c04431557c7369c12f2febd1aa233109
Author:     Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Fri Nov 27 09:17:04 2020 +0100
Commit:     Fabian Greffrath <fabian@greffrath.com>
CommitDate: Fri Nov 27 09:17:04 2020 +0100

    build: use python3 exclusively

    Python 2 is deprecated and is going to be removed from Linux
    distributions in the short term [1,2]. Thus, (parts of) the build
    process will fail on current systems like e.g. Debian unstable.

    The /bin/python binary is not going to exist anymore. The canonical
    name for the Python 3 binary is, you guess it, /bin/python3. So, let's
    just use this during our build process and go future proof.

    Fixes #1158.

    [1] https://wiki.debian.org/Python#Python_in_Debian
    [2] https://wiki.debian.org/Python/2Removal
---
 configure.ac                  | 2 +-
 data/convert-icon             | 2 +-
 man/docgen                    | 2 +-
 man/simplecpp                 | 2 +-
 pkg/win32/cp-with-libs        | 2 +-
 textscreen/fonts/convert-font | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 8bed15ea..a6820f07 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,7 +18,7 @@ orig_CFLAGS="$CFLAGS"
 AM_PROG_AR
 AC_PROG_CC
 AC_PROG_RANLIB
-AC_CHECK_PROG(HAVE_PYTHON, python, true, false)
+AC_CHECK_PROG(HAVE_PYTHON, python3, true, false)

 OPT_LEVEL=2

diff --git a/data/convert-icon b/data/convert-icon
index ffc57925..4ecb1955 100755
--- a/data/convert-icon
+++ b/data/convert-icon
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # Copyright(C) 2005-2014 Simon Howard
 #
diff --git a/man/docgen b/man/docgen
index a1e23ede..19e3b4bc 100755
--- a/man/docgen
+++ b/man/docgen
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # Chocolate Doom self-documentation tool.  This works similar to javadoc
 # or doxygen, but documents command line parameters and configuration
diff --git a/man/simplecpp b/man/simplecpp
index 8f326cd5..7749c269 100755
--- a/man/simplecpp
+++ b/man/simplecpp
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 # Contributors to the Freedoom project.  All rights reserved.
diff --git a/pkg/win32/cp-with-libs b/pkg/win32/cp-with-libs
index 7fd43232..0919ea84 100755
--- a/pkg/win32/cp-with-libs
+++ b/pkg/win32/cp-with-libs
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # Copyright(C) 2016 Simon Howard
 #
diff --git a/textscreen/fonts/convert-font b/textscreen/fonts/convert-font
index 641db92c..b3d828cc 100755
--- a/textscreen/fonts/convert-font
+++ b/textscreen/fonts/convert-font
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # Copyright(C) 2016 Simon Howard
 #