[PATCH v3 0/8] A handful of Meson cleanups and improvements
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Jul 9, 2025, 06:23 UTC
- Message-ID
- <20250709-b4-pks-meson-cleanups-v3-0-29ab15b9ab85@pks.im>
- In-Reply-To
- <20250703-b4-pks-meson-cleanups-v1-0-2804c2932abe@pks.im>
Hi,
this patch series contains a couple of more-or-less random cleanups and improvements for Meson that I have accumulated over the last two months.
Changes in v2:
- Fix an off-by-one error for test slices used in GitHub Workflows.
- Now tested with both GitLab (https://gitlab.com/gitlab-org/git/-/merge_requests/375)
and GitHub (https://github.com/git/git/pull/2010).
- Link to v1: https://lore.kernel.org/r/20250703-b4-pks-meson-cleanups-v1-0-2804c2932abe@pks.imChanges in v3:
- Add a comment explaining why we only need to search for Python on
the build target.
- Link to v2: https://lore.kernel.org/r/20250708-b4-pks-meson-cleanups-v2-0-94ac53cd4b95@pks.imThanks!
Patrick
---
Patrick Steinhardt (8):
meson: stop discovering native version of Python
meson: stop printing 'https' option twice in our summaries
meson: improve summary of auto-detected features
meson: clean up unnecessary variables
meson: fix lookup of shell on MINGW64
meson: fix GIT_EXEC_PATH with overridden -Dlibexecdir=
meson: update subproject wrappers
ci: use Meson's new `--slice` option.github/workflows/main.yml | 2 +- .gitlab-ci.yml | 2 +- Documentation/meson.build | 5 ++--- meson.build | 29 +++++++++++++++-------------- subprojects/expat.wrap | 18 +++++++++--------- subprojects/pcre2.wrap | 18 +++++++++--------- 6 files changed, 37 insertions(+), 37 deletions(-)
Range-diff versus v2:
1: af222af4b0b ! 1: 5b6ff96df15 meson: stop discovering native version of Python
@@ meson.build: if host_machine.system() == 'cygwin' or host_machine.system() == 'w
-python = import('python').find_installation('python3', required: get_option('python'))
-target_python = find_program('python3', native: false, required: python.found())
-if python.found()
++# Python is not used for our build system, but exclusively for git-p4.
++# Consequently we only need to determine whether Python is available for the
++# build target.
+target_python = find_program('python3', native: false, required: get_option('python'))
+if target_python.found()
build_options_config.set('NO_PYTHON', '')
2: e1fe6822400 = 2: cb5a42b63a0 meson: stop printing 'https' option twice in our summaries
3: 9caa9813f94 = 3: 4b165ffa205 meson: improve summary of auto-detected features
4: 2fbae915050 = 4: fed79e92b3e meson: clean up unnecessary variables
5: 2a72ec1cf78 = 5: f7496adc08a meson: fix lookup of shell on MINGW64
6: c44a8783eac = 6: e7692a76c89 meson: fix GIT_EXEC_PATH with overridden -Dlibexecdir=
7: 3fb621da6ae = 7: 19853592a22 meson: update subproject wrappers
8: ad9176ef14e = 8: 5cd1b3ec3c3 ci: use Meson's new `--slice` option--- base-commit: 8b6f19ccfc3aefbd0f22f6b7d56ad6a3fc5e4f37 change-id: 20250703-b4-pks-meson-cleanups-f53858d694f3