Gentoo Archives: gentoo-dev

From: Pete Gavin <pete@g.o>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] portage feature suggestion
Date: Sun, 15 Apr 2001 11:56:38
Message-Id: 20010415115638.B11453@cvs.gentoo.org
In Reply to: Re: [gentoo-dev] portage feature suggestion by Daniel Robbins
1 On Sun, Apr 15, 2001 at 11:46:41AM -0600, Daniel Robbins wrote:
2 > On Sun, Apr 15, 2001 at 11:11:06AM -0600, Pete Gavin wrote:
3 > > Daniel,
4 > >
5 > > I normally name my patches ${PF}-gentoo.diff, and I was thinking it
6 > > would be cool for ebuild to automatically check for a patch with this
7 > > name in the files directory and apply it in the src_unpack phase if it
8 > > exists. What do you think?
9 >
10 > Definitely possible. What options should "patch" use by default?
11 >
12
13 Well, I normally make 2 copies of the original source directory, ${S}
14 and ${S}.orig, then make my changes in ${S}. After I'm done, I do
15 diff -urP ${S}.orig ${S}
16 Then, in my ebuild, I do cd ${S} and then
17 patch -p1 < ${PF}-gentoo.diff
18
19 Pete