Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] sys-devel/gettext and implicit vcs packages (cvs/git)
Date: Wed, 04 Aug 2010 19:14:49
Message-Id: 201008041514.48361.vapier@gentoo.org
1 the gettext package and its implicit vcs has been a problem for us for time
2 immemorial (one of the first documented instances is Bug 55607 dated Jun
3 2004). at the time, we really had no way of handling this cleanly. but with
4 USE deps now, i think we address this somewhat sanely.
5
6 background: the gettext package supports older versions of itself while
7 minimizing disk space by storing the deployable files in a vcs archive. this
8 is only used at runtime if you run `autopoint`, and that is only used during
9 development where the bundled gettext files in a package need to be recreated.
10 in the past, it only used cvs, but now it supports both cvs and git (which are
11 detected when gettext is emerged). in the past, we just forced the smallish
12 random packages that actually ran autotools to depend on cvs themselves.
13
14 what i'm proposing now is that we add a local USE flag (Nick proposed
15 "autopoint") to sys-devel/gettext. something like:
16 RDEPEND="autopoint? (
17 git? ( dev-vcs/git )
18 !git? ( cvs? ( dev-vcs/cvs ) )
19 !cvs? ( dev-vcs/git )
20 )"
21 idea is that we want to prefer git over cvs. now other packages can DEPEND on
22 sys-devel/gettext[autopoint]. perhaps even extend autotools.eclass with a
23 variable to indicate people are going to be using eautopoint ...
24
25 any counter proposals/etc... ?
26 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature