Bug 14911 - host-python3 build needs python3 on the host
Summary: host-python3 build needs python3 on the host
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-12 12:55 UTC by Thomas Petazzoni
Modified: 2022-07-27 13:32 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!