From: Rasmus Villemoes <ravi@prevas.dk>
To: openembedded-core@lists.openembedded.org
Cc: Rasmus Villemoes <ravi@prevas.dk>
Subject: [PATCH 1/2] ncurses: put symlinks to basic terminfo files in ncurses-terminfo-base package
Date: Thu, 23 Jul 2026 09:40:53 +0200 [thread overview]
Message-ID: <20260723074054.2125126-1-ravi@prevas.dk> (raw)
From: Rasmus Villemoes <ravi@prevas.dk>
With only the ncurses-terminfo-base package installed (i.e. not the
full ncurses-terminfo), systemd prints
Terminfo xterm-256color not found for /dev/console
That is despite 'xterm-256color' being one of those basic terminfo
files that are manually split off and into the terminfo-base package,
and placed under /etc/terminfo/. The reason is that systemd only looks
in /usr/share/terminfo (see their have_terminfo_file() in
src/basic/terminal-util.c).
Make sure that applications that only look in /usr/share/terminfo do
find the basic terminfo files by packaging the symlinks along with the
pointed-to files.
Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
---
meta/recipes-core/ncurses/ncurses.inc | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc
index ec265e63f2..8fff9a226f 100644
--- a/meta/recipes-core/ncurses/ncurses.inc
+++ b/meta/recipes-core/ncurses/ncurses.inc
@@ -161,6 +161,9 @@ _install_cfgs = "\
PKG_CONFIG_LIBDIR='${libdir}/pkgconfig' \
"
+TERMINFO_BASE = "alacritty ansi console dumb linux rxvt screen screen-256color sun \
+ tmux tmux-256color vt52 vt100 vt102 vt200 vt220 xterm-color xterm-xfree86 xterm-256color"
+
do_install() {
# Order of installation is important; widec installs a 'curses.h'
# header with more definitions and must be installed last hence.
@@ -182,7 +185,7 @@ do_install() {
# include some basic terminfo files
# stolen ;) from gentoo and modified a bit
- for x in alacritty ansi console dumb linux rxvt screen screen-256color sun tmux tmux-256color vt52 vt100 vt102 vt200 vt220 xterm-color xterm-xfree86 xterm-256color
+ for x in ${TERMINFO_BASE}
do
local termfile="$(find "${D}${datadir}/terminfo/" -name "${x}" 2>/dev/null)"
local basedir="$(basename $(dirname "${termfile}"))"
@@ -309,6 +312,7 @@ FILES:${PN}-terminfo = "\
FILES:${PN}-terminfo-base = "\
${sysconfdir}/terminfo \
+ ${@' '.join(map(lambda x: '${datadir}/terminfo/'+x[0]+'/'+x, '${TERMINFO_BASE}'.split()))} \
"
RSUGGESTS:${PN}-libtinfo = "${PN}-terminfo"
--
2.55.0
next reply other threads:[~2026-07-23 7:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-23 7:40 Rasmus Villemoes [this message]
2026-07-23 7:40 ` [PATCH 2/2] ncurses: stop moving terminfo files from /usr/share to /etc Rasmus Villemoes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260723074054.2125126-1-ravi@prevas.dk \
--to=ravi@prevas.dk \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox