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 <ross.bur...@arm.com>
---
 .../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"
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#207115): 
https://lists.openembedded.org/g/openembedded-core/message/207115
Mute This Topic: https://lists.openembedded.org/mt/109556566/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to