[Buildroot] [PATCH 1/1] package/nodejs: force host-python3

Fabrice Fontaine fontaine.fabrice at gmail.com
Wed Dec 22 15:09:26 UTC 2021


Le mer. 22 déc. 2021 à 15:38, Thomas Petazzoni
<thomas.petazzoni at bootlin.com> a écrit :
>
> On Wed, 22 Dec 2021 15:07:37 +0100
> Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:
>
> > Build of nodejs fails if python 3.10 is installed on host.
> > As suggested by Arnout in
> > https://bugs.buildroot.org/show_bug.cgi?id=14451, use the same
> > workaround than in qt5webkit to force host-python3 (which is in version
> > 3.9)
>
> We already have patches pending that bump host-python3 to 3.10, so is
> this really the right approach?
>
> Or are you sending this as something we should then backport in stable
> releases, as a fix?
I would say that this patch should be applied in stable releases and master.
IMHO, this is not expected/correct that nodejs uses the python binary
that it founds on host instead of host-python3.
Currently this is raising a build failure with python 3.10 but
tomorrow, this could again raise unexpected build failures, for
example, if nodejs removes support for python 2.
>
> > It should be noted that python 3.10 support has been added in version
> > 14.18.2: https://github.com/nodejs/node/releases/tag/v14.18.2
>
> Isn't this a better approach ?
>
> Thomas
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering and training
> https://bootlin.com
Best Regards,

Fabrice



More information about the buildroot mailing list