Gentoo Archives: gentoo-dev

From: Doug Goldstein <cardoe@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: auto-detection of unpack dependencies
Date: Tue, 15 Jul 2008 15:09:22
Message-Id: 487CBD9F.4060300@gentoo.org
In Reply to: [gentoo-dev] RFC: auto-detection of unpack dependencies by Marius Mauch
1 Marius Mauch wrote:
2 > As a result of Cardoes earlier mail we talked a bit about possible
3 > solutions in #gento-portage, and I suggested to let portage
4 > automatically inject the deps based on SRC_URI pattern matching.
5 > A mapping of extensions and their unpack deps would be kept in the tree
6 > (e.g. mapping '.tar.bz2' to '( app-arch/tar app-arch/bzip2 )'
7 >
8 > Benefits:
9 > - simplified depstrings for most packages (I assume >90% of the tree)
10 > - easier maintenance if dependencies are changing, or additional
11 > implementations become supported (this could also be achieved with
12 > virtuals though)
13 > - potentially more accurate dependencies, as some common errors would
14 > be eliminated (e.g. proper treatment of use-conditionals, not adding
15 > unpack deps to RDEPEND)
16 > - long-term adds the possibility to remove bzip2, gzip and tar from
17 > @system
18 >
19 > Potential problems:
20 > - might cause trouble for some packages that use custom code for
21 > unpacking, or due to circular deps, this could simply be solved with a
22 > new RESTRICT value though.
23 > - automagic deps could be confusing to devs/users
24 > - not available for existing EAPIs (due to the mentioned problems)
25 > - slightly slower dep calculations due to the extra processing
26 > - possible match errors
27 >
28 > So, is this something ebuild maintainers would like in general, or does
29 > such a feature cause you nightmares?
30 >
31 > Marius
32 >
33 I'm in favor of this.
34 --
35 gentoo-dev@l.g.o mailing list