conatsera / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone
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
bd7cb17
index 452f4d79b0d..03f10930230 100644
fbe5a8c
--- a/bootstrap.conf
fbe5a8c
+++ b/bootstrap.conf
bd7cb17
@@ -93,7 +93,7 @@ bootstrap_post_import_hook () {
bd7cb17
     patch -d po -p3 \
bd7cb17
       < "po/gettext-patches/$patchname.patch"
bd7cb17
   done
fbe5a8c
-  FROM_BOOTSTRAP=1 ./autogen.sh
fbe5a8c
+  PYTHON=python3 FROM_BOOTSTRAP=1 ./autogen.sh
fbe5a8c
   set +e  # bootstrap expects this
fbe5a8c
 }
fbe5a8c