* [Buildroot] [PATCH 1/1] package/zbar: fix python build
@ 2021-09-30 6:18 Fabrice Fontaine
2021-10-03 7:04 ` Yann E. MORIN
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-09-30 6:18 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine, Volkov Viacheslav
Fix the following build failure with python raised since its activation
by commit cfc80eeeb4f3cb8e59b56bedd5bd49761764671f:
In file included from /home/giuliobenetti/autobuild/run/instance-2/output-1/host/include/python3.9/Python.h:63,
from python/zbarmodule.h:24,
from python/zbarmodule.c:24:
/home/giuliobenetti/autobuild/run/instance-2/output-1/host/include/python3.9/pyport.h:741:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
741 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
| ^~~~~
Fixes:
- http://autobuild.buildroot.org/results/43a8c8d5403c329f2d754ed09807a53772174397
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/zbar/zbar.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/zbar/zbar.mk b/package/zbar/zbar.mk
index 5554dca6a1..fb83fa01d5 100644
--- a/package/zbar/zbar.mk
+++ b/package/zbar/zbar.mk
@@ -34,6 +34,7 @@ endif
ifeq ($(BR2_PACKAGE_PYTHON3),y)
ZBAR_DEPENDENCIES += host-python3 python3
ZBAR_CONF_OPTS += --with-python=python3
+ZBAR_CONF_ENV += PYTHON_CONFIG="$(STAGING_DIR)/usr/bin/python3-config"
else
ZBAR_CONF_OPTS += --with-python=no
endif
--
2.33.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/zbar: fix python build
2021-09-30 6:18 [Buildroot] [PATCH 1/1] package/zbar: fix python build Fabrice Fontaine
@ 2021-10-03 7:04 ` Yann E. MORIN
0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2021-10-03 7:04 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Volkov Viacheslav, buildroot
Fabrice, All,
On 2021-09-30 08:18 +0200, Fabrice Fontaine spake thusly:
> Fix the following build failure with python raised since its activation
> by commit cfc80eeeb4f3cb8e59b56bedd5bd49761764671f:
>
> In file included from /home/giuliobenetti/autobuild/run/instance-2/output-1/host/include/python3.9/Python.h:63,
> from python/zbarmodule.h:24,
> from python/zbarmodule.c:24:
> /home/giuliobenetti/autobuild/run/instance-2/output-1/host/include/python3.9/pyport.h:741:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
> 741 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
> | ^~~~~
>
> Fixes:
> - http://autobuild.buildroot.org/results/43a8c8d5403c329f2d754ed09807a53772174397
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
> package/zbar/zbar.mk | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/package/zbar/zbar.mk b/package/zbar/zbar.mk
> index 5554dca6a1..fb83fa01d5 100644
> --- a/package/zbar/zbar.mk
> +++ b/package/zbar/zbar.mk
> @@ -34,6 +34,7 @@ endif
> ifeq ($(BR2_PACKAGE_PYTHON3),y)
> ZBAR_DEPENDENCIES += host-python3 python3
> ZBAR_CONF_OPTS += --with-python=python3
> +ZBAR_CONF_ENV += PYTHON_CONFIG="$(STAGING_DIR)/usr/bin/python3-config"
> else
> ZBAR_CONF_OPTS += --with-python=no
> endif
> --
> 2.33.0
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-03 7:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-30 6:18 [Buildroot] [PATCH 1/1] package/zbar: fix python build Fabrice Fontaine
2021-10-03 7:04 ` Yann E. MORIN
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.