All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-python][PATCH] python3-wxgtk4: add distro feature check to match dependency
@ 2022-04-04 12:44 Davide Gardenal
  2022-04-09  8:28 ` [oe] " Robert Yang
  0 siblings, 1 reply; 2+ messages in thread
From: Davide Gardenal @ 2022-04-04 12:44 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Davide Gardenal

Add REQUIRED_DISTRO_FEATURE to match wxwidgets,
this fix build error (not buildable target) when x11 is not supported

Signed-off-by: Davide Gardenal <davide.gardenal@huawei.com>
---
 .../recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb   | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb
index e61b00efa..dcb373a1f 100644
--- a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb
+++ b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb
@@ -4,6 +4,10 @@ HOMEPAGE = "http://www.wxpython.org"
 LICENSE = "WXwindows"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=fce1d18e2d633d41786c0a8dfbc80917"
 
+inherit features_check
+
+REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'no_gui', '', 'x11', d)}"
+
 DEPENDS = "wxwidgets-native wxwidgets"
 
 PYPI_PACKAGE = "wxPython"
-- 
2.32.0



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

* Re: [oe] [meta-python][PATCH] python3-wxgtk4: add distro feature check to match dependency
  2022-04-04 12:44 [meta-python][PATCH] python3-wxgtk4: add distro feature check to match dependency Davide Gardenal
@ 2022-04-09  8:28 ` Robert Yang
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Yang @ 2022-04-09  8:28 UTC (permalink / raw)
  To: Davide Gardenal, openembedded-devel; +Cc: Davide Gardenal, Khem Raj

Hello,

On 4/4/22 20:44, Davide Gardenal wrote:
> Add REQUIRED_DISTRO_FEATURE to match wxwidgets,
> this fix build error (not buildable target) when x11 is not supported
> 
> Signed-off-by: Davide Gardenal <davide.gardenal@huawei.com>
> ---
>   .../recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb   | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb
> index e61b00efa..dcb373a1f 100644
> --- a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb
> +++ b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb
> @@ -4,6 +4,10 @@ HOMEPAGE = "http://www.wxpython.org"
>   LICENSE = "WXwindows"
>   LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=fce1d18e2d633d41786c0a8dfbc80917"
>   
> +inherit features_check
> +
> +REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'no_gui', '', 'x11', d)}"

The fix isn't correct enough since there is no PACKAGECONFIG for python3-wxgtk4, 
I will send another patch based on this.

// Robert


> +
>   DEPENDS = "wxwidgets-native wxwidgets"
>   
>   PYPI_PACKAGE = "wxPython"
> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#96377): https://lists.openembedded.org/g/openembedded-devel/message/96377
> Mute This Topic: https://lists.openembedded.org/mt/90240535/3616940
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [liezhi.yang@windriver.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


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

end of thread, other threads:[~2022-04-11 17:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-04 12:44 [meta-python][PATCH] python3-wxgtk4: add distro feature check to match dependency Davide Gardenal
2022-04-09  8:28 ` [oe] " Robert Yang

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.