package/freeradius-server: fix redis handling
PATCH 1/1 package/freeradius-server: fix redis handling
redis handling is wrong since the addition of the package in commit 736c4c1655d93652a9a7e79235bbe726b3d46176. Indeed, freeradius-server needs hiredis, not redis
--- .../freeradius-server/freeradius-server.mk | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-)
package/freeradius-server/freeradius-server.mk +13 -7
@@ -71,6 +71,19 @@ FREERADIUS_SERVER_CONF_OPTS += \ --without-rlm_ippool endif +ifeq ($(BR2_PACKAGE_HIREDIS),y) +FREERADIUS_SERVER_CONF_OPTS += \ + --with-rlm_cache_redis \ + --with-rlm_redis \ + --with-rlm_rediswho +FREERADIUS_SERVER_DEPENDENCIES += hiredis +else +FREERADIUS_SERVER_CONF_OPTS += \ + --without-rlm_cache_redis \ + --without-rlm_redis \ + --without-rlm_rediswho +endif + ifeq ($(BR2_PACKAGE_JSON_C)$(BR2_PACKAGE_LIBCURL),yy) FREERADIUS_SERVER_CONF_OPTS += --with-rlm_rest FREERADIUS_SERVER_DEPENDENCIES += json-c libcurl
@@ -150,13 +163,6 @@ else FREERADIUS_SERVER_CONF_OPTS += --without-readline endif -ifeq ($(BR2_PACKAGE_REDIS),y) -FREERADIUS_SERVER_CONF_OPTS += --with-rlm_redis --with-rlm_rediswho -FREERADIUS_SERVER_DEPENDENCIES += redis -else -FREERADIUS_SERVER_CONF_OPTS += --without-rlm_redis --without-rlm_rediswho -endif - ifeq ($(BR2_PACKAGE_SQLITE),y) FREERADIUS_SERVER_CONF_OPTS += --with-rlm_sql_sqlite FREERADIUS_SERVER_DEPENDENCIES += sqlite
Signature · 6 lines
2.42.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Fabrice,
Quoted 14 lines · On Sat, 4 Nov 2023 10:54:48 +0100 Fabrice Fontaine…
redis handling is wrong since the addition of the package in commit
736c4c1655d93652a9a7e79235bbe726b3d46176. Indeed, freeradius-server needs hiredis, not redisSigned-off-by Fabrice Fontaine <[email protected]>--- .../freeradius-server/freeradius-server.mk | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-)package/freeradius-server/freeradius-server.mk +0
-0
package/freeradius-server/freeradius-server.mk FREERADIUS_SERVER_CONF_OPTS += \ · line 76
Quoted 6 lines
package/freeradius-server/freeradius-server.mk +3
-0@@ -71,6 +71,19 @@ FREERADIUS_SERVER_CONF_OPTS += \ --without-rlm_ippool endif +ifeq ($(BR2_PACKAGE_HIREDIS),y) +FREERADIUS_SERVER_CONF_OPTS += \ + --with-rlm_cache_redis \
Are you sure about this option? I don't see it existing.
package/freeradius-server/freeradius-server.mk else · line 154
Quoted 2 lines
package/freeradius-server/freeradius-server.mk +0
-2-ifeq ($(BR2_PACKAGE_REDIS),y) -FREERADIUS_SERVER_CONF_OPTS += --with-rlm_redis --with-rlm_rediswho
And it wasn't used here.
Could you clarify this?
Is this a mixup with your other patch bumping freeradius-server?
Thanks,
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Thomas,
Quoted 29 lines · Thomas Petazzoni
Hello Fabrice,
Review
Quoted 10 lines · On Sat, 4 Nov 2023 10:54:48 +0100 Fabrice Fontaine…
redis handling is wrong since the addition of the package in commit
736c4c1655d93652a9a7e79235bbe726b3d46176. Indeed, freeradius-server needs hiredis, not redisSigned-off-by Fabrice Fontaine <[email protected]>--- .../freeradius-server/freeradius-server.mk | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-)(quoted diff) +0
-0
b/package/freeradius-server/freeradius-server.mkpackage/freeradius-server/freeradius-server.mk FREERADIUS_SERVER_CONF_OPTS += \ · line 76
Quoted 10 lines
index
af3320eb44..1931c970e8100644package/freeradius-server/freeradius-server.mk +3
-0@@ -71,6 +71,19 @@ FREERADIUS_SERVER_CONF_OPTS += \ --without-rlm_ippool endif +ifeq ($(BR2_PACKAGE_HIREDIS),y) +FREERADIUS_SERVER_CONF_OPTS += \ + --with-rlm_cache_redis \Are you sure about this option? I don't see it existing.
Quoted 9 lines
package/freeradius-server/freeradius-server.mk else · line 154
Quoted 2 lines
package/freeradius-server/freeradius-server.mk +0
-2-ifeq ($(BR2_PACKAGE_REDIS),y) -FREERADIUS_SERVER_CONF_OPTS += --with-rlm_redis --with-rlm_rediswhoAnd it wasn't used here.
Could you clarify this?
Is this a mixup with your other patch bumping freeradius-server?
Yes, good catch, I sent a v2.
Quoted 8 lines
Thanks,
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training
https://bootlin.com
Best Regards,
Fabrice
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot