From patchwork Tue Jun 14 06:27:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Suesens X-Patchwork-Id: 9177 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5EB0BC433EF for ; Tue, 14 Jun 2022 06:27:13 +0000 (UTC) Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) by mx.groups.io with SMTP id smtpd.web10.3009.1655188031874075459 for ; Mon, 13 Jun 2022 23:27:12 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=J0GNEejz; spf=pass (domain: gmail.com, ip: 209.85.218.43, mailfrom: sebastian.suesens@gmail.com) Received: by mail-ej1-f43.google.com with SMTP id me5so15219933ejb.2 for ; Mon, 13 Jun 2022 23:27:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=E0xNLktVNlQyyan9GvBTUYyJ/+/Y+0Ir2K74abT8a9U=; b=J0GNEejz3Mp45GRfuHs9P/vBBoG+R2SpEnyiR9kPaqf6h4UosfQfScFH6EkMw+7cl6 3UXCs1msuyYN4OaCoELfxNxtAg2Nhtr0CbYKNFSSK7bZBX+e71Dk7OY4Oy2EEPumtm+j UUgsdtFZk8Fbe46jCJU33NofY/h2s0LKYdYuLCquFc+FsBisycvAKdL9JraML8/vkodt 7Gtb3hBPtxKmJpac856gtaSo3WmLzRX1M+SmxDUYkycc7Jbnzv8dHEQJPCm4W2RXmKM/ wkcO+0KcCl186MB3+y2LHtgtYABLVF7hnx9EYHBGNM12KZhf+FyseJfvsS0ju75nrrqg wLjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=E0xNLktVNlQyyan9GvBTUYyJ/+/Y+0Ir2K74abT8a9U=; b=1ZZPRxjACswPdZ/aEDztMYr9YVAMHrjnDTMf+CElHgKHXW6dDvm5VAxZT8qczmmPvX Rok/El5AOMhaY0qOTMVKCjQXPxFOSZbuBg84o6iUqWgRdRR6zr5HGPotzl50bhHvEieC j01/FXgR7UMKPWW0krE289OWwRAuDlQA2fqXN6GgH2IQ8jfv7AhhkhLMkdFpSHclWmt/ E3lkBL0QM8Ih9yeycHJsLYUQWvAF3ol9FqDps3qGctUDYcww1k4hjGpAJYTe2baYz1bv GCDrdPFbPFj+q9UjuL4D9NYw0Ehg0Vza85zc9f8prenjKgzMjly83i4elRBx4qGcs96T HJaA== X-Gm-Message-State: AOAM530M+16v/4EaPWgU0kpUD6bfpBTMFoxuZNVm13jJF0OsxGJEmZYq sR8sGiLskyTgbNtp4U9IegBgbEj/spkZKyejzjs= X-Google-Smtp-Source: ABdhPJx7IxaG7H8l1gRzuMy7dTPyD2H2DZjYuzcK1YABoyN5e0awzTJf9Zq9jm3vpw5+FUuuvBuV9g== X-Received: by 2002:a17:907:3d8a:b0:70d:e791:f82d with SMTP id he10-20020a1709073d8a00b0070de791f82dmr2870398ejc.528.1655188030298; Mon, 13 Jun 2022 23:27:10 -0700 (PDT) Received: from ssuesens-qemu.fritz.box (p200300d98f3c7d00bcbc9443c92a3bee.dip0.t-ipconnect.de. [2003:d9:8f3c:7d00:bcbc:9443:c92a:3bee]) by smtp.gmail.com with ESMTPSA id t10-20020a170906178a00b00711d5baae0esm4684374eje.145.2022.06.13.23.27.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 23:27:09 -0700 (PDT) From: Sebastian Suesens X-Google-Original-From: Sebastian Suesens To: openembedded-core@lists.openembedded.org Cc: ssuesens Subject: [master][PATCH v2 1/3] weston.py: added xwayland test Date: Tue, 14 Jun 2022 08:27:05 +0200 Message-Id: <20220614062707.2946041-1-Sebastian.Suesens@baslerweb.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 14 Jun 2022 06:27:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/166876 From: ssuesens Test xwayland support if DISTRO_FEATURE X11 is enabled Test checked if xserver listening on display Signed-off-by: ssuesens --- meta/lib/oeqa/runtime/cases/weston.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meta/lib/oeqa/runtime/cases/weston.py b/meta/lib/oeqa/runtime/cases/weston.py index b81cc299ef..1fd471e611 100644 --- a/meta/lib/oeqa/runtime/cases/weston.py +++ b/meta/lib/oeqa/runtime/cases/weston.py @@ -77,3 +77,11 @@ class WestonTest(OERuntimeTestCase): self.target.run('kill -9 %s' % w) __, weston_log = self.target.run('cat %s' % self.weston_log_file) self.assertTrue(new_wl_processes, msg='Could not get new weston-desktop-shell processes (%s, try_cnt:%s) weston log: %s' % (new_wl_processes, try_cnt, weston_log)) + + @skipIfNotFeature('x11', 'Test requires x11 to be in DISTRO_FEATURES') + @OEHasPackage(['weston']) + def test_weston_supports_xwayland(self): + cmd ='cat %s | grep "xserver listening on display"' % self.weston_log_file + status, output = self.target.run(cmd) + msg = ('xwayland does not appear to be running') + self.assertEqual(status, 0, msg=msg) From patchwork Tue Jun 14 06:27:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Suesens X-Patchwork-Id: 9178 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5F996C43334 for ; Tue, 14 Jun 2022 06:27:13 +0000 (UTC) Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) by mx.groups.io with SMTP id smtpd.web11.2974.1655188032626805757 for ; Mon, 13 Jun 2022 23:27:13 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RvazFgww; spf=pass (domain: gmail.com, ip: 209.85.218.50, mailfrom: sebastian.suesens@gmail.com) Received: by mail-ej1-f50.google.com with SMTP id n10so15182466ejk.5 for ; Mon, 13 Jun 2022 23:27:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=u4ARx6SDFC9m9vxoFhV23hnI8TGhmZXcCBRw4COZGIw=; b=RvazFgwwNlIbp/a7l6ZXhfw+lgixRIZgiQ9fLnZUYkuwOKUkQLrf2jE7twbp5b6umS 4B14a8r7Mp29WYm/L3XUa5Ta++qPxsqP82orJibfz3AKEbii1KwtBfRnM+MQRAkhCbD0 NEOJFazqo6FwmrO0BrxGaZJsjXASwbi97MTPqWRz9PnXnmfpKccPc8aS5EiE8LNBmH3a s1CS++56ap3uCF+lveJHJGl2Zkww1YvyURcOQP3TDVTvVNRhZsv9dsBcUNRhpoTvwV16 EO1f+Xs/8YX2iOZpo49fBKzUqmPXL+gaRFRMWSnNO8CwGD/X+Aw+O9doU5EQeaLFLwPK An5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=u4ARx6SDFC9m9vxoFhV23hnI8TGhmZXcCBRw4COZGIw=; b=thyH3VhJPjEBTZkakqwZ1bsc/4hfqNt0nLzy9vwRjmSfd2N0KZPEwlUHXQIlCYLj2j 6EDBKxhiAxJaQNkO9856LsfSHa76gt6GsRhM35NcUn8cxVd1OWIzMRTxRJuMIQd8s5Js Zml9nheM84cn/SqOw0HBEa/UqGO5QwF5MbgU/O7BJw61rlyQCjCR3UwfnoQLPZQhSuZh 9gk4aUWrulLi0N+DgfiIq3oecrsZxVx8Fjvt51rCOxhUDesu2ApifM3UM1EdcWlVl11A sUGa7gYLU6VclZcbpDOAeukkgAKKO1kC2Zczgc0rZL1yEdR/l9RYta+OvOMeF5RT9nbw lS5A== X-Gm-Message-State: AOAM533yu0iiCzQVfS8EvdKaf83jKg7vceu7BzDo2AoV1TYLxOJKlpRo D5JvpcB449TaMmB3BckzdzKBZkGsZ8KqrchV7I8= X-Google-Smtp-Source: AGRyM1vLflPhADMr5e9EP7cJm7PrWPcuxOcMJeBVcRvkT3FRj+8Od5zI6dTsILSLLX9ELQH7YFVyxA== X-Received: by 2002:a17:906:6485:b0:712:10cd:e3b7 with SMTP id e5-20020a170906648500b0071210cde3b7mr2807019ejm.557.1655188031056; Mon, 13 Jun 2022 23:27:11 -0700 (PDT) Received: from ssuesens-qemu.fritz.box (p200300d98f3c7d00bcbc9443c92a3bee.dip0.t-ipconnect.de. [2003:d9:8f3c:7d00:bcbc:9443:c92a:3bee]) by smtp.gmail.com with ESMTPSA id t10-20020a170906178a00b00711d5baae0esm4684374eje.145.2022.06.13.23.27.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 23:27:10 -0700 (PDT) From: Sebastian Suesens X-Google-Original-From: Sebastian Suesens To: openembedded-core@lists.openembedded.org Cc: ssuesens Subject: [master][PATCH v2 2/3] [master} weston.init: enabled xwayland Date: Tue, 14 Jun 2022 08:27:06 +0200 Message-Id: <20220614062707.2946041-2-Sebastian.Suesens@baslerweb.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220614062707.2946041-1-Sebastian.Suesens@baslerweb.com> References: <20220614062707.2946041-1-Sebastian.Suesens@baslerweb.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 14 Jun 2022 06:27:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/166877 From: ssuesens set xwayland support in weston.init file to true Signed-off-by: ssuesens --- meta/recipes-graphics/wayland/weston-init.bb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb index 497d860203..77dda03cf5 100644 --- a/meta/recipes-graphics/wayland/weston-init.bb +++ b/meta/recipes-graphics/wayland/weston-init.bb @@ -50,6 +50,10 @@ do_install() { sed -i -e "/^\[core\]/a backend=${DEFAULTBACKEND}-backend.so" ${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 + if [ "${@bb.utils.contains('PACKAGECONFIG', 'no-idle-timeout', 'yes', 'no', d)}" = "yes" ]; then sed -i -e "/^\[core\]/a idle-time=0" ${D}${sysconfdir}/xdg/weston/weston.ini fi From patchwork Tue Jun 14 06:27:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Suesens X-Patchwork-Id: 9179 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 538DBC433EF for ; Tue, 14 Jun 2022 06:27:23 +0000 (UTC) Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) by mx.groups.io with SMTP id smtpd.web12.2974.1655188033179838394 for ; Mon, 13 Jun 2022 23:27:13 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JxfQjwBR; spf=pass (domain: gmail.com, ip: 209.85.218.48, mailfrom: sebastian.suesens@gmail.com) Received: by mail-ej1-f48.google.com with SMTP id v1so15104993ejg.13 for ; Mon, 13 Jun 2022 23:27:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Olfq3QZ7n9TPKRc76m+PSFJOYxhraoHmKuWL26uA7tw=; b=JxfQjwBR6BDsQbjplEUAXQsOIqFG5MQQcsgOkVD4Vsgw82N8KPHIzMmRJanGpUolZZ A0s1XBCyYm0QpYVSkZf3xOa0XEK13L10WdlaxDwoX5KjI6VOqqX0/F6DZTauN+L2Zn4x jfCPNwZacp2MEFVHo4tifWLIWH5nUbH82eMIk2Mii1nBedDDHneggsv0N6usCv/+wQy8 L5cOyX7NALxC7YpqODq+Wbg7rpejNr/IYURxBDiRKk6Tw5PzrZbbme30F2AyRhy3Xomm yujNGrRTy+yUdaEQxu9PYQ5KhcJXL2d9Odjwcd95/kk9OB1Y1V6ODJaP9ettUYQJ3X/4 gKuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Olfq3QZ7n9TPKRc76m+PSFJOYxhraoHmKuWL26uA7tw=; b=E4zqlUo+FS/o+4+DxWSITCTIdwldzCGdl/C2A6QbNnmXHaP7CbmwuR6TuPqFEj3Okv zfkvRgLX1X/3x4kL+ThxHjdb1OgOlEsHXTYtSficzWp0Tk9s1Rf3aGZyJd9PEVTL8CuY +LnuOATlsr5wQYuPb/PHSAN4KI0AkFIHcIkvsGySnAazvAibxObnG+aXbtD/symTId/K 8be9Y+C07T/MBNWeMFtAZ5q6WmRcAhJdy4xArSAVIVpR+3plglVMr6jxabIcX4Ul6RGv Qxx0Cbc8sQBtdrG6bmUe+nT5XkrpnNfm/o+0cCSYAAIxmjo18SY4jWbmxGRiTu1SPNVC kFnQ== X-Gm-Message-State: AOAM530Utt5Cwo4CI5PoME3D3ubqFciG+ho2oe8ZcFbwQFppod+98zCA 88Z28mQY2c13QG1dJZP6aTWSroL5+l1o5QaU5O0= X-Google-Smtp-Source: ABdhPJwbsELlhfel7WJuGtMbfCSr988cp7lHNmF+EG080wklus0Ms+oK/ov1QXp0RoJII7jHUercYw== X-Received: by 2002:a17:906:748a:b0:712:2427:3a8 with SMTP id e10-20020a170906748a00b00712242703a8mr2974264ejl.220.1655188031823; Mon, 13 Jun 2022 23:27:11 -0700 (PDT) Received: from ssuesens-qemu.fritz.box (p200300d98f3c7d00bcbc9443c92a3bee.dip0.t-ipconnect.de. [2003:d9:8f3c:7d00:bcbc:9443:c92a:3bee]) by smtp.gmail.com with ESMTPSA id t10-20020a170906178a00b00711d5baae0esm4684374eje.145.2022.06.13.23.27.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 23:27:11 -0700 (PDT) From: Sebastian Suesens X-Google-Original-From: Sebastian Suesens To: openembedded-core@lists.openembedded.org Cc: ssuesens Subject: [master][PATCH v2 3/3] xwayland.weston-start: adaption of X11-unix folder Date: Tue, 14 Jun 2022 08:27:07 +0200 Message-Id: <20220614062707.2946041-3-Sebastian.Suesens@baslerweb.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220614062707.2946041-1-Sebastian.Suesens@baslerweb.com> References: <20220614062707.2946041-1-Sebastian.Suesens@baslerweb.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 14 Jun 2022 06:27:23 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/166878 From: ssuesens changed permission of X11-unix to 775 changed owner of X11-unix to root:video Signed-off-by: ssuesens --- meta/recipes-graphics/wayland/weston/xwayland.weston-start | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/recipes-graphics/wayland/weston/xwayland.weston-start b/meta/recipes-graphics/wayland/weston/xwayland.weston-start index db384b1a53..342ac8d129 100644 --- a/meta/recipes-graphics/wayland/weston/xwayland.weston-start +++ b/meta/recipes-graphics/wayland/weston/xwayland.weston-start @@ -1,5 +1,6 @@ #!/bin/sh if type Xwayland >/dev/null 2>/dev/null; then - mkdir -p /tmp/.X11-unix + mkdir -m 775 -p /tmp/.X11-unix + chown root:video /tmp/.X11-unix fi