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

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