* [meta-oe][PATCH] wxwidgets: Fix build without x11 and with opengl DISTRO_FEATURES
@ 2022-04-09 19:46 Marek Vasut
2022-04-09 19:53 ` Khem Raj
0 siblings, 1 reply; 3+ messages in thread
From: Marek Vasut @ 2022-04-09 19:46 UTC (permalink / raw)
To: openembedded-devel; +Cc: raj.khem, Marek Vasut
In case DISTRO_FEATURES contains both 'x11' and 'opengl', which is a
valid use case for systems using e.g. WL instead, the PACKAGECONFIG
of this recipe is expanded to 'no_gui opengl', and the 'no_gui' option
conflicts with 'opengl'.
Adjust the default PACKAGECONFIG such that 'opengl' is added only in
case the 'gtk' GUI option is added, and not when the 'no_gui' option
is added.
Signed-off-by: Marek Vasut <marex@denx.de>
---
meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb b/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb
index e82143040..0c0c8417b 100644
--- a/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb
+++ b/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb
@@ -44,8 +44,7 @@ EXTRA_OECMAKE:append:libc-musl = " \
"
# All toolkit-configs except 'no_gui' require x11 explicitly (see toolkit.cmake)
-PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk', 'no_gui', d)} \
- ${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)} \
+PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk ' + bb.utils.filter('DISTRO_FEATURES', 'opengl', d), 'no_gui', d)} \
"
PACKAGECONFIG:remove:class-native = "opengl"
--
2.35.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [meta-oe][PATCH] wxwidgets: Fix build without x11 and with opengl DISTRO_FEATURES
2022-04-09 19:46 [meta-oe][PATCH] wxwidgets: Fix build without x11 and with opengl DISTRO_FEATURES Marek Vasut
@ 2022-04-09 19:53 ` Khem Raj
2022-04-09 23:21 ` Marek Vasut
0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2022-04-09 19:53 UTC (permalink / raw)
To: Marek Vasut; +Cc: openembeded-devel
There is already a patch staged in master-next
https://lists.openembedded.org/g/openembedded-devel/message/96479
does that solve the problem?
On Sat, Apr 9, 2022 at 12:46 PM Marek Vasut <marex@denx.de> wrote:
>
> In case DISTRO_FEATURES contains both 'x11' and 'opengl', which is a
> valid use case for systems using e.g. WL instead, the PACKAGECONFIG
> of this recipe is expanded to 'no_gui opengl', and the 'no_gui' option
> conflicts with 'opengl'.
>
> Adjust the default PACKAGECONFIG such that 'opengl' is added only in
> case the 'gtk' GUI option is added, and not when the 'no_gui' option
> is added.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> ---
> meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb b/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb
> index e82143040..0c0c8417b 100644
> --- a/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb
> +++ b/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb
> @@ -44,8 +44,7 @@ EXTRA_OECMAKE:append:libc-musl = " \
> "
>
> # All toolkit-configs except 'no_gui' require x11 explicitly (see toolkit.cmake)
> -PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk', 'no_gui', d)} \
> - ${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)} \
> +PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk ' + bb.utils.filter('DISTRO_FEATURES', 'opengl', d), 'no_gui', d)} \
> "
>
> PACKAGECONFIG:remove:class-native = "opengl"
> --
> 2.35.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [meta-oe][PATCH] wxwidgets: Fix build without x11 and with opengl DISTRO_FEATURES
2022-04-09 19:53 ` Khem Raj
@ 2022-04-09 23:21 ` Marek Vasut
0 siblings, 0 replies; 3+ messages in thread
From: Marek Vasut @ 2022-04-09 23:21 UTC (permalink / raw)
To: Khem Raj; +Cc: openembeded-devel
On 4/9/22 21:53, Khem Raj wrote:
> There is already a patch staged in master-next
>
> https://lists.openembedded.org/g/openembedded-devel/message/96479
>
> does that solve the problem?
That patch from Scott is even better, thanks !
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-11 17:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-09 19:46 [meta-oe][PATCH] wxwidgets: Fix build without x11 and with opengl DISTRO_FEATURES Marek Vasut
2022-04-09 19:53 ` Khem Raj
2022-04-09 23:21 ` Marek Vasut
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.