From a030f8cc94dc426325ce73b2ab2dda1ceb68d645 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 5 Mar 2025 03:14:04 +0900 Subject: [PATCH] meson: bump required minimum version to 0.62.0 The commit 8442ac9c0264ac7beb5afd6c3bf922030a6edaf3 set install_tag option to install_emptydir() calls, but it requires meson-0.62.0. Hence, after the commit, we cannot build systemd with older meson anymore. As using install_tag is quite useful for building systemd package, let's bump the requirement of meson version to 0.62.0. Note, the current meson versions of major distributions are: CentOS 9: 0.63.3 CentOS 10: 1.4.1 Fedora 40: 1.4.1 Fedora 41: 1.5.1 Ubuntu 20.04 LTS (focal): 0.53.2 -- EOL on 2025-04 Ubuntu 22.04 LTS (jammy): 0.61.2 -- EOL on 2027-04 Ubuntu 24.04 LTS (noble): 1.3.2 Ubuntu 24.10 (oracular): 1.5.2 Debian 11 (bullseye): 0.56.2 (1.0.0 in backports) -- EOL on 2024-08 Debian 12 (bookworm): 1.0.1 (1.5.1 in backports) openSUSE Leap 15.6: 1.6.1 openSUSE Tumbleweed: 1.6.1 As the next version (v258) is not expected to be released before the end of 2025-04, it is OK to cut the support of Ubuntu 20.04 LTS and Debian 11. Also, our policy for support of distributions explicitly says only latest Ubuntu LTS and non-LTS releases are supported. Hence, we can also cut Ubuntu 22.04, even if it is not EOL. Follow-up for 8442ac9c0264ac7beb5afd6c3bf922030a6edaf3. Closes #35967. --- .github/workflows/build_test.sh | 3 --- .github/workflows/unit_tests.sh | 2 -- README | 2 +- meson.build | 4 ++-- 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_test.sh b/.github/workflows/build_test.sh index 986e30c595d..113af704a80 100755 --- a/.github/workflows/build_test.sh +++ b/.github/workflows/build_test.sh @@ -135,9 +135,6 @@ $CC --version meson --version ninja --version -# TODO: drop once minimum meson version is bumped to 0.62 or newer -find . -type f -name meson.build -exec sed -i 's/install_emptydir(\(.*\), install_tag : .*)/install_emptydir(\1)/g' '{}' '+' - for args in "${ARGS[@]}"; do SECONDS=0 diff --git a/.github/workflows/unit_tests.sh b/.github/workflows/unit_tests.sh index 94ecdc60721..168bcc55c36 100755 --- a/.github/workflows/unit_tests.sh +++ b/.github/workflows/unit_tests.sh @@ -33,8 +33,6 @@ function info() { } function run_meson() { - # TODO: drop once minimum meson version is bumped to 0.62 or newer - find . -type f -name meson.build -exec sed -i 's/install_emptydir(\(.*\), install_tag : .*)/install_emptydir(\1)/g' '{}' '+' if ! meson "$@"; then find . -type f -name meson-log.txt -exec cat '{}' + return 1 diff --git a/README b/README index 9b019396c8e..9f5c48b67fe 100644 --- a/README +++ b/README @@ -255,7 +255,7 @@ REQUIREMENTS: python-pefile (optional, required for ukify) python-lxml (optional, required to build the indices) pyelftools (optional, required for systemd-boot) - meson >= 0.60.0 + meson >= 0.62.0 ninja gcc >= 8.4 >= 13.1.0 is required to build BPF program by using GCC diff --git a/meson.build b/meson.build index 1cdce6a868f..7077e1a8ccc 100644 --- a/meson.build +++ b/meson.build @@ -10,8 +10,8 @@ project('systemd', 'c', 'localstatedir=/var', 'warning_level=2', ], - meson_version : '>= 0.60.0', - ) + meson_version : '>= 0.62.0', +) project_major_version = meson.project_version().split('.')[0].split('~')[0] if meson.project_version().contains('.') -- 2.47.3