Control: reassign -1 di-utils-terminfo
Control: tags -1 + patch

On 2023-02-17 09:29 +0100, Benno Schulenberg wrote:

>> Philip Hands <p...@hands.com> (2022-12-15):
>>> Perhaps the presence of the termcap file is irrelevant, or could it be
>>> that nano used to be able to make use of that, and more recently only
>>> supports terminfo?
>
> This is the explanation, I think.  Nano removed support for Slang in
> version 5.5.  The nano-udeb (5.4) that is in Bullseye was still linked
> against Slang, which has its own ideas about what which terminals do.
>
> The nano-udeb (7.2) that is in Bookworm links against ncurses, and
> ncurses wants TERM to be set to something valid -- something for
> which a terminfo file is available.

Indeed.  The error message mentioned in Holger's initial report comes
from the ncurses initscr() function which nano (and other curses
applications) calls early.  If no terminfo entry for $TERM can be found,
initscr() exits the program.

I have attached the obvious patch.

Cheers,
       Sven

From 949bd770d7fd0d80ba0457f61c03b18d352b08dd Mon Sep 17 00:00:00 2001
From: Sven Joachim <svenj...@gmx.de>
Date: Sat, 18 Feb 2023 09:09:31 +0100
Subject: [PATCH] di-utils-terminfo: Include xterm terminfo entry

Closes: #1026027
---
 debian/rules | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 703d210..50ab30c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,14 +17,14 @@ export DEB_CFLAGS_MAINT_APPEND := -Wall -W -Os -fomit-frame-pointer
 CFLAGS := $(shell dpkg-buildflags --get CPPFLAGS; dpkg-buildflags --get CFLAGS)
 LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)

-TERMNAMES = a/ansi d/dumb s/screen
+TERMNAMES = a/ansi d/dumb s/screen x/xterm

 ifeq ($(DEB_HOST_ARCH_OS),linux)
 TERMNAMES += l/linux
 endif

 ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
-TERMNAMES += c/cons25 x/xterm
+TERMNAMES += c/cons25
 endif

 ifeq ($(DEB_HOST_ARCH_OS),hurd)
--
2.39.2

Reply via email to