From 2a3f1b22338f0b9b43af9ed3dfa37114678f99d7 Mon Sep 17 00:00:00 2001 From: MarkusVolk Date: Tue, 7 Sep 2021 08:56:10 +0200 Subject: [PATCH] foot: add hack to build terminfo I didn't manage to build foot terminfo with ncurses-native. Since the last foot update, TERM=foot has been set as the default. That makes the problem urgent, because now there are no more ncurses applications running in the terminal. Add a hack to the recipe instead of hiding the problem by setting TERM=xterm inside the image again. Hosts 'tic' can create terminfo. Make use of it. You need to install ncurses-bin on your build machine. --- recipes-support/foot/foot_git.bb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/recipes-support/foot/foot_git.bb b/recipes-support/foot/foot_git.bb index 7984e32..fed35a8 100644 --- a/recipes-support/foot/foot_git.bb +++ b/recipes-support/foot/foot_git.bb @@ -36,6 +36,13 @@ PACKAGECONFIG ?= " \ grapheme-clustering \ " +# Hack! tic from ncurses-native fails to generate the terminfo files. Use hosts tic instead. +# ncurses-bin needs to be installed. +do_install:append() { + install -d ${D}${datadir}/foot/terminfo + /usr/bin/tic -o ${D}${datadir}/foot/terminfo -x -e foot,foot-direct ${S}/foot.info +} + inherit meson pkgconfig features_check FILES:${PN} = " \