amazon-linux-2023 icon indicating copy to clipboard operation
amazon-linux-2023 copied to clipboard

[Package Addition] - cmake4

Open matejsp opened this issue 6 months ago • 3 comments

What package is missing from Amazon Linux 2023? Please describe and include package name. cmake is currently very old from 2022.

Available in al2023: 3.22.2-1.amzn2023.0.4

Latest cmake 3.x 3.31.8

Latest cmake 4.x 4.0.3

https://cmake.org/download/

Is this an update to existing package or new package request? update to existing package

Any additional information you'd like to include. (use-cases, etc) I want to build pyarrow and it complains with: CMake 3.25 or higher is required. You are running version 3.22.2

matejsp avatar Jul 09 '25 13:07 matejsp

It's very unlikely that we'll update cmake to 4.x as this would break too much stuff (well ... I assume it would). Even minor version updates aren't without some risk, though I noticed CentOS 9 is ahead of us (3.26).

It might be possible to provide cmake4 namespaced like we did cmake3 in AL2, it was a very difficult process (160kB+ patch) to do that. Maybe cmake4 lends itself better, I don't know (yet).

I'll poke the owning team see what they think.

ozbenh avatar Jul 10 '25 05:07 ozbenh

This: https://fedoraproject.org/wiki/Changes/CMake4.0 shows that just updating our existing distro to cmake4 isn't really a great idea at this point.

ozbenh avatar Jul 10 '25 05:07 ozbenh

Same happened on openSUSE. Switching to cmake 4 needs significant distribution wide touching for many packages. The work should be to make pyarrow build (or provide it), rather than concentrating on the cmake versiojn.

andreasstieger avatar Aug 08 '25 12:08 andreasstieger