Skip to contentSkip to conversation

Remove X11 from REQUIRED_DISTRO_FEATURES from Kivy

PATCH In review Marine Vovard 3 participants 7 messages Aug 14, 2023 – Aug 16, 2023

lore
Share & tools
lore
#0 lore raw

cover Remove X11 from REQUIRED_DISTRO_FEATURES from Kivy

I'm not sure if removing X11 is the good option. Maybe we could try to say it's either Wayland or X11 in the distro if it's possible with Yocto.

Marine Vovard (1):
python3-kivy: Remove X11 from REQUIRED_DISTRO_FEATURES

 meta-python/recipes-devtools/python/python3-kivy_2.1.0..bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/1 python3-kivy: Remove X11 from REQUIRED_DISTRO_FEATURES

We can use pure Wayland and therefore X11 is not required all the time.

---
 meta-python/recipes-devtools/python/python3-kivy_2.1.0..bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-kivy_2.1.0..bb +1 -1
index ca1fc5f96..93894c860 100644
@@ -43,7 +43,7 @@ export KIVY_GRAPHICS
 KIVY_CROSS_SYSROOT="${RECIPE_SYSROOT}"
 export KIVY_CROSS_SYSROOT
 
-REQUIRED_DISTRO_FEATURES += "x11 opengl gobject-introspection-data"
+REQUIRED_DISTRO_FEATURES += "opengl gobject-introspection-data"
 
 DEPENDS += " \
     gstreamer1.0 \
Signature · 1 line
2.25.1
#2 lore raw

Re: [oe] [meta-python][PATCH 1/1] python3-kivy: Remove X11 from REQUIRED_DISTRO_FEATURES

Quoted 3 lines · Marine Vovard

We can use pure Wayland and therefore X11 is not required all the time.

Would it also build when x11 or wayland neither are in DISTRO_FEATURES ? If not then I guess a check should be made to check such that atleast one of these distro
features are present.

Quoted 30 lines
---
 meta-python/recipes-devtools/python/python3-kivy_2.1.0..bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-kivy_2.1.0..bb +1 -2
index ca1fc5f96..93894c860 100644
@@ -43,7 +43,7 @@ export KIVY_GRAPHICS
 KIVY_CROSS_SYSROOT="${RECIPE_SYSROOT}"
 export KIVY_CROSS_SYSROOT
 
-REQUIRED_DISTRO_FEATURES += "x11 opengl gobject-introspection-data"
+REQUIRED_DISTRO_FEATURES += "opengl gobject-introspection-data"
 
 DEPENDS += " \
     gstreamer1.0 \
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#104350): https://lists.openembedded.org/g/openembedded-devel/message/104350
Mute This Topic: https://lists.openembedded.org/mt/100737871/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

Re: [oe] [meta-python][PATCH 1/1] python3-kivy: Remove X11 from REQUIRED_DISTRO_FEATURES

Quoted 7 lines · Khem Raj
Quoted 4 lines · Marine Vovard

We can use pure Wayland and therefore X11 is not required all the time.

Quoted 6 lines

Would it also build when x11 or wayland neither are in DISTRO_FEATURES ?
If not then I guess a check should be made to check such that atleast one of these distro
features are present.

Indeed, from what I understood you need wayland or x11 (or both) to make it work. I'm thinking about adding the following line:

ANY_OF_DISTRO_FEATURES = "x11 wayland"

I will send a new patch with this modification if it seems ok.

Quoted 37 lines
Quoted 37 lines

---
 meta-python/recipes-devtools/python/python3-kivy_2.1.0..bb | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

kivy_2.1.0..bb b/meta-python/recipes-devtools/python/python3- kivy_2.1.0..bb
index ca1fc5f96..93894c860 100644

meta-python/recipes-devtools/python/python3-kivy_2.1.0..bb +0 -0
@@ -43,7 +43,7 @@ export KIVY_GRAPHICS

 KIVY_CROSS_SYSROOT="${RECIPE_SYSROOT}"
 export KIVY_CROSS_SYSROOT

-REQUIRED_DISTRO_FEATURES += "x11 opengl gobject-introspection- data"
+REQUIRED_DISTRO_FEATURES += "opengl gobject-introspection-data"

 DEPENDS += " \
     gstreamer1.0 \
--
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#104350):
https://lists.openembedded.org/g/openembedded-devel/message/104350
Mute This Topic:
https://lists.openembedded.org/mt/100737871/1997914
Group Owner: [email protected] Unsubscribe:
https://lists.openembedded.org/g/openembedded-devel/unsub [
[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

Re: [oe] [meta-python][PATCH 1/1] python3-kivy: Remove X11 from REQUIRED_DISTRO_FEATURES

Quoted 15 lines · Marine Vovard
Quoted 7 lines · Khem Raj
Quoted 4 lines · Marine Vovard

We can use pure Wayland and therefore X11 is not required all the time.

Quoted 6 lines

Would it also build when x11 or wayland neither are in DISTRO_FEATURES ?
If not then I guess a check should be made to check such that atleast one of these distro
features are present.

Quoted 6 lines

Indeed, from what I understood you need wayland or x11 (or both) to make it work. I'm thinking about adding the following line:

ANY_OF_DISTRO_FEATURES = "x11 wayland"

I will send a new patch with this modification if it seems ok.

Sounds good

Quoted 40 lines
Quoted 38 lines
Quoted 38 lines
---
 meta-python/recipes-devtools/python/python3-kivy_2.1.0..bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

kivy_2.1.0..bb b/meta-python/recipes-devtools/python/python3- kivy_2.1.0..bb
index ca1fc5f96..93894c860 100644

meta-python/recipes-devtools/python/python3-kivy_2.1.0..bb +0 -1
@@ -43,7 +43,7 @@ export KIVY_GRAPHICS
 KIVY_CROSS_SYSROOT="${RECIPE_SYSROOT}"
 export KIVY_CROSS_SYSROOT
 
-REQUIRED_DISTRO_FEATURES += "x11 opengl gobject-introspection-

data"
+REQUIRED_DISTRO_FEATURES += "opengl gobject-introspection-data"

 DEPENDS += " \
     gstreamer1.0 \

--
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#104350):
https://lists.openembedded.org/g/openembedded-devel/message/104350
Mute This Topic:
https://lists.openembedded.org/mt/100737871/1997914
Group Owner: [email protected] Unsubscribe:
https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw
In reply to Marine Vovard
Quoted 4 lines · Marine Vovard

I'm not sure if removing X11 is the good option. Maybe we could try to say it's either Wayland or X11 in the distro if it's possible with Yocto.

meta/conf/documentation.conf:ANY_OF_DISTRO_FEATURES[doc] = "When a recipe inherits the features_check class, at least one item in this variable must be included in DISTRO_FEATURES."

#6 lore raw
Quoted 9 lines · Martin Jansa
Quoted 5 lines · Marine Vovard

I'm not sure if removing X11 is the good option. Maybe we could try to
say it's either Wayland or X11 in the distro if it's possible with Yocto.

Quoted 3 lines

meta/conf/documentation.conf:ANY_OF_DISTRO_FEATURES[doc] = "When a recipe inherits the features_check class, at least one item in this variable must be included in DISTRO_FEATURES."

I will use that to improve my patch, thank you !