Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to get overlaid ebuilds to use custom patches
Date: Sun, 13 Aug 2006 18:53:28
Message-Id: 7573e9640608131147haa0d68j25f631442120a3e5@mail.gmail.com
1 On 8/13/06, reader@×××××××.com <reader@×××××××.com> wrote:
2 > The Overlay how seems to be saying one just needs to put any patches
3 > in ../portage/subname/pkg/files
4 >
5 > To get ebuild to use them. That appears not to happen for me.
6
7 You also need to modify your new .ebuild. In the current samba
8 ebuilds, you will find a src_unpack() function, and a couple of lines
9 that look like this:
10
11 export EPATCH_SUFFIX="patch"
12 epatch ${PATCHDIR}/general
13 if use oav ; then
14 ...
15 fi
16
17 So after the "fi" line, add a new line to tell portage to apply your
18 patch. Something like:
19
20 epatch ${PATCHDIR}/mypatch
21
22 Your patch will need a ".patch" extension, and you will need to re-run
23 the ebuild digest command again after modifying it.
24
25 -Richard
26 --
27 gentoo-user@g.o mailing list