From 2ed77abf132696b7f3a8b9f8f422eb33ff711038 Mon Sep 17 00:00:00 2001 From: Dmitry Baryshkov Date: Thu, 7 Jan 2021 03:54:18 +0300 Subject: xterm: provide virtual/x-terminal-emulator Signed-off-by: Dmitry Baryshkov Signed-off-by: Khem Raj (cherry picked from commit 8826791d795e65851ad20bbc0f34e74b2bf72e07) --- meta-oe/recipes-graphics/xorg-app/xterm_353.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta-oe/recipes-graphics/xorg-app/xterm_353.bb b/meta-oe/recipes-graphics/xorg-app/xterm_353.bb index 6376388c27..06c285924d 100644 --- a/meta-oe/recipes-graphics/xorg-app/xterm_353.bb +++ b/meta-oe/recipes-graphics/xorg-app/xterm_353.bb @@ -37,7 +37,12 @@ do_install_append() { oe_runmake install-desktop DESTDIR="${D}" DESKTOP_FLAGS="--dir=${D}${DESKTOPDIR}" } +RPROVIDES_${PN} = "virtual/x-terminal-emulator" + # busybox can supply resize too inherit update-alternatives -ALTERNATIVE_${PN} = "resize" +ALTERNATIVE_${PN} = "resize x-terminal-emulator" +ALTERNATIVE_TARGET[x-terminal-emulator] = "${bindir}/xterm" +# rxvt-unicode defaults to priority 10. Let's be one point lower to let it override xterm. +ALTERNATIVE_PRIORITY[x-terminal-emulator] = "9" -- cgit 1.2.3-korg