From 955439cbb374e29b6c4fcea55c7d9b5445dd5698 Mon Sep 17 00:00:00 2001 From: John Johansen Date: Sun, 26 Apr 2020 02:36:33 -0700 Subject: [PATCH] libapparmor: force library configuration to search for python3 libapparmor and the pyton tools now require python3 but on systems where python2 is the default the build will fail unless the PYTHON= env var is set to the systems python3. Instead just force autoconf to search for python3 as the python version to use. Signed-off-by: John Johansen --- libraries/libapparmor/configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libapparmor/configure.ac b/libraries/libapparmor/configure.ac index 2cda585c6..87d0876fe 100644 --- a/libraries/libapparmor/configure.ac +++ b/libraries/libapparmor/configure.ac @@ -42,7 +42,7 @@ AC_ARG_WITH(python, [AC_MSG_RESULT($withval)], [AC_MSG_RESULT(no)]) if test "$with_python" = "yes"; then test -z "$SWIG" && AC_MSG_ERROR([swig is required when enabling python bindings]) - AC_PATH_PROG(PYTHON, python) + AC_PATH_PROG(PYTHON, python3) test -z "$PYTHON" && AC_MSG_ERROR([python is required when enabling python bindings]) sinclude(m4/ac_python_devel.m4) AC_PYTHON_DEVEL