Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/freeradius-server: fix python handling
@ 2023-11-04 22:48 Fabrice Fontaine
  2023-11-04 22:48 ` [Buildroot] [PATCH 2/2] package/freeradius-server: fix python build Fabrice Fontaine
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Fabrice Fontaine @ 2023-11-04 22:48 UTC (permalink / raw)
  To: buildroot; +Cc: David GOUARIN, Fabrice Fontaine

python handling is wrong since the addition of the package in commit
736c4c1655d93652a9a7e79235bbe726b3d46176 so disable python(2) and enable
python3 if needed

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/freeradius-server/freeradius-server.mk | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/package/freeradius-server/freeradius-server.mk b/package/freeradius-server/freeradius-server.mk
index e493f7a17e..107eaf3ee4 100644
--- a/package/freeradius-server/freeradius-server.mk
+++ b/package/freeradius-server/freeradius-server.mk
@@ -46,6 +46,7 @@ FREERADIUS_SERVER_CONF_OPTS += \
 	--without-rlm_eap_ike \
 	--without-rlm_eap_tnc \
 	--without-rlm_perl \
+	--without-rlm_python \
 	--without-rlm_sql_iodbc \
 	--without-rlm_sql_oracle \
 	--without-rlm_sql_freetds \
@@ -148,10 +149,10 @@ FREERADIUS_SERVER_CONF_OPTS += --without-pcre
 endif
 
 ifeq ($(BR2_PACKAGE_PYTHON3),y)
-FREERADIUS_SERVER_CONF_OPTS += --with-rlm_python
+FREERADIUS_SERVER_CONF_OPTS += --with-rlm_python3
 FREERADIUS_SERVER_DEPENDENCIES += python3
 else
-FREERADIUS_SERVER_CONF_OPTS += --without-rlm_python
+FREERADIUS_SERVER_CONF_OPTS += --without-rlm_python3
 endif
 
 ifeq ($(BR2_PACKAGE_READLINE),y)
-- 
2.42.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 2/2] package/freeradius-server: fix python build
  2023-11-04 22:48 [Buildroot] [PATCH 1/2] package/freeradius-server: fix python handling Fabrice Fontaine
@ 2023-11-04 22:48 ` Fabrice Fontaine
  2023-11-10 12:21   ` Peter Korsgaard
  2023-11-06 22:08 ` [Buildroot] [PATCH 1/2] package/freeradius-server: fix python handling Thomas Petazzoni via buildroot
  2023-11-10 12:21 ` Peter Korsgaard
  2 siblings, 1 reply; 5+ messages in thread
From: Fabrice Fontaine @ 2023-11-04 22:48 UTC (permalink / raw)
  To: buildroot; +Cc: David GOUARIN, Fabrice Fontaine

Fix the following build failure raised since bump to version 3.2.3 in
commit 4155139365247ea702bb536848dd1e771f98f0d2:

In file included from /home/thomas/autobuild/instance-1/output-1/host/include/python3.11/Python.h:38,
                 from src/modules/rlm_python3/rlm_python3.c:37:
/home/thomas/autobuild/instance-1/output-1/host/include/python3.11/pyport.h:596:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
  596 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
      |  ^~~~~

Fixes:
 - http://autobuild.buildroot.org/results/36143ab06b66a047aa2247ea66b1df0d6c1cbd66

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/freeradius-server/freeradius-server.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/freeradius-server/freeradius-server.mk b/package/freeradius-server/freeradius-server.mk
index 107eaf3ee4..16a817b680 100644
--- a/package/freeradius-server/freeradius-server.mk
+++ b/package/freeradius-server/freeradius-server.mk
@@ -149,7 +149,9 @@ FREERADIUS_SERVER_CONF_OPTS += --without-pcre
 endif
 
 ifeq ($(BR2_PACKAGE_PYTHON3),y)
-FREERADIUS_SERVER_CONF_OPTS += --with-rlm_python3
+FREERADIUS_SERVER_CONF_OPTS += \
+	--with-rlm_python3 \
+	--with-rlm-python3-config-bin=$(STAGING_DIR)/usr/bin/python3-config
 FREERADIUS_SERVER_DEPENDENCIES += python3
 else
 FREERADIUS_SERVER_CONF_OPTS += --without-rlm_python3
-- 
2.42.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Buildroot] [PATCH 1/2] package/freeradius-server: fix python handling
  2023-11-04 22:48 [Buildroot] [PATCH 1/2] package/freeradius-server: fix python handling Fabrice Fontaine
  2023-11-04 22:48 ` [Buildroot] [PATCH 2/2] package/freeradius-server: fix python build Fabrice Fontaine
@ 2023-11-06 22:08 ` Thomas Petazzoni via buildroot
  2023-11-10 12:21 ` Peter Korsgaard
  2 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-11-06 22:08 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: David GOUARIN, buildroot

On Sat,  4 Nov 2023 23:48:19 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> python handling is wrong since the addition of the package in commit
> 736c4c1655d93652a9a7e79235bbe726b3d46176 so disable python(2) and enable
> python3 if needed
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/freeradius-server/freeradius-server.mk | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

Both applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Buildroot] [PATCH 1/2] package/freeradius-server: fix python handling
  2023-11-04 22:48 [Buildroot] [PATCH 1/2] package/freeradius-server: fix python handling Fabrice Fontaine
  2023-11-04 22:48 ` [Buildroot] [PATCH 2/2] package/freeradius-server: fix python build Fabrice Fontaine
  2023-11-06 22:08 ` [Buildroot] [PATCH 1/2] package/freeradius-server: fix python handling Thomas Petazzoni via buildroot
@ 2023-11-10 12:21 ` Peter Korsgaard
  2 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2023-11-10 12:21 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: David GOUARIN, buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > python handling is wrong since the addition of the package in commit
 > 736c4c1655d93652a9a7e79235bbe726b3d46176 so disable python(2) and enable
 > python3 if needed

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2023.02.x and 2023.08.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Buildroot] [PATCH 2/2] package/freeradius-server: fix python build
  2023-11-04 22:48 ` [Buildroot] [PATCH 2/2] package/freeradius-server: fix python build Fabrice Fontaine
@ 2023-11-10 12:21   ` Peter Korsgaard
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2023-11-10 12:21 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: David GOUARIN, buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Fix the following build failure raised since bump to version 3.2.3 in
 > commit 4155139365247ea702bb536848dd1e771f98f0d2:

 > In file included from /home/thomas/autobuild/instance-1/output-1/host/include/python3.11/Python.h:38,
 >                  from src/modules/rlm_python3/rlm_python3.c:37:
 > /home/thomas/autobuild/instance-1/output-1/host/include/python3.11/pyport.h:596:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
 >   596 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
 >       |  ^~~~~

 > Fixes:
 >  - http://autobuild.buildroot.org/results/36143ab06b66a047aa2247ea66b1df0d6c1cbd66

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2023.02.x and 2023.08.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-11-10 12:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-04 22:48 [Buildroot] [PATCH 1/2] package/freeradius-server: fix python handling Fabrice Fontaine
2023-11-04 22:48 ` [Buildroot] [PATCH 2/2] package/freeradius-server: fix python build Fabrice Fontaine
2023-11-10 12:21   ` Peter Korsgaard
2023-11-06 22:08 ` [Buildroot] [PATCH 1/2] package/freeradius-server: fix python handling Thomas Petazzoni via buildroot
2023-11-10 12:21 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox