pkgsrc-Users archive

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

Re: cmake needs -ltinfo on Linux



On Sat, Jun 13, 2020 at 09:13:23PM +0000, adr wrote:
> Let me see if I can put this mess together.
> 
> Gentoo, system split ncurses.
> 
> If CURSES_DEFAULT is set to ncurses, it will include
> devel/ncurses/buildlink3.mk
> This is not desirable because we have already ncurses.

This is nonsense, sorry. builtin.mk of ncurses and ncursesw will
work ok.

After playing with other packages with this issue and taking into
account the overcomplicated way cmake test curses, and the chaos
added by the patches I really advice to add something like this to
the Makefile.

if exists(/usr/lib/libtinfo.so)
LDFLAGS+=              -ltinfo
.endif

Of course someone experienced in cmake could rewrite the package with a
more OS agnostic approach.

It's the first time I'm using pkgsrc on linux, and now I value its
other unix systems support. Gentoo without systemd is a good
conbination when you can't run bsd. I could install cmake from
portage, but I'm trying to use the minimum native applications,
while avoiding to instal from pkgsrc what is already in the system.

Regards,
adr.


Home | Main Index | Thread Index | Old Index