[Buildroot] [PATCH v1 1/1] package/hiredis: force cmake version 3.5
Christian Stewart
christian at aperture.us
Wed Apr 2 04:41:07 UTC 2025
Builds fail with latest Ubuntu due to host-hiredis.
The CMakeLists.txt within requires CMake 3.0.0, but newer CMake forces
at minimum version 3.5, leading to build failures:
https://github.com/skiffos/SkiffOS/actions/runs/14208988354/job/39812576139#step:8:638
Add the suggested build flag to force version 3.5.x and fix the error:
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
Signed-off-by: Christian Stewart <christian at aperture.us>
---
package/hiredis/hiredis.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/hiredis/hiredis.mk b/package/hiredis/hiredis.mk
index 86f35bd4cd..55a9ba80ad 100644
--- a/package/hiredis/hiredis.mk
+++ b/package/hiredis/hiredis.mk
@@ -23,6 +23,10 @@ HOST_HIREDIS_CONF_OPTS = -DENABLE_NUGET=OFF -DDISABLE_TESTS=ON -DENABLE_SSL=OFF
HIREDIS_CONF_OPTS += -DCMAKE_BUILD_TYPE=Release
HOST_HIREDIS_CONF_OPTS += -DCMAKE_BUILD_TYPE=Release
+# This package requires CMake 3.0.0 but our CMake requires >=3.5
+HIREDIS_CONF_OPTS += -DCMAKE_POLICY_VERSION_MINIMUM=3.5
+HOST_HIREDIS_CONF_OPTS += -DCMAKE_POLICY_VERSION_MINIMUM=3.5
+
ifeq ($(BR2_PACKAGE_OPENSSL)$(BR2_TOOLCHAIN_HAS_THREADS),yy)
HIREDIS_CONF_OPTS += -DENABLE_SSL=ON
HIREDIS_DEPENDENCIES += openssl
--
2.39.5
More information about the buildroot
mailing list