Gentoo Archives: gentoo-user

From: "Bo Ørsted Andresen" <bo.andresen@××××.dk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Hooks for Portage 2.1?
Date: Sat, 30 Sep 2006 17:58:23
Message-Id: 200609301952.50460.bo.andresen@zlin.dk
In Reply to: Re: [gentoo-user] Hooks for Portage 2.1? by ps@twin.jikos.cz
1 On Saturday 30 September 2006 19:32, ps@××××××××××.cz wrote:
2 > > I don't think the hooks are useful for that.
3 >
4 > i have been told to use these two:
5 > post_src_unpack/pre_src_compile
6 > (but dont know how).
7 >
8 > > Why not just copy the ebuild to
9 > > an overlay and apply the patch in the ebuild in the overlay?
10 >
11 > basically because its tedious to make new ebuild for each new version for
12 > a given package when i have some particular patch i always want to apply.
13
14 Hmm... Well, if you want to apply foo.patch on category/name all you really
15 need to do should be something like:
16
17 # mkdir -p /etc/portage/env/category && echo "post_src_unpack() {
18 epatch /absolute/path/to/foo.patch
19 }" >> /etc/portage/env/category/name
20
21 --
22 Bo Andresen

Replies

Subject Author
Re: [gentoo-user] Hooks for Portage 2.1? ps@××××××××××.cz