On Sun, 17 May 2009 09:44:19 +0300, Nikos Chantziaras wrote:

> Does anyone think that a mechanism of applying patches to a package 
> without the need to modify the ebuild of that package would be a useful 
> feature?  There are cases of useful patches that are not accepted by
> the maintainers of the ebuild (because they have not been accepted
> upstream or other reasons), forcing users to copy ebuilds in their
> overlay and modifying the ebuild there.  This turns out to be a hassle
> every time the package receives an update.

I think you can redefine ebuild functions in /etc/portage/env/cat/pkg, so
you could out a custom src_unpack() in there. It should work if the ebuild
has no src_unoack, so you could do something like

src_unpack() {
        unpack ${A}
        epatch mypatch
}

I don't know how this would work with an existing src_unpack in the
ebuild, if you copied the existing function and added your patch.


-- 
Neil Bothwick

i *DId* rEaD tHE DoCS; ThaT'S WHy I'm conFuSeD!

Attachment: signature.asc
Description: PGP signature

Reply via email to