mirror of
https://github.com/openwrt/packages.git
synced 2026-10-14 01:17:27 +04:00
knot: backport patch to fix linking with libhiredis
It was discovered that even while using ``--enable-redis=no`` and ``--disable-redis`` that it was still linking with libhiredis. This avoids to picking up libhiredis as dependency: ``` Package knot is missing dependencies for the following libraries: libhiredis.so.1.1.0 ``` Fixes:cbbd2b5b3b("knot: disable redis as it was enabled since 3.5.0 by default") Signed-off-by: Jan Hák <jan.hak@nic.cz> (cherry picked from commit598504d895)
This commit is contained in:
1 parent
bf326757d9
commit
301b96818b
1 file changed
+25
@@ -0,0 +1,25 @@
|
||||
From e1e8a763086efd91b3b167ec238c10d46c6e6a31 Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Salzman <daniel.salzman@nic.cz>
|
||||
Date: Fri, 26 Sep 2025 14:46:20 +0200
|
||||
Subject: [PATCH] configure: fix linking with libhiredis if --disable-redis
|
||||
|
||||
---
|
||||
configure.ac | 6 ++----
|
||||
1 file changed, 2 insertions(+), 4 deletions(-)
|
||||
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -264,11 +264,9 @@ AC_ARG_ENABLE([redis],
|
||||
AS_HELP_STRING([--enable-redis=auto|yes|no], [enable Redis support [default=auto]]),
|
||||
[], [enable_redis=auto])
|
||||
|
||||
-PKG_CHECK_MODULES([hiredis], [hiredis], [have_hiredis=yes], [have_hiredis=no])
|
||||
-
|
||||
AS_CASE([$enable_redis],
|
||||
- [auto], [AS_IF([test "$have_hiredis" = "yes"], [enable_redis=yes], [enable_redis=no])],
|
||||
- [yes], [AS_IF([test "$have_hiredis" = "yes"], [enable_redis=yes], [AC_MSG_ERROR([libhiredis not available])])],
|
||||
+ [auto], [PKG_CHECK_MODULES([hiredis], [hiredis], [enable_redis=yes], [enable_redis=no])],
|
||||
+ [yes], [PKG_CHECK_MODULES([hiredis], [hiredis], [enable_redis=yes], [AC_MSG_ERROR([libhiredis not available])])],
|
||||
[no], [],
|
||||
[*], [AC_MSG_ERROR([Invalid value of --enable-redis.])]
|
||||
)
|
||||
Reference in new issue
Block a user