pkgsrc-Users archive

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

Re: nvi with split system ncurses



Hej,

Am 16.06.2020 um 00:05 schrieb Chavdar Ivanov <ci4ic4%gmail.com@localhost>:

On Mon, 15 Jun 2020 at 21:50, <oskar%fessel.org@localhost> wrote:

Hej,

Am 14.06.2020 um 02:02 schrieb adr <adr%SDF.ORG@localhost>:

Sorry for the noise. Something is messing with my mail ...<patch-patch-dist_configure.in>

is this anyhow related to the tmux build failure i am currently observing?

—schnipp—
checking event.h usability... yes
checking event.h presence... yes
checking for event.h... yes
checking for LIBTINFO... no
checking for LIBNCURSES... no
checking for LIBNCURSES... no
checking for setupterm in -ltinfo... no
checking for setupterm in -lncurses... no
checking for setupterm in -lcurses... no
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
configure: error: "curses not found"
*** Error code 1

Stop.
make[1]: stopped in /hurz/pkgsrc/misc/tmux
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/misc/tmux
—schnappp—

this happens with and without ncurses installed (on NetBSD 9.99.66).

On my 9.99.67 system (with CURSES_DEFAULT=ncursesw in mk.conf)
misc/tmux builds without problems.

With that setting, it compiles on my system too.  But not without, no matter what curses version is installed (and where).

configure is looking for setupterm() which i suppose should be in libterminfo and not in libcurses.

the sources for the tmux in wip are somehow not availible anymore, so checking with rc1 is not that easy…

Manual installation from GitHub also works ( git clone
https://github.com/tmux/tmux.git && cd tmux && sh autogen.sh &&
./configure && gmake ) also produces

$ /usr/local/bin/tmux -V
tmux next-3.2

(FWIW, tested on two different systems).

works for me too.  Although i have installed ncursesw from pkgsrc native configure selects ncurses:
dweezil# ldd tmux
tmux:
        -lutil.7 => /usr/lib/libutil.so.7
        -lc.12 => /usr/lib/libc.so.12
        -lncurses.6 => /usr/pkg/lib/libncurses.so.6
        -levent-2.1.7 => /usr/pkg/lib/libevent-2.1.so.7
        -lpthread.1 => /usr/lib/libpthread.so.1
        -lm.0 => /usr/lib/libm.so.0


tmux that ships with NetBSD uses indeed terminfo:
dweezil# ldd /usr/bin/tmux
/usr/bin/tmux:
        -levent.4 => /usr/lib/libevent.so.4
        -lc.12 => /usr/lib/libc.so.12
        -lterminfo.2 => /usr/lib/libterminfo.so.2
        -lutil.7 => /usr/lib/libutil.so.7
        -lm.0 => /usr/lib/libm.so.0

So, nobody is using tmux from pkgsrc on NetBSD without having set CURSES_DEFAULT or something else to that effect?
Or, to put it different: why does tmux from pkgsrc not find out about the other installed curses or defaults to libterminfo or just does the right thing (TM)?

the right thing being:
zappa# (pkg_delete ncurses ; pkg_delete ncursesw ; git clone https://github.com/tmux/tmux.git && cd tmux && sh autogen.sh && ./configure && make && ldd tmux)
tmux:
        -lutil.7 => /usr/lib/libutil.so.7
        -lc.12 => /usr/lib/libc.so.12
        -levent-2.1.7 => /usr/pkg/lib/libevent-2.1.so.7
        -lpthread.1 => /usr/lib/libpthread.so.1
        -lm.0 => /usr/lib/libm.so.0
        -lcurses.9 => /usr/lib/libcurses.so.9
        -lterminfo.2 => /usr/lib/libterminfo.so.2

Sorry about libevent from pkgsrc - i was unable to delete that without breaking things in production…

Cheers
Oskar

Attachment: signature.asc
Description: Message signed with OpenPGP



Home | Main Index | Thread Index | Old Index