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
1 Hi,
2
3 Please consider promoting the use of tinfo flag in packages that
4 depend on sys-libs/ncurses so that they would synchronize properly
5 with sys-libs/ncurses[tinfo].
6
7 It could be as simple as:
8
9 IUSE="tinfo"
10
11 RDEPEND="sys-libs/ncurses[tinfo=]"
12
13 pkg_setup() {
14 use tinfo && export LDFLAGS="-ltinfo ${LDFLAGS}" LIBS="-ltinfo ${LIBS}"
15 }
16
17 The last line can be changed/enhanced, depending on the package.
18
19 It helps keep binaries consistent even if sys-libs/ncurses[-tinfo]
20 gets recompiled to sys-libs/ncurses[tinfo], because they are forced to
21 be recompiled. This is better than hard-coded dynamic workarounds.
22
23 --
24 konsolebox

Replies

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