support/dependencies: add a check for python3
authorRomain Naour <romain.naour@gmail.com>
Tue, 12 Mar 2019 22:35:24 +0000 (23:35 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 15 Mar 2019 21:26:40 +0000 (22:26 +0100)
commitb60729784ab1c2f75dca30f924f4dd3176713ae8
tree15df25ae2f04b97ccccea2ca09cbdd5f86155fa7
parent048b66016e03ebfb43dc6cdc6805bad451bbe51c
support/dependencies: add a check for python3

Since version 2.29, glibc requires python 3.4 or later to build the
GNU C Library [1].

We add a new check to verify the version of python3 interpreter
installed on the host.  If no suitable python3 interpreter is found,
define BR2_PYTHON3_HOST_DEPENDENCY to add host-python3 in package
dependencies when needed.

[1] https://www.sourceware.org/ml/libc-alpha/2019-01/msg00723.html

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Tested-by: Adam Duskett <aduskett@gmail.com>
Reviewed-by: Adam Duskett <aduskett@gmail.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
[Thomas: drop not so useful comment in the .mk file, as suggested by
Yann E. Morin.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/dependencies/check-host-python3.mk [new file with mode: 0644]
support/dependencies/check-host-python3.sh [new file with mode: 0755]