Skip to content

cmake 4.x requires packages to claim compatibility with at least cmake 3.5 #27607

@hnyman

Description

@hnyman

Package Name

Maintainer

OpenWrt Version

  • master

Steps to Reproduce

cmake used in the toolchain for compilation of 250+ packages, will be updated to 4.1.2 in near future.
See openwrt/openwrt#20265

Many packages have already be fixed by their upstreams: the minimum definition in each package's CMakeLists.txt has been already updated to a suitable value.
(so far the local packages in the main OpenWrt repo have been updated to be compatible, by setting the minimum value to cmake 3.10)

The proper final solution is for each upstream to update their packages sources (at upstream). In meanwhile, we can patch the CMakeLists.txt at the package locally, but that will be cumbersome.

The minimum will now be 3.5 and soon that will change to 3.10.

Testing done by building all packages, reveals that about 80 packages will fail to build with cmake 4.1.2.

If you are maintaining / updating any of them, please fix also the needed cmake version minimum at the same time. Otherwise the package build will break soon.

List from Hauke's testing:

hauke@debian-16gb-nbg1-1:~/openwrt/openwrt$ grep "Compatibility with CMake < 3.5 has been removed from CMake" logs/ -r 
logs/package/feeds/packages/openobex/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/libsoxr/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/bluld/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/softethervpn5/host-compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/lualanes/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/realtek-poe/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/lua-cjson/lua-53/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/lua-cjson/lua-51/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/lua-cjson/lua-54/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/openelp/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/libyaml-cpp/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/base16384/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/leptonica/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/libftdi/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/uledd/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/mjpg-streamer/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/v4l2camera/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/libmad/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/telldus-core/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/zmq/curve/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/zmq/nc/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/libftdi1/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/mbusd/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/cjson/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/sysrepo/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/tini/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/canutils/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/tunneldigger/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/libnatpmp/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/quectel-timesync/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/usteer/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/rtpmidid/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/tiff/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/xxhash/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/hidapi/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/luv/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/liblo/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/libvorbis/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/libtins/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/lzmq/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/libsndfile/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/libyang/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/libid3tag/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/cereal/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/mbpoll/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/uci2/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/v4l2tools/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/nlbwmon/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/cgi-io/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/libuecc/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/libssh/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/portaudio/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/phantap/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/libroxml/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/qrencode/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/lua-ev/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/spawn-fcgi/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/zlog/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/ecdsautils/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/yajl/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/libwebsockets/mbedtls/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/libwebsockets/full/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/libwebsockets/openssl/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/respondd/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/msgpack-c/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/lzo/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/swanmon/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/protobuf/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/protobuf/host-compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/libradiotap/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/packages/v4l2rtspserver/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/routing/oonf-dlep-proxy/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/routing/oonf-dlep-radio/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/routing/oonf-olsrd2/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/routing/ohybridproxy/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/routing/minimalist-pcproxy/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/luci/lucihttp/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/telephony/sipp/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/telephony/bcg729/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.
logs/package/feeds/video/libdouble-conversion/compile.txt:  Compatibility with CMake < 3.5 has been removed from CMake.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions