From: Peter Korsgaard <peter@korsgaard.com>
To: Julien Olivain <ju.o@free.fr>
Cc: "Vincent Stehlé" <vincent.stehle@arm.com>,
"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] boot/grub2: needs host-python3
Date: Sat, 21 Sep 2024 10:18:12 +0200 [thread overview]
Message-ID: <87jzf5h12z.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20240911171937.10842-1-ju.o@free.fr> (Julien Olivain's message of "Wed, 11 Sep 2024 19:19:37 +0200")
>>>>> "Julien" == Julien Olivain <ju.o@free.fr> writes:
> When the build host does not have a Python interpreter installed,
> host-grub2 is failing to configure due to this missing interpreter.
> Note that host-grub2 is the first package to fail because it is a
> dependency of grub2. The grub2 target package has the same dependency
> requirement.
> The issue can be quickly reproduced on a host without Python with the
> commands:
> cat <<EOF >.config
> BR2_aarch64=y
> BR2_TARGET_GRUB2=y
> BR2_TOOLCHAIN_EXTERNAL=y
> EOF
> make olddefconfig
> make grub2
> grub2 autotools configure.ac search for a Python interpreter since
> upstream commit [1] 8b467844e "python: Use AM_PATH_PYTHON to determine
> interpreter for gentpl.py", first included in grub v2.04 released
> on 2019-07-04. For reference, grub2 has been updated to that version
> in commit [2] ea7ec41c "boot/grub2: bump to verson 2.04".
> This commit fixes the issue by adding the host-python3 dependency to
> host-grub2 and grub2.
> Fixes:
> checking for a Python interpreter with version >= 2.6... none
> configure: error: no suitable Python interpreter found
> [1] https://git.savannah.gnu.org/gitweb/?p=grub.git;a=commitdiff;h=8b467844e11170077c8ca727c39d2bd36eeb5f08
> [2] https://gitlab.com/buildroot.org/buildroot/-/commit/ea7ec41cf64e86a692ac45e0d012c6e8199ef110
> Reported-by: Vincent Stehlé <vincent.stehle@arm.com>
> Signed-off-by: Julien Olivain <ju.o@free.fr>
Given that it apparently doesn't need any special python modules could
we use $(BR2_PYTHON3_HOST_DEPENDENCY) instead to only build python3 if
not available on the host / older than 3.4?
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-09-21 8:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-11 17:19 [Buildroot] [PATCH 1/1] boot/grub2: needs host-python3 Julien Olivain
2024-09-14 14:37 ` Yann E. MORIN
2024-09-21 8:18 ` Peter Korsgaard [this message]
2024-09-29 9:24 ` Julien Olivain
2024-09-29 9:52 ` Peter Korsgaard
2024-10-03 11:05 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87jzf5h12z.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--cc=buildroot@buildroot.org \
--cc=ju.o@free.fr \
--cc=thomas.petazzoni@bootlin.com \
--cc=vincent.stehle@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).