Bug 14911

Summary: host-python3 build needs python3 on the host
Product: buildroot Reporter: Thomas Petazzoni <thomas.petazzoni>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Thomas Petazzoni 2022-07-12 12:55:30 UTC
Since commit 9c0c7846cdb63f3ed62563c4f532ad02ad0a1c98 ("support/dependencies: don't check for python on the host"), we no longer require to have Python installed on the host system. However, on a minimal Ubuntu container, without python3 available, the build of host-python3 fails with:

python3 ./Tools/scripts/update_file.py ./Python/importlib_external.h ./Python/importlib_external.h.new
make[2]: python3: Command not found
make[2]: *** [Makefile:754: regen-importlib] Error 127
make[1]: *** [package/pkg-generic.mk:292: /output/build/host-python3-3.10.4/.stamp_built] Error 2
make: *** [Makefile:23: _all] Error 2
Comment 1 Thomas Petazzoni 2022-07-27 13:32:02 UTC
Fixed by https://git.buildroot.org/buildroot/commit/package/python3?id=3fed42456693a5c31c73b5a577d85ce6baa69737. Many thanks to Vincent for the patch!