Skip to content

build: restrict the CMake version installed on Ubuntu 20.04 and 22.04 to 3.x.x#2245

Merged
empiredan merged 1 commit intomasterfrom
build-env-ubuntu-cmake-3
May 12, 2025
Merged

build: restrict the CMake version installed on Ubuntu 20.04 and 22.04 to 3.x.x#2245
empiredan merged 1 commit intomasterfrom
build-env-ubuntu-cmake-3

Conversation

@empiredan
Copy link
Copy Markdown
Contributor

@empiredan empiredan commented May 6, 2025

Resolve #2244.

The reason for failing to build thirdparties-src-* images is that the CMake version
is too new (currently 4.0.0) in the build environment for both Ubuntu 20.04 and 22.04,
while some third-party dependencies still rely on older CMake syntax, e.g. thrift-0.9.3
declares cmake_minimum_required(VERSION 2.8.12) in its CMakeLists.txt. Such legacy
syntax is not fully compatible with the newest versions of CMake.

To solve this problem, we restrict the CMake version installed in the Ubuntu 20.04 and
22.04 environments to a newer 3.x.x version that
also maintains compatibility with legacy CMakeLists.txt files.

@github-actions github-actions Bot added the docker label May 6, 2025
@empiredan empiredan marked this pull request as ready for review May 6, 2025 08:31
@empiredan empiredan merged commit 9fed575 into master May 12, 2025
39 of 47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Building thirdparties-src-* images failed for Ubuntu 2004 and 2204

3 participants