* [Buildroot] [PATCH 1/1] package/freeradius-server: fix redis handling
@ 2023-11-04 9:54 Fabrice Fontaine
2023-11-04 13:55 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Fontaine @ 2023-11-04 9:54 UTC (permalink / raw)
To: buildroot; +Cc: David GOUARIN, Fabrice Fontaine
redis handling is wrong since the addition of the package in commit
736c4c1655d93652a9a7e79235bbe726b3d46176. Indeed, freeradius-server
needs hiredis, not redis
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
.../freeradius-server/freeradius-server.mk | 20 ++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/package/freeradius-server/freeradius-server.mk b/package/freeradius-server/freeradius-server.mk
index af3320eb44..1931c970e8 100644
--- a/package/freeradius-server/freeradius-server.mk
+++ b/package/freeradius-server/freeradius-server.mk
@@ -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
--
2.42.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/freeradius-server: fix redis handling
2023-11-04 9:54 [Buildroot] [PATCH 1/1] package/freeradius-server: fix redis handling Fabrice Fontaine
@ 2023-11-04 13:55 ` Thomas Petazzoni via buildroot
2023-11-04 14:06 ` Fabrice Fontaine
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-11-04 13:55 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: David GOUARIN, buildroot
Hello Fabrice,
On Sat, 4 Nov 2023 10:54:48 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> redis handling is wrong since the addition of the package in commit
> 736c4c1655d93652a9a7e79235bbe726b3d46176. Indeed, freeradius-server
> needs hiredis, not redis
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> .../freeradius-server/freeradius-server.mk | 20 ++++++++++++-------
> 1 file changed, 13 insertions(+), 7 deletions(-)
>
> diff --git a/package/freeradius-server/freeradius-server.mk b/package/freeradius-server/freeradius-server.mk
> index af3320eb44..1931c970e8 100644
> --- a/package/freeradius-server/freeradius-server.mk
> +++ b/package/freeradius-server/freeradius-server.mk
> @@ -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.
> -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
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/freeradius-server: fix redis handling
2023-11-04 13:55 ` Thomas Petazzoni via buildroot
@ 2023-11-04 14:06 ` Fabrice Fontaine
0 siblings, 0 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2023-11-04 14:06 UTC (permalink / raw)
To: Thomas Petazzoni; +Cc: David GOUARIN, buildroot
[-- Attachment #1.1: Type: text/plain, Size: 1649 bytes --]
Hello Thomas,
Le sam. 4 nov. 2023 à 14:55, Thomas Petazzoni <thomas.petazzoni@bootlin.com>
a écrit :
> Hello Fabrice,
>
> On Sat, 4 Nov 2023 10:54:48 +0100
> Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
>
> > redis handling is wrong since the addition of the package in commit
> > 736c4c1655d93652a9a7e79235bbe726b3d46176. Indeed, freeradius-server
> > needs hiredis, not redis
> >
> > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> > ---
> > .../freeradius-server/freeradius-server.mk | 20 ++++++++++++-------
> > 1 file changed, 13 insertions(+), 7 deletions(-)
> >
> > diff --git a/package/freeradius-server/freeradius-server.mk
> b/package/freeradius-server/freeradius-server.mk
> > index af3320eb44..1931c970e8 100644
> > --- a/package/freeradius-server/freeradius-server.mk
> > +++ b/package/freeradius-server/freeradius-server.mk
> > @@ -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.
>
> > -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?
>
Yes, good catch, I sent a v2.
>
> Thanks,
>
> Thomas
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering and training
> https://bootlin.com
Best Regards,
Fabrice
[-- Attachment #1.2: Type: text/html, Size: 2936 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-11-04 14:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-04 9:54 [Buildroot] [PATCH 1/1] package/freeradius-server: fix redis handling Fabrice Fontaine
2023-11-04 13:55 ` Thomas Petazzoni via buildroot
2023-11-04 14:06 ` Fabrice Fontaine
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.