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