On Tue, 15 Jul 2008 04:14:18 +0200
Marius Mauch <[EMAIL PROTECTED]> wrote:

> As a result of Cardoes earlier mail we talked a bit about possible
> solutions in #gento-portage, and I suggested to let portage
> automatically inject the deps based on SRC_URI pattern matching.
> A mapping of extensions and their unpack deps would be kept in the
> tree (e.g. mapping '.tar.bz2' to '( app-arch/tar app-arch/bzip2 )'

At dev.gentoo.org/~genone/unpack.eclass is the draft for an eclass
to implement this feature. It doesn't modify DEPEND by itself, ebuild
have to call unpack_update_depend on their own for that, as automatic
updates are problematic when you have to take indirect and multiple
inheritance of eclasses into account. As automatic updates aren't
implemented there is also no need for a RESTRICT setting or similar,
and also no requirements on the order of SRC_URI/RESTRICT/inherit.

The eclass also contains it's own implementation of unpack (renamed to
unpack2) and src_unpack so the logic which tools/packages are used for
unpacking can be maintained in a single place instead of being
splitted between the package manager and the tree.

If someone wants to use it I can add it on the tree (after the normal
review process and being better tested), but I'll only be doing it
when there is an actual demand for it (no point in adding an eclass that
nobody uses).

It's still possible to come up with a package-manager-based solution in
the future, but for the moment the eclass should help with the
immideate problem (though the problem isn't exactly new).

Marius
-- 
gentoo-dev@lists.gentoo.org mailing list

Reply via email to