Package: libslang2
Version: 2.3.1a-2
Severity: important

In ncurses 6.1, an extended terminfo format has been introduced with
32-bit database entries.  It is automatically enabled if the tinfo
library is configured with --with-abi-version=6 and --enable-widec.
The Debian package currently does neither (see #230990 on the former),
but I would like to enable this new format soon.

The slang library, as of version 2.3.1a, is not compatible with these
new database entries, which causes applications to misbehave or even
fail to start.  This has been noticed in other distributions which have
enabled the new terminfo format:

https://bugs.archlinux.org/task/57300
https://bugzilla.opensuse.org/show_bug.cgi?id=1079543

My own experiments with Midnight Commander showed the following:

- with TERM=xterm-256color (the default in most terminal emulators these
  days), mc starts in black&white, and the arrow keys don't work.

- with TERM=screen-256color (used by many screen users), mc does not
  start at all:

,----
| $ TERM=screen-256color mc
| Unknown terminal: screen-256color
| Check the TERM environment variable.
| Also make sure that the terminal is defined in the terminfo database.
| Alternatively, set the TERMCAP environment variable to the desired
| termcap entry.
`----

To reproduce the problem, do one of the following:

- unpack the attached terminfo files, overwriting the ones on the system:
  # tar -C /lib -vxf terminfo.tar.gz

- build ncurses from the branch at
  https://salsa.debian.org/joachim-guest/ncurses/tree/wide-terminfo,
  e.g. with "dpkg-buildpackage -A", and install the resulting
  ncurses-base_6.1+20180210-1_all.deb.

In either case, reinstall ncurses-base from the Debian repository when
you're done to undo the changes.


It looks like upstream has addressed this problem in version pre2.3.2-19
("Added support for the new ncurses 32-bit terminfo database entries."),
I will look if I can extract a patch from their git repository.


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 4.15.4-nouveau (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libslang2 depends on:
ii  libc6  2.26-6

libslang2 recommends no packages.

libslang2 suggests no packages.

-- no debconf information

Attachment: terminfo.tar.gz
Description: application/gzip

Attachment: signature.asc
Description: PGP signature

Reply via email to