Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#509919: ncurses-base: the tabset directory in compiled terminal descriptions is incorrect

43 views
Skip to first unread message

Thomas Dickey

unread,
Dec 27, 2008, 1:30:14 PM12/27/08
to
Package: ncurses-base
Version: 5.7+20081213-1
Severity: normal

Reviewing Ubuntu #200773, which reports this problem,
I checked my Debian/testing and see that infocmp vt220 shows

if=/etc/tabset/vt100,

That directory does not exist.

dpkg -L ncurses-base shows

/usr/share/tabset
/usr/share/tabset/stdcrt
/usr/share/tabset/vt300
/usr/share/tabset/std
/usr/share/tabset/vt100

To see the problem, the original bug report does

reset vt220

-- System Information:
Debian Release: 5.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US)
Shell: /bin/sh linked to /bin/bash

Versions of packages ncurses-base depends on:
ii libncurses5 5.7+20081213-1 shared libraries for terminal hand

ncurses-base recommends no packages.

ncurses-base suggests no packages.

-- no debconf information

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Sven Joachim

unread,
Aug 30, 2009, 10:30:09 AM8/30/09
to
On 2008-12-27 19:15 +0100, Thomas Dickey wrote:

> Package: ncurses-base
> Version: 5.7+20081213-1
> Severity: normal
>
> Reviewing Ubuntu #200773, which reports this problem,
> I checked my Debian/testing and see that infocmp vt220 shows
>
> if=/etc/tabset/vt100,
>
> That directory does not exist.

True. I haven't analyzed all the details yet, but the problem appears
to be that ncurses is configured with
"--with-default-terminfo-dir=/etc/terminfo", and your misc/gen_edit.sh
script changes the location of the tabset directory to /etc/tabset then.

Any ideas?

Cheers,
Sven

Thomas Dickey

unread,
Aug 30, 2009, 10:40:06 AM8/30/09
to
On Sun, 30 Aug 2009, Sven Joachim wrote:

> On 2008-12-27 19:15 +0100, Thomas Dickey wrote:
>
>> Package: ncurses-base
>> Version: 5.7+20081213-1
>> Severity: normal
>>
>> Reviewing Ubuntu #200773, which reports this problem,
>> I checked my Debian/testing and see that infocmp vt220 shows
>>
>> if=/etc/tabset/vt100,
>>
>> That directory does not exist.
>
> True. I haven't analyzed all the details yet, but the problem appears
> to be that ncurses is configured with
> "--with-default-terminfo-dir=/etc/terminfo", and your misc/gen_edit.sh
> script changes the location of the tabset directory to /etc/tabset then.
>
> Any ideas?

I could add another configure-script tweak to make the location of tabset
explicit.

Normally tabset's under the same directory root as terminfo; however it
seems that Debian's providing for a mini-terminfo database.

(The "linux" terminal description doesn't use this capability, so it's not
that noticeable).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

Sven Joachim

unread,
Aug 30, 2009, 11:00:10 AM8/30/09
to
On 2009-08-30 16:24 +0200, Thomas Dickey wrote:

> On Sun, 30 Aug 2009, Sven Joachim wrote:
>
>> On 2008-12-27 19:15 +0100, Thomas Dickey wrote:
>>
>>> Package: ncurses-base
>>> Version: 5.7+20081213-1
>>> Severity: normal
>>>
>>> Reviewing Ubuntu #200773, which reports this problem,
>>> I checked my Debian/testing and see that infocmp vt220 shows
>>>
>>> if=/etc/tabset/vt100,
>>>
>>> That directory does not exist.
>>
>> True. I haven't analyzed all the details yet, but the problem appears
>> to be that ncurses is configured with
>> "--with-default-terminfo-dir=/etc/terminfo", and your misc/gen_edit.sh
>> script changes the location of the tabset directory to /etc/tabset then.
>>
>> Any ideas?
>
> I could add another configure-script tweak to make the location of
> tabset explicit.

That would be appreciated.

> Normally tabset's under the same directory root as terminfo; however
> it seems that Debian's providing for a mini-terminfo database.

The bulk of the terminfo files are in the ncurses-term package, all
under /usr/share/terminfo; ncurses-base only provides the most common
ones, files under /lib/terminfo and symlinks to them under
/usr/share/terminfo. The /etc/terminfo dir is reserved for local
terminfo descriptions.

Sven

Thomas Dickey

unread,
Aug 30, 2009, 11:20:05 AM8/30/09
to
On Sun, 30 Aug 2009, Sven Joachim wrote:

