Skip to contentSkip to conversation

weston-init: when x11 is enabled set xwayland=true

PATCH In review Süsens, Sebastian 2 participants 5 messages Jun 7, 2022 – Jun 10, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 weston-init: when x11 is enabled set xwayland=true

When weston is build with x11 support xwayland is also build.
To get xwayland support in weston xwayland has to be enabled via weston.ini file.

This patch enable xwayland support in weston.

From 583bce5a1f5de91306bee5dbd914de577519247a Mon Sep 17 00:00:00 2001
From: ssuesens <[email protected]>
Date: Tue, 7 Jun 2022 11:47:27 +0000
Subject: [PATCH] [honister][PATCH]weston-init: when x11 is enabled set xwayland=true

---
meta/recipes-graphics/wayland/weston-init.bb | 4 ++++

1 file changed, 4 insertions(+)
meta/recipes-graphics/wayland/weston-init.bb +0 -0
index e02da0c358..51b634cb5c 100644
@@ -57,6 +57,10 @@ do_install() {

sed -i -e "/^\[core\]/a idle-time=0" ${D}${sysconfdir}/xdg/weston/weston.ini fi

+ if [ "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'yes', 'no', d)}" = "yes" ]; then
+ sed -i -e "/^\[core\]/a xwayland=true" ${D}${sysconfdir}/xdg/weston/weston.ini
+ fi
+
install -dm 755 -o weston -g weston ${D}/home/weston
}

--
2.25.1

#1 lore raw

This needs to go to oe-core list; also should this go to master branch first? Can you provide a test that fails without the patch and succeeds with it? (see weston test in meta/lib/oeqa/runtime/cases)

Alex

Quoted 37 lines · Sebastian via lists.yoctoproject.org

When weston is build with x11 support xwayland is also build.
To get xwayland support in weston xwayland has to be enabled via weston.ini file.

This patch enable xwayland support in weston.

From 583bce5a1f5de91306bee5dbd914de577519247a Mon Sep 17 00:00:00 2001
From: ssuesens <[email protected]>
Date: Tue, 7 Jun 2022 11:47:27 +0000
Subject: [PATCH] [honister][PATCH]weston-init: when x11 is enabled set
xwayland=true

---
 meta/recipes-graphics/wayland/weston-init.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-graphics/wayland/weston-init.bb +4 -1
index e02da0c358..51b634cb5c 100644
@@ -57,6 +57,10 @@ do_install() {
  sed -i -e "/^\[core\]/a idle-time=0" ${D}${sysconfdir}/xdg/weston/weston.ini
  fi
 
+ if [ "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'yes', 'no', d)}" = "yes" ]; then
+ sed -i -e "/^\[core\]/a xwayland=true" ${D}${sysconfdir}/xdg/weston/weston.ini
+ fi
+
  install -dm 755 -o weston -g weston ${D}/home/weston
 }
 
--

2.25.1

#2 lore raw

Hey Alex,

where can I find a description how to test weston like you suggest?

Sebastian

#3 lore raw

You need to read weston tests in meta/lib/oeqa/runtime/cases, then execute them like this (build for the qemux86-64 machine):
bitbake -c testimage core-image-weston

Alex

Quoted 8 lines · Sebastian via lists.yoctoproject.org

Hey Alex,

where can I find a description how to test weston like you suggest?

Sebastian