Skip to contentSkip to conversation

xwayland: add a standalone recipe

RFC PATCH In review Alexander Kanavin 2 participants 5 messages Mar 11, 2021 – Mar 12, 2021

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/2 xwayland: add a standalone recipe

Please see here for the rationale for splitting XWayland out of main xserver-xorg tree:
https://fedoraproject.org/wiki/Changes/XwaylandStandalone

---
 meta/conf/distro/include/maintainers.inc      |  1 +
 .../xwayland/xwayland_21.0.99.902.bb          | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+)
 create mode 100644 meta/recipes-graphics/xwayland/xwayland_21.0.99.902.bb
meta/conf/distro/include/maintainers.inc +1 -0
index 9093f2d7fd..d507c70091 100644
@@ -797,6 +797,7 @@ RECIPE_MAINTAINER_pn-xset = "Armin Kuster <[email protected]>"
 RECIPE_MAINTAINER_pn-xtrans = "Armin Kuster <[email protected]>"
 RECIPE_MAINTAINER_pn-xuser-account = "Armin Kuster <[email protected]>"
 RECIPE_MAINTAINER_pn-xvinfo = "Armin Kuster <[email protected]>"
+RECIPE_MAINTAINER_pn-xwayland = "Armin Kuster <[email protected]>"
 RECIPE_MAINTAINER_pn-xwininfo = "Armin Kuster <[email protected]>"
 RECIPE_MAINTAINER_pn-xz = "Denys Dmytriyenko <[email protected]>"
 RECIPE_MAINTAINER_pn-zip = "Denys Dmytriyenko <[email protected]>"
meta/recipes-graphics/xwayland/xwayland_21.0.99.902.bb new file +19 -0
new file mode 100644
index 0000000000..75daa71902
@@ -0,0 +1,19 @@
+SUMMARY = "XWayland is an X Server that runs under Wayland."
+DESCRIPTION = "XWayland is an X Server running as a Wayland client, \
+and thus is capable of displaying native X11 client applications in a \
+Wayland compositor environment. The goal of XWayland is to facilitate \
+the transition from X Window System to Wayland environments, providing \
+a way to run unported applications in the meantime."
+HOMEPAGE = "https://fedoraproject.org/wiki/Changes/XwaylandStandalone"
+
+LICENSE = "MIT-X"
+LIC_FILES_CHKSUM = "file://COPYING;md5=5df87950af51ac2c5822094553ea1880"
+
+SRC_URI = "https://www.x.org/archive/individual/xserver/xwayland-${PV}.tar.xz"
+SRC_URI[sha256sum] = "799491dd99cb2c6dbdf05162441d0469a2a9b36e089755eb59729dd38f44adce"
+
+inherit meson
+
+DEPENDS += "xorgproto xtrans pixman libxkbfile libxfont2 wayland wayland-native wayland-protocols libdrm libepoxy"
+
+FILES_${PN} += "${libdir}/xorg/protocol.txt"
Signature · 1 line
2.29.2
#1 lore raw

RFC PATCH 2/2 weston: use standalone xwayland instead of outdated xserver-xorg version

---
 meta/recipes-graphics/wayland/weston_9.0.0.bb       | 2 +-
 meta/recipes-graphics/xorg-xserver/xserver-xorg.inc | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
meta/recipes-graphics/wayland/weston_9.0.0.bb +1 -1
index 50fbfa613b..34ac66d4e9 100644
@@ -124,7 +124,7 @@ SUMMARY_libweston-${WESTON_MAJOR_VERSION} = "Helper library for implementing 'wa
 FILES_${PN}-examples = "${bindir}/*"
 
 FILES_${PN}-xwayland = "${libdir}/libweston-${WESTON_MAJOR_VERSION}/xwayland.so"
-RDEPENDS_${PN}-xwayland += "xserver-xorg-xwayland"
+RDEPENDS_${PN}-xwayland += "xwayland"
 
 RDEPENDS_${PN} += "xkeyboard-config"
 RRECOMMENDS_${PN} = "weston-init liberation-fonts"
meta/recipes-graphics/xorg-xserver/xserver-xorg.inc +0 -1
index b3e03744c0..da025171db 100644
@@ -122,7 +122,6 @@ EXTRA_OECONF += "--with-fop=no \
 OPENGL_PKGCONFIGS = "dri glx glamor dri3 xshmfence"
 PACKAGECONFIG ??= "dga dri2 udev ${XORG_CRYPTO} \
                    ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '${OPENGL_PKGCONFIGS}', '', d)} \
-                   ${@bb.utils.contains('DISTRO_FEATURES', 'opengl wayland', 'xwayland', '', d)} \
                    ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd systemd-logind', '', d)} \
 "
 
