openembedded-devel.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
* [meta-oe][PATCH 1/3] libsdl2-ttf: require distro feature opengl
@ 2025-09-03  6:25 Hongxu Jia
  2025-09-03  6:25 ` [meta-oe][PATCH 2/3] libpanel: " Hongxu Jia
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Hongxu Jia @ 2025-09-03  6:25 UTC (permalink / raw)
  To: openembedded-devel

Make libsdl2-ttf require distro feature opengl. Otherwise it fails
to build world if 'opengl' doesn't exist in DISTRO_FEATURES.
...
|ERROR: Nothing PROVIDES 'virtual/egl' (but meta-openembedded/meta-oe/recipes-graphics/
libsdl/libsdl2-ttf_2.24.0.bb DEPENDS on or otherwise requires it). Close matches:
|  virtual/kernel
|  virtual/make
|  virtual/perf
|ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
|Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'libsdl2-ttf', 'virtual/egl']
...

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.24.0.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.24.0.bb b/meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.24.0.bb
index d06f41bd0e..a3fb13c45d 100644
--- a/meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.24.0.bb
+++ b/meta-oe/recipes-graphics/libsdl/libsdl2-ttf_2.24.0.bb
@@ -7,7 +7,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=fbb0010b2f7cf6e8a13bcac1ef4d2455"
 SRC_URI = "http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-${PV}.tar.gz"
 SRC_URI[sha256sum] = "0b2bf1e7b6568adbdbc9bb924643f79d9dedafe061fa1ed687d1d9ac4e453bfd"
 
-inherit cmake pkgconfig
+inherit cmake pkgconfig features_check
+
+REQUIRED_DISTRO_FEATURES = "opengl"
 
 S = "${UNPACKDIR}/SDL2_ttf-${PV}"
 
-- 
2.34.1



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

* [meta-oe][PATCH 2/3] libpanel: require distro feature opengl
  2025-09-03  6:25 [meta-oe][PATCH 1/3] libsdl2-ttf: require distro feature opengl Hongxu Jia
@ 2025-09-03  6:25 ` Hongxu Jia
  2025-09-03  6:25 ` [meta-oe][PATCH 3/3] cheese: " Hongxu Jia
  2025-09-03 10:24 ` [oe] [meta-oe][PATCH 1/3] libsdl2-ttf: " Ross Burton
  2 siblings, 0 replies; 6+ messages in thread
From: Hongxu Jia @ 2025-09-03  6:25 UTC (permalink / raw)
  To: openembedded-devel

Make libpanel require distro feature opengl. Otherwise it fails
to build world if 'opengl' doesn't exist in DISTRO_FEATURES.
...
|ERROR: Nothing PROVIDES 'libadwaita' (but meta-openembedded/meta-gnome/recipes-gnome/libpanel/
libpanel_1.10.0.bb DEPENDS on or otherwise requires it)
|libadwaita was skipped: missing required distro feature 'opengl' (not in DISTRO_FEATURES)
|ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
|Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'libpanel', 'libadwaita']
...

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta-gnome/recipes-gnome/libpanel/libpanel_1.10.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-gnome/recipes-gnome/libpanel/libpanel_1.10.0.bb b/meta-gnome/recipes-gnome/libpanel/libpanel_1.10.0.bb
index da47288cf8..ddf183a7f3 100644
--- a/meta-gnome/recipes-gnome/libpanel/libpanel_1.10.0.bb
+++ b/meta-gnome/recipes-gnome/libpanel/libpanel_1.10.0.bb
@@ -19,4 +19,4 @@ PACKAGECONFIG ?= ""
 
 EXTRA_OEMESON += "-Ddocs=disabled  -Dintrospection=enabled -Dvapi=false"
 
-REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
+REQUIRED_DISTRO_FEATURES = "gobject-introspection-data opengl"
-- 
2.34.1



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

* [meta-oe][PATCH 3/3] cheese: require distro feature opengl
  2025-09-03  6:25 [meta-oe][PATCH 1/3] libsdl2-ttf: require distro feature opengl Hongxu Jia
  2025-09-03  6:25 ` [meta-oe][PATCH 2/3] libpanel: " Hongxu Jia
@ 2025-09-03  6:25 ` Hongxu Jia
  2025-09-03  6:32   ` [oe] " Khem Raj
  2025-09-03 10:24 ` [oe] [meta-oe][PATCH 1/3] libsdl2-ttf: " Ross Burton
  2 siblings, 1 reply; 6+ messages in thread
From: Hongxu Jia @ 2025-09-03  6:25 UTC (permalink / raw)
  To: openembedded-devel

