ncurses: Create alternative symlinks for st and st-256color

Submitted by Khem Raj on Sept. 17, 2020, 12:23 a.m. | Patch ID: 176590

Details

Message ID 20200917002301.220605-1-raj.khem@gmail.com
State Accepted
Commit 151e7306cbd0cc004ee29aab3267e3295710a739
Headers show

Commit Message

Khem Raj Sept. 17, 2020, 12:23 a.m.
Adjust for other st implementations

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-core/ncurses/ncurses.inc | 5 +++++
 1 file changed, 5 insertions(+)

Patch hide | download patch | download mbox

diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc
index 1627fb91d3..4b61889668 100644
--- a/meta/recipes-core/ncurses/ncurses.inc
+++ b/meta/recipes-core/ncurses/ncurses.inc
@@ -273,6 +273,11 @@  inherit update-alternatives
 ALTERNATIVE_PRIORITY = "100"
 
 ALTERNATIVE_ncurses-tools_class-target = "clear reset"
+ALTERNATIVE_ncurses-terminfo_class-target = "st st-256color"
+
+ALTERNATIVE_LINK_NAME[st] = "${datadir}/terminfo/s/st"
+
+ALTERNATIVE_LINK_NAME[st-256color] = "${datadir}/terminfo/s/st-256color"
 
 BBCLASSEXTEND = "native nativesdk"