Skip to content

python: clean up host version logic.

Adam Duskett buildroot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8python: add selectable host entrypackage/Config.in.host package/python/Config.in.host+7 -00 replies
2/8python3: add selectable host entrypackage/Config.in.host package/python3/Config.in.host+7 -00 replies
3/8python-setuptools: check host-python versionpackage/python-setuptools/python-setuptools.mk+9 -15 replies
4/8pkg-waf.mk: check host-python versionpackage/pkg-waf.mk+13 -70 replies
5/8ninja: check host-python versionpackage/ninja/ninja.mk+1 -10 replies
6/8libselinux: check host-python versionpackage/libselinux/libselinux.mk+1 -10 replies
7/8setools: check host-python versionpackage/setools/setools.mk+6 -00 replies
8/8libselinux: check host-python versionpackage/libsemanage/libsemanage.mk+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Buildroot] [PATCH 0/8] python: clean up host version logic.

Currently, packages that rely on host-python, and are compatible with both python2 and 3, only build python3 if python3 is selected for the target.

This causes a problem in the following scenario:

- A user does not have a target python selected.
- Package A depends on host-python3
- Package B is compatible with host-python and host-python3

In this scenario, host-python is not needed, as package A and B are both compatible with python3. However; both host-python and host-python3 will be built because no target-python has been selected.

To fix this, the following patch series introduces a few minimal changes that will allow the user to manually select a host version of python. (Note: I have changed only the packages that I personally use and have tested.)

Adam Duskett (8):
python: add host-entry
python3: add host-entry
python-setuptools: check host-python version
pkg-waf.mk: check host-python version
ninja: check host-python version
libselinux: check host-python version
setools: check host-python version
libselinux: check host-python version

 package/Config.in.host                         |  2 ++
 package/libselinux/libselinux.mk               |  2 +-
 package/libsemanage/libsemanage.mk             |  2 +-
 package/ninja/ninja.mk                         |  2 +-
 package/pkg-waf.mk                             | 20 +++++++++++++-------
 package/python-setuptools/python-setuptools.mk | 10 +++++++++-
 package/python/Config.in.host                  |  6 ++++++
 package/python3/Config.in.host                 |  6 ++++++
 package/setools/setools.mk                     |  6 ++++++
 9 files changed, 45 insertions(+), 11 deletions(-)
 create mode 100644 package/python/Config.in.host
 create mode 100644 package/python3/Config.in.host
Signature · 1 line
2.14.3