Repository navigation
tools: cmake: update to 4.0.3 - #19558
PolynomialDivision wants to merge 3 commits into
Conversation
|
|
That patch can go. clock_gettime has been a part of glibc since 2.17, which is ancient at this point. Tested with the oldest OS that can build OpenWrt: Ubuntu 18.04. |
7de233e to
009da23
Compare
But why is the patch from 2017 if glibc has included clock_gettime() since version 2.17? Which libc was OpenWrt using at that time? Also, are we still linking LibreSSL statically? |
|
Looking at it again, the patch was a hack to deal with libssl.pc not containing -lpthread which was needed for much longer. librt was more of a why not looks like. -lpthread is getting applied somehow so the patch is no longer needed. |
a0b8caf to
2a8d0ea
Compare
|
@neheb I put you as suggested-by |
d54321f to
9f4e0da
Compare
|
a rebase should fix CI. |
9f4e0da to
c545bf0
Compare
Interesting. |
b20da7f to
5c91ffd
Compare
Just cmake dropping legacy support. |
5c91ffd to
7135f30
Compare
|
Please do a full build to ensure that all cmake packages are requiring version 3.5 or later like you fixed it for firmware-ults. We build it also as a package in package/utils/firmware-utils. |
0725c3d build: require CMake >= 3.5 due to dropped legacy support Signed-off-by: Nick Hainke <[email protected]>
7135f30 to
82bce38
Compare
Recent CMake releases require at least version 3.5. Signed-off-by: Nick Hainke <[email protected]>
Changelog: https://cmake.org/cmake/help/latest/release/4.0.html Drop patch 120-curl-fix-libressl-linking.patch. It was originally added as a workaround for missing -lpthread in libssl.pc, with -lrt added as a precaution. Since -lpthread is now applied correctly during the build, the patch is no longer necessary. Suggested-by: Rosen Penev <[email protected]> Signed-off-by: Nick Hainke <[email protected]>
82bce38 to
8ea443b
Compare
|
4.1.0 has been released. (seems to require just a few more automatic refreshes for patches) |
|
I compiled my own E8450/RT3200 build with cmake 4.1.0 and needed quite a lot of patching of packages for (I patched them locally to require the current 3.31, but the new minimum 3.5 could also work for some time. Also the cmake 3.30 in OpenWrt 24.10 might serve as the new defined minimum value, as the same package sources as in main/master could still be used also used in 24.10) Quite many of these are actually packages where OpenWrt is also the original upstream, so devs should be able to pretty easily patch the packages in original sources. OpenWrt hosted packages: Outside packages in main repo: In packages feed: In luci feed: There are surely others, but those were the ones that were included in my build. So, lots of packages to be patched before cmake 4.x can be adopted. Edit:
EDIT2: |
|
@hnyman Since you already invested so much work, feel free to push into this PR and update it. :) |
No push rights here... Regarding the OpenWrt own packages, core devs should just update the sources directly in our "upstream" repos and then bump makefiles. Creating patches for uci , procd etc. is no real long-term solution. |
|
Should I close and you just open a new PR? |
|
No, but you could update the PR to handle 4.1.0 If you so wish, I can do a separate PR about those "OpenWrt native packages" in the main repo that I noticed. But that makes no real sense in the long run, as the only permanent solution for OpenWrt's own packages is that core devs with merge rights do update the relevant strings in local "upstream" source repos and then author new version bumps package Makefiles. The other packages in the main repo and the 200 apps in packages feed will be more cumbersome to handle, something like the opkg-apk change was. The compatibility should be checked/changed before the cmake version bump if possible. But it is also possible that we could just bump the cmake and then fix the fallout in packages. Many/most upstream packages are stubmling into this right now, so new versions are likely compatible in any case. |
|
This stale PR could be closed in favor of #20265 |
Changelog:
https://cmake.org/cmake/help/latest/release/4.0.html