> On 2009-08-30 16:24 +0200, Thomas Dickey wrote:
>
>> On Sun, 30 Aug 2009, Sven Joachim wrote:
>>
>>> On 2008-12-27 19:15 +0100, Thomas Dickey wrote:
>>>
>>>> Package: ncurses-base
>>>> Version: 5.7+20081213-1
>>>> Severity: normal
>>>>
>>>> Reviewing Ubuntu #200773, which reports this problem,
>>>> I checked my Debian/testing and see that infocmp vt220 shows
>>>>
>>>> if=/etc/tabset/vt100,
>>>>
>>>> That directory does not exist.
>>>
>>> True. I haven't analyzed all the details yet, but the problem appears
>>> to be that ncurses is configured with
>>> "--with-default-terminfo-dir=/etc/terminfo", and your misc/gen_edit.sh
>>> script changes the location of the tabset directory to /etc/tabset then.
>>>
>>> Any ideas?
>>
>> I could add another configure-script tweak to make the location of
>> tabset explicit.
>
> That would be appreciated.

I just made a note (probably will resolve next week's patch).

>
>> Normally tabset's under the same directory root as terminfo; however
>> it seems that Debian's providing for a mini-terminfo database.
>
> The bulk of the terminfo files are in the ncurses-term package, all
> under /usr/share/terminfo; ncurses-base only provides the most common
> ones, files under /lib/terminfo and symlinks to them under
> /usr/share/terminfo. The /etc/terminfo dir is reserved for local
> terminfo descriptions.
>
> Sven
>

--

--

Sven Joachim

unread,
Aug 30, 2009, 2:20:07 PM8/30/09
to
On 2009-08-30 16:24 +0200, Thomas Dickey wrote:

> On Sun, 30 Aug 2009, Sven Joachim wrote:
>
>> On 2008-12-27 19:15 +0100, Thomas Dickey wrote:
>>
>>> Package: ncurses-base
>>> Version: 5.7+20081213-1
>>> Severity: normal
>>>
>>> Reviewing Ubuntu #200773, which reports this problem,
>>> I checked my Debian/testing and see that infocmp vt220 shows
>>>
>>> if=/etc/tabset/vt100,
>>>
>>> That directory does not exist.
>>
>> True. I haven't analyzed all the details yet, but the problem appears
>> to be that ncurses is configured with
>> "--with-default-terminfo-dir=/etc/terminfo", and your misc/gen_edit.sh
>> script changes the location of the tabset directory to /etc/tabset then.
>>
>> Any ideas?
>
> I could add another configure-script tweak to make the location of
> tabset explicit.

It seems this is not necessary after all. :-) We can configure the
Debian package with "--with-default-terminfo-dir=/usr/share/terminfo"
instead. Since we're also configuring with

--with-terminfo-dirs="/etc/terminfo:/lib/terminfo:/usr/share/terminfo"

, this does not affect the directory search order at runtime,
/etc/terminfo still is looked at before the other directories.

Sven

Thomas Dickey

unread,
Aug 30, 2009, 2:30:19 PM8/30/09
to
On Sun, 30 Aug 2009, Sven Joachim wrote:

> On 2009-08-30 16:24 +0200, Thomas Dickey wrote:
>> I could add another configure-script tweak to make the location of
>> tabset explicit.
>
> It seems this is not necessary after all. :-) We can configure the
> Debian package with "--with-default-terminfo-dir=/usr/share/terminfo"
> instead. Since we're also configuring with
>
> --with-terminfo-dirs="/etc/terminfo:/lib/terminfo:/usr/share/terminfo"
>
> , this does not affect the directory search order at runtime,
> /etc/terminfo still is looked at before the other directories.

that sounds good.

--

Sven Joachim

unread,
Aug 31, 2009, 12:50:07 PM8/31/09
to
tags 509919 + patch
thanks

On 2009-08-30 20:01 +0200, Sven Joachim wrote:

> It seems this is not necessary after all. :-) We can configure the
> Debian package with "--with-default-terminfo-dir=/usr/share/terminfo"
> instead. Since we're also configuring with
>
> --with-terminfo-dirs="/etc/terminfo:/lib/terminfo:/usr/share/terminfo"
>
> , this does not affect the directory search order at runtime,
> /etc/terminfo still is looked at before the other directories.

For the reference, here is the patch to debian/rules:

--8<---------------cut here---------------start------------->8---
diff --git a/debian/rules b/debian/rules
index e7712a6..191b646 100755
--- a/debian/rules
+++ b/debian/rules
@@ -99,7 +99,7 @@ CONFARGS = --prefix=/usr \
--with-chtype='long' \
--with-mmask-t='long' \
--disable-termcap \
- --with-default-terminfo-dir=/etc/terminfo \
+ --with-default-terminfo-dir=/usr/share/terminfo \
--with-terminfo-dirs="/etc/terminfo:/lib/terminfo:/usr/share/terminfo" \
--with-ticlib

@@ -301,9 +301,6 @@ endif
$(MAKE) -C $(objdir) install.libs
$(MAKE) -C $(wobjdir) install.libs

- # Move terminfo files to the right place.
- mv $(tempdir)/etc/terminfo $(tempdir)/usr/share/terminfo
-
# Remove blacklisted terminal types.
cd $(tempdir)/usr/share/terminfo && rm -f $(badterminfo)

--8<---------------cut here---------------end--------------->8---

0 new messages