Blame SOURCES/0144-bootstrap.conf-Force-autogen.sh-to-use-python3.patch

5593c8
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
5593c8
From: Javier Martinez Canillas <javierm@redhat.com>
5593c8
Date: Wed, 15 Jan 2020 12:47:46 +0100
5593c8
Subject: [PATCH] bootstrap.conf: Force autogen.sh to use python3
5593c8
5593c8
The python-unversioned-command package is not installed in the buildroot,
5593c8
but the bootstrap script expects the python command to be present if one
5593c8
is not defined. So building the package leads to the following error:
5593c8
5593c8
./autogen.sh: line 20: python: command not found
5593c8
5593c8
This is harmless since gnulib is included as a source anyways, because the
5593c8
builders can't download. But still the issue should be fixed by forcing to
5593c8
use python3 that's the default in Fedora now.
5593c8
5593c8
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
5593c8
---
5593c8
 bootstrap.conf | 2 +-
5593c8
 1 file changed, 1 insertion(+), 1 deletion(-)
5593c8
5593c8
diff --git a/bootstrap.conf b/bootstrap.conf
5593c8
index 452f4d79b0d..03f10930230 100644
5593c8
--- a/bootstrap.conf
5593c8
+++ b/bootstrap.conf
5593c8
@@ -93,7 +93,7 @@ bootstrap_post_import_hook () {
5593c8
     patch -d po -p3 \
5593c8
       < "po/gettext-patches/$patchname.patch"
5593c8
   done
5593c8
-  FROM_BOOTSTRAP=1 ./autogen.sh
5593c8
+  PYTHON=python3 FROM_BOOTSTRAP=1 ./autogen.sh
5593c8
   set +e  # bootstrap expects this
5593c8
 }
5593c8