Signature · 1 line
2.29.2
#2 lore raw
In reply to Alexander Kanavin
Quoted 5 lines · Alexander Kanavin

Please see here for the rationale for splitting XWayland out of main xserver-xorg tree:
https://fedoraproject.org/wiki/Changes/XwaylandStandalone

I think this is a good change. Should we disable xwayland packageconfig in xserver-xorg recipe as well
since I see that it gets activated with opengl wayland being in distro features. so I wonder if we can completely turn it off

Quoted 50 lines
---
 meta/conf/distro/include/maintainers.inc      |  1 +
 .../xwayland/xwayland_21.0.99.902.bb          | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+)
 create mode 100644 meta/recipes-graphics/xwayland/xwayland_21.0.99.902.bb
meta/conf/distro/include/maintainers.inc +1 -0
index 9093f2d7fd..d507c70091 100644
@@ -797,6 +797,7 @@ RECIPE_MAINTAINER_pn-xset = "Armin Kuster <[email protected]>"
 RECIPE_MAINTAINER_pn-xtrans = "Armin Kuster <[email protected]>"
 RECIPE_MAINTAINER_pn-xuser-account = "Armin Kuster <[email protected]>"
 RECIPE_MAINTAINER_pn-xvinfo = "Armin Kuster <[email protected]>"
+RECIPE_MAINTAINER_pn-xwayland = "Armin Kuster <[email protected]>"
 RECIPE_MAINTAINER_pn-xwininfo = "Armin Kuster <[email protected]>"
 RECIPE_MAINTAINER_pn-xz = "Denys Dmytriyenko <[email protected]>"
 RECIPE_MAINTAINER_pn-zip = "Denys Dmytriyenko <[email protected]>"
meta/recipes-graphics/xwayland/xwayland_21.0.99.902.bb new file +19 -1
new file mode 100644
index 0000000000..75daa71902
@@ -0,0 +1,19 @@
+SUMMARY = "XWayland is an X Server that runs under Wayland."
+DESCRIPTION = "XWayland is an X Server running as a Wayland client, \
+and thus is capable of displaying native X11 client applications in a \
+Wayland compositor environment. The goal of XWayland is to facilitate \
+the transition from X Window System to Wayland environments, providing \
+a way to run unported applications in the meantime."
+HOMEPAGE = "https://fedoraproject.org/wiki/Changes/XwaylandStandalone"
+
+LICENSE = "MIT-X"
+LIC_FILES_CHKSUM = "file://COPYING;md5=5df87950af51ac2c5822094553ea1880"
+
+SRC_URI = "https://www.x.org/archive/individual/xserver/xwayland-${PV}.tar.xz"
+SRC_URI[sha256sum] = "799491dd99cb2c6dbdf05162441d0469a2a9b36e089755eb59729dd38f44adce"
+
+inherit meson
+
+DEPENDS += "xorgproto xtrans pixman libxkbfile libxfont2 wayland wayland-native wayland-protocols libdrm libepoxy"
+
+FILES_${PN} += "${libdir}/xorg/protocol.txt"
--

2.29.2

#3 lore raw
Quoted 8 lines · Khem Raj
Quoted 5 lines · Alexander Kanavin

Please see here for the rationale for splitting XWayland out of main xserver-xorg tree:
https://fedoraproject.org/wiki/Changes/XwaylandStandalone

Quoted 6 lines

I think this is a good change. Should we disable xwayland packageconfig in xserver-xorg recipe as well
since I see that it gets activated with opengl wayland being in distro features.
so I wonder if we can completely turn it off

That's done in the second patch, as it has to be atomic with dependency adjustment in weston.

Alex

#4 lore raw

Ok, thanks.

Quoted 21 lines · Alexander Kanavin
Quoted 9 lines · Khem Raj
Quoted 5 lines · Alexander Kanavin

Please see here for the rationale for splitting XWayland out of main xserver-xorg tree:
https://fedoraproject.org/wiki/Changes/XwaylandStandalone

Quoted 4 lines

I think this is a good change. Should we disable xwayland packageconfig in xserver-xorg recipe as well
since I see that it gets activated with opengl wayland being in distro features. so I wonder if we can completely turn it off

That's done in the second patch, as it has to be atomic with dependency adjustment in weston.

Alex