From patchwork Fri Nov 8 17:01:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 52232 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 6A9F0D64063 for ; Fri, 8 Nov 2024 17:02:16 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.17866.1731085327776703903 for ; Fri, 08 Nov 2024 09:02:07 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D5550497 for ; Fri, 8 Nov 2024 09:02:36 -0800 (PST) Received: from cesw-amp-gbt-1s-m12830-04.oss.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id AA8A63F6A8 for ; Fri, 8 Nov 2024 09:02:06 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 2/8] matchbox-terminal: add x-terminal-emulator RPROVIDES and alternative Date: Fri, 8 Nov 2024 17:01:50 +0000 Message-Id: <20241108170156.2057761-2-ross.burton@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241108170156.2057761-1-ross.burton@arm.com> References: <20241108170156.2057761-1-ross.burton@arm.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 ; Fri, 08 Nov 2024 17:02:16 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/206892 Add a RPROVIDES for virtual-x-terminal-emulator, so that: - Packages can RDEPEND on virtual-x-terminal-emulator and know that they have installed a terminal - The x-terminal-emulator binary will (via alternatives) run a terminal We don't bother with PROVIDES because nobody needs to DEPEND on a terminal, the entire point of this is that the actual binary is interchangable. Signed-off-by: Ross Burton --- .../matchbox-terminal/matchbox-terminal_0.2.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta/recipes-sato/matchbox-terminal/matchbox-terminal_0.2.bb b/meta/recipes-sato/matchbox-terminal/matchbox-terminal_0.2.bb index f91c593f784..c9b01b3cfd9 100644 --- a/meta/recipes-sato/matchbox-terminal/matchbox-terminal_0.2.bb +++ b/meta/recipes-sato/matchbox-terminal/matchbox-terminal_0.2.bb @@ -16,6 +16,11 @@ PV = "0.2+git" S = "${WORKDIR}/git" -inherit autotools pkgconfig features_check +inherit autotools pkgconfig features_check update-alternatives ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" + +RPROVIDES:${PN} = "virtual-x-terminal-emulator" +ALTERNATIVE:${PN} = "x-terminal-emulator" +ALTERNATIVE_TARGET[x-terminal-emulator] = "${bindir}/matchbox-terminal" +ALTERNATIVE_PRIORITY[x-terminal-emulator] = "20"