Make cheese require distro feature opengl. Otherwise it fails
to build world if 'opengl' doesn't exist in DISTRO_FEATURES.
...
|ERROR: Nothing PROVIDES 'clutter-gst-3.0' (but meta-openembedded/meta-gnome/recipes-gnome/
cheese/cheese_44.1.bb DEPENDS on or otherwise requires it)
|clutter-gst-3.0 was skipped: missing required distro feature 'opengl' (not in DISTRO_FEATURES)
|ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
|Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'cheese', 'clutter-gst-3.0']
...

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta-gnome/recipes-gnome/cheese/cheese_44.1.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-gnome/recipes-gnome/cheese/cheese_44.1.bb b/meta-gnome/recipes-gnome/cheese/cheese_44.1.bb
index 180f3f6319..8e78162991 100644
--- a/meta-gnome/recipes-gnome/cheese/cheese_44.1.bb
+++ b/meta-gnome/recipes-gnome/cheese/cheese_44.1.bb
@@ -5,6 +5,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a17cb0a873d252440acfdf9b3d0e7fbf"
 
 inherit gnomebase gobject-introspection vala itstool gtk-icon-cache gsettings gnome-help gtk-doc
 
+REQUIRED_DISTRO_FEATURES = "opengl"
+
 SRC_URI += "file://0001-libcheese-Add-GtkWidget-cast-to-avoid-an-incompatibl.patch"
 
 SRC_URI[archive.sha256sum] = "5f2185c4c99e54ddf2b8baf60c82819950e54952e132e8639875f3edcbf8f68e"
-- 
2.34.1



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

* Re: [oe] [meta-oe][PATCH 3/3] cheese: require distro feature opengl
  2025-09-03  6:25 ` [meta-oe][PATCH 3/3] cheese: " Hongxu Jia
@ 2025-09-03  6:32   ` Khem Raj
  2025-09-03  6:37     ` Hongxu Jia
  0 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2025-09-03  6:32 UTC (permalink / raw)
  To: hongxu.jia; +Cc: openembedded-devel

On Tue, Sep 2, 2025 at 11:25 PM hongxu via lists.openembedded.org
<hongxu.jia=eng.windriver.com@lists.openembedded.org> wrote:
>
> Make cheese require distro feature opengl. Otherwise it fails
> to build world if 'opengl' doesn't exist in DISTRO_FEATURES.
> ...
> |ERROR: Nothing PROVIDES 'clutter-gst-3.0' (but meta-openembedded/meta-gnome/recipes-gnome/
> cheese/cheese_44.1.bb DEPENDS on or otherwise requires it)
> |clutter-gst-3.0 was skipped: missing required distro feature 'opengl' (not in DISTRO_FEATURES)
> |ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
> |Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'cheese', 'clutter-gst-3.0']
> ...
>
> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
> ---
>  meta-gnome/recipes-gnome/cheese/cheese_44.1.bb | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meta-gnome/recipes-gnome/cheese/cheese_44.1.bb b/meta-gnome/recipes-gnome/cheese/cheese_44.1.bb
> index 180f3f6319..8e78162991 100644
> --- a/meta-gnome/recipes-gnome/cheese/cheese_44.1.bb
> +++ b/meta-gnome/recipes-gnome/cheese/cheese_44.1.bb
> @@ -5,6 +5,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a17cb0a873d252440acfdf9b3d0e7fbf"
>
>  inherit gnomebase gobject-introspection vala itstool gtk-icon-cache gsettings gnome-help gtk-doc
>
> +REQUIRED_DISTRO_FEATURES = "opengl"
> +

this also needs inherit features_check

>  SRC_URI += "file://0001-libcheese-Add-GtkWidget-cast-to-avoid-an-incompatibl.patch"
>
>  SRC_URI[archive.sha256sum] = "5f2185c4c99e54ddf2b8baf60c82819950e54952e132e8639875f3edcbf8f68e"
> --
> 2.34.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#119192): https://lists.openembedded.org/g/openembedded-devel/message/119192
> Mute This Topic: https://lists.openembedded.org/mt/115041303/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


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

* Re: [oe] [meta-oe][PATCH 3/3] cheese: require distro feature opengl
  2025-09-03  6:32   ` [oe] " Khem Raj
@ 2025-09-03  6:37     ` Hongxu Jia
  0 siblings, 0 replies; 6+ messages in thread
From: Hongxu Jia @ 2025-09-03  6:37 UTC (permalink / raw)
  To: raj.khem, hongxu.jia; +Cc: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 2603 bytes --]

On 9/3/25 14:32, Khem Raj via lists.openembedded.org wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
> On Tue, Sep 2, 2025 at 11:25 PM hongxu via lists.openembedded.org
> <hongxu.jia=eng.windriver.com@lists.openembedded.org>  wrote:
>> Make cheese require distro feature opengl. Otherwise it fails
>> to build world if 'opengl' doesn't exist in DISTRO_FEATURES.
>> ...
>> |ERROR: Nothing PROVIDES 'clutter-gst-3.0' (but meta-openembedded/meta-gnome/recipes-gnome/
>> cheese/cheese_44.1.bb DEPENDS on or otherwise requires it)
>> |clutter-gst-3.0 was skipped: missing required distro feature 'opengl' (not in DISTRO_FEATURES)
>> |ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
>> |Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'cheese', 'clutter-gst-3.0']
>> ...
>>
>> Signed-off-by: Hongxu Jia<hongxu.jia@windriver.com>
>> ---
>>   meta-gnome/recipes-gnome/cheese/cheese_44.1.bb | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/meta-gnome/recipes-gnome/cheese/cheese_44.1.bb b/meta-gnome/recipes-gnome/cheese/cheese_44.1.bb
>> index 180f3f6319..8e78162991 100644
>> --- a/meta-gnome/recipes-gnome/cheese/cheese_44.1.bb
>> +++ b/meta-gnome/recipes-gnome/cheese/cheese_44.1.bb
>> @@ -5,6 +5,8 @@ LIC_FILES_CHKSUM ="file://COPYING;md5=a17cb0a873d252440acfdf9b3d0e7fbf"
>>
>>   inherit gnomebase gobject-introspection vala itstool gtk-icon-cache gsettings gnome-help gtk-doc
>>
>> +REQUIRED_DISTRO_FEATURES = "opengl"
>> +
> this also needs inherit features_check

It is not necessary, because bbclass gtk-icon-cache has inherited 
features_check already [1]

[1] 
https://git.openembedded.org/openembedded-core/tree/meta/classes-recipe/gtk-icon-cache.bbclass#n16

//Hongxu

>
>>   SRC_URI +="file://0001-libcheese-Add-GtkWidget-cast-to-avoid-an-incompatibl.patch"
>>
>>   SRC_URI[archive.sha256sum] = "5f2185c4c99e54ddf2b8baf60c82819950e54952e132e8639875f3edcbf8f68e"
>> --
>> 2.34.1
>>
>>
>>
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#119194):https://lists.openembedded.org/g/openembedded-devel/message/119194
>> Mute This Topic:https://lists.openembedded.org/mt/115041303/3617049
>> Group Owner:openembedded-devel+owner@lists.openembedded.org
>> Unsubscribe:https://lists.openembedded.org/g/openembedded-devel/unsub  [hongxu.jia@eng.windriver.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>

[-- Attachment #2: Type: text/html, Size: 4643 bytes --]

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

* Re: [oe] [meta-oe][PATCH 1/3] libsdl2-ttf: require distro feature opengl
  2025-09-03  6:25 [meta-oe][PATCH 1/3] libsdl2-ttf: require distro feature opengl Hongxu Jia
  2025-09-03  6:25 ` [meta-oe][PATCH 2/3] libpanel: " Hongxu Jia
  2025-09-03  6:25 ` [meta-oe][PATCH 3/3] cheese: " Hongxu Jia
@ 2025-09-03 10:24 ` Ross Burton
  2 siblings, 0 replies; 6+ messages in thread
From: Ross Burton @ 2025-09-03 10:24 UTC (permalink / raw)
  To: hongxu.jia@eng.windriver.com; +Cc: openembedded-devel@lists.openembedded.org

On 3 Sep 2025, at 07:25, hongxu via lists.openembedded.org <hongxu.jia=eng.windriver.com@lists.openembedded.org> wrote:
> 
> Make libsdl2-ttf require distro feature opengl. Otherwise it fails
> to build world if 'opengl' doesn't exist in DISTRO_FEATURES.
> ...
> |ERROR: Nothing PROVIDES 'virtual/egl' (but meta-openembedded/meta-oe/recipes-graphics/
> libsdl/libsdl2-ttf_2.24.0.bb DEPENDS on or otherwise requires it). Close matches:
> |  virtual/kernel
> |  virtual/make
> |  virtual/perf
> |ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
> |Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'libsdl2-ttf', 'virtual/egl']

GL is only used for an example binary, so it would be better to simply disable those with -DSDL2TTF_SAMPLES=OFF.

Ross

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

end of thread, other threads:[~2025-09-03 10:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-03  6:25 [meta-oe][PATCH 1/3] libsdl2-ttf: require distro feature opengl Hongxu Jia
2025-09-03  6:25 ` [meta-oe][PATCH 2/3] libpanel: " Hongxu Jia
2025-09-03  6:25 ` [meta-oe][PATCH 3/3] cheese: " Hongxu Jia
2025-09-03  6:32   ` [oe] " Khem Raj
2025-09-03  6:37     ` Hongxu Jia
2025-09-03 10:24 ` [oe] [meta-oe][PATCH 1/3] libsdl2-ttf: " Ross Burton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).