package/mosquitto: requires cmake >= 4.3

With an older cmake version, like the 3.25.1 as available in the docker
reference image, mosquitto fails to build when ccache is enabled:

    [ 98%] Building CXX object lib/cpp/CMakeFiles/mosquittopp.dir/mosquittopp.cpp.o
    In file included from [...]/buildroot/output/build/mosquitto-2.1.2/lib/cpp/mosquittopp.cpp:17:
    [...]/buildroot/output/host/opt/ext-toolchain/i686-buildroot-linux-gnu/include/c++/15.1.0/cstdlib:83:15: fatal error: stdlib.h: No such file or directory
       83 | #include_next <stdlib.h>
          |               ^~~~~~~~~~
    compilation terminated.

Officially, mosquitto only requires cmake 3.18, but that proves to not
be enough, in fact...

We workaround that by requiring cmake 4.3, which is the one version that
could be tested with our host-cmake.

Signed-off-by: Yann E. MORIN <yann.morin@orange.com>
Cc: Peter Korsgaard <peter@korsgaard.com>
Cc: Titouan Christophe <titouan.christophe@mind.be>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
This commit is contained in:
Yann E. MORIN
2026-06-19 11:31:47 +02:00
committed by Romain Naour
parent 8b165e728e
commit da9dcddff1

View File

@@ -2,6 +2,7 @@ config BR2_PACKAGE_MOSQUITTO
bool "mosquitto" bool "mosquitto"
depends on BR2_USE_MMU # lib peeks in malloc() internals; broker fork()s depends on BR2_USE_MMU # lib peeks in malloc() internals; broker fork()s
depends on !BR2_STATIC_LIBS depends on !BR2_STATIC_LIBS
select BR2_HOST_CMAKE_AT_LEAST_4_3
select BR2_PACKAGE_CJSON select BR2_PACKAGE_CJSON
help help
Eclipse Mosquitto is an open source (EPL/EDL licensed) message Eclipse Mosquitto is an open source (EPL/EDL licensed) message