Skip to contentSkip to conversation

file-roller: add opengl to REQUIRED_DISTRO_FEATURES

PATCH New [email protected] 1 participant 3 messages Jan 6, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 file-roller: add opengl to REQUIRED_DISTRO_FEATURES

From: Mingli Yu <[email protected]>

file-roller depends on libportal which needs opengl DISTRO_FEATURE, so add the required distro also for file-roller.

---
 meta-gnome/recipes-gnome/file-roller/file-roller_43.0.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-gnome/recipes-gnome/file-roller/file-roller_43.0.bb +3 -1
index 603d4232e..6d0f1f746 100644
@@ -15,7 +15,9 @@ DEPENDS = " \
     libportal \
 "
 
-inherit gnomebase gsettings itstool gobject-introspection gnome-help gettext upstream-version-is-even mime-xdg gtk-icon-cache
+inherit gnomebase gsettings itstool gobject-introspection gnome-help gettext upstream-version-is-even mime-xdg gtk-icon-cache features_check
+
+REQUIRED_DISTRO_FEATURES = "opengl"
 
 EXTRA_OEMESON += "-Dintrospection=enabled"
 
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/3 gnome-photos: add opengl to REQUIRED_DISTRO_FEATURES

From: Mingli Yu <[email protected]>

gnome-photos depends on libportal which needs opengl DISTRO_FEATURES, so add the required DISTRO_FEATURES for gnome-photos.

---
 meta-gnome/recipes-gnome/gnome-photos/gnome-photos_43.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-gnome/recipes-gnome/gnome-photos/gnome-photos_43.0.bb +1 -1
index 620e76e9a..72ab2eaaf 100644
@@ -31,7 +31,7 @@ inherit gnomebase gettext gnome-help features_check
 def gnome_verdir(v):
     return oe.utils.trim_version(v, 1)
 
-REQUIRED_DISTRO_FEATURES = "x11"
+REQUIRED_DISTRO_FEATURES = "x11 opengl"
 
 PACKAGECONFIG ?= ""
 PACKAGECONFIG[doc] = "-Dmanuals=true,-Dmanuals=false,libxslt-native docbook-xsl-stylesheets-native"
Signature · 1 line
2.25.1
#2 lore raw

PATCH 3/3 xdg-desktop-portal-wlr: add opengl to REQUIRED_DISTRO_FEATURES

In reply to [email protected]

From: Mingli Yu <[email protected]>

Fixes:
ERROR: Nothing PROVIDES 'virtual/libgbm' (but /build/layers/meta-openembedded/meta-multimedia/recipes-support/xdg-desktop-portal-wlr/xdg-desktop-portal-wlr_0.6.0.bb DEPENDS on or otherwise requires it).
ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'xdg-desktop-portal-wlr', 'virtual/libgbm']

---
 .../xdg-desktop-portal-wlr/xdg-desktop-portal-wlr_0.6.0.bb     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-multimedia/recipes-support/xdg-desktop-portal-wlr/xdg-desktop-portal-wlr_0.6.0.bb +2 -1
index b8cdf25c1..7e1b7b9d2 100644
@@ -13,7 +13,8 @@ DEPENDS = " \
     virtual/libgbm \
 "
 
-inherit meson pkgconfig
+inherit meson pkgconfig features_check
+REQUIRED_DISTRO_FEATURES = "opengl"
 
 SRC_URI = "git://github.com/emersion/xdg-desktop-portal-wlr.git;protocol=https;nobranch=1"
 
Signature · 1 line
2.25.1