bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tic doesn't create terminfo files on FreeBSD


From: Thomas Dickey
Subject: Re: tic doesn't create terminfo files on FreeBSD
Date: Sat, 4 Aug 2018 20:18:45 -0400
User-agent: Mutt/1.5.23 (2014-03-12)

On Sat, Aug 04, 2018 at 07:49:09PM -0400, Thomas Dickey wrote:
> On Sun, Jul 29, 2018 at 06:50:54PM -0700, Yuri wrote:
> > On 7/29/18 6:08 PM, Thomas Dickey wrote:
> > >In either case, it wouldn't make directories for this part:
> > >
> > >   /usr/ports/x11/kitty/work-py36/stage/usr/local/lib/kitty
> > 
> > 
> > The directory exists, the problem is that it stays empty after tic runs.
> 
> I took another look today, and see that the port's executables do what
> you're describing, but when I built from my source-tree (using the "same"
> options), it works as expected.
> 
> So I'm starting to look & see what's amiss with the port.

hmm - no (I don't see that - was reading the wrong listing).  It should
create a "terminfo.db" file, if you have permissions to write there.

I was looking at the results running from the build-tree
with different "TIC" assignments commented out in this ad hoc script:

        #!/bin/sh -x
        unset TERMINFO
        unset TERMINFO_DIRS
        TIC=./tic
        TIC=/usr/local/bin/tic
        DST=/tmp/FOO
        rm -rf $DST*
        mkdir $DST
        $TIC -o $DST -D
        #$TIC -o $DST -x ../misc/terminfo.src
        $TIC -o $DST -vv vt100.ti
        #TERMINFO=$DST shlib ./infocmp bt100
        ls -l $DST*

where "vt100.ti" has a renamed "bt100" entry (so that I could be certain
that infocmp found the right one).  I'd noticed the last line (an empty
directory), and momentarily forgot the clarifying detail.  Uncommenting
the line with infocmp makes it clearer, since that tells where it gets
the data:

        #       Reconstructed via infocmp from file: /tmp/FOO.db

However, reading the earlier mail: the order of "-o" and "-D" matters,
because tic exits after processing "-D".

If you had written

        tic -o 
/usr/ports/x11/kitty/work-py36/stage/usr/local/lib/kitty/terminfo -D 

then tic should show

        /usr/ports/x11/kitty/work-py36/stage/usr/local/lib/kitty/terminfo.db

given that

        /usr/ports/x11/kitty/work-py36/stage/usr/local/lib/kitty

exists and you can write to that directory.

-- 
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]