Gentoo Archives: gentoo-dev

From: konsolebox <konsolebox@×××××.com>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] tinfo flag
Date: Mon, 05 Dec 2016 11:14:39
Message-Id: CAJnmqwaR_ovtwrD28zbXSNA63gV6mkw7gd+BBp5QcEa8Zw+z2Q@mail.gmail.com
Hi,

Please consider promoting the use of tinfo flag in packages that
depend on sys-libs/ncurses so that they would synchronize properly
with sys-libs/ncurses[tinfo].

It could be as simple as:

IUSE="tinfo"

RDEPEND="sys-libs/ncurses[tinfo=]"

pkg_setup() {
    use tinfo && export LDFLAGS="-ltinfo ${LDFLAGS}" LIBS="-ltinfo ${LIBS}"
}

The last line can be changed/enhanced, depending on the package.

It helps keep binaries consistent even if sys-libs/ncurses[-tinfo]
gets recompiled to sys-libs/ncurses[tinfo], because they are forced to
be recompiled.  This is better than hard-coded dynamic workarounds.

-- 
konsolebox

Replies

Subject Author
Re: [gentoo-dev] tinfo flag Ian Stakenvicius <axs@g.o>
Re: [gentoo-dev] tinfo flag Mike Gilbert <floppym@g.o>