Gentoo Archives: gentoo-user

From: Holly Bostick <motub@××××××.nl>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to apply a patch to an ebuild?
Date: Thu, 29 Sep 2005 05:52:27
Message-Id: 433B8003.6050407@planet.nl
In Reply to: [gentoo-user] How to apply a patch to an ebuild? by Roy Wright
1 Roy Wright schreef:
2 > Howdy,
3 >
4 > With Holly's praise of fvwm-crystal I thought I'd give it a try. But
5 > then I hit bug 89594 with aumix. The sound team provided a patch,
6 > aumix-2.8-autoconf.patch, which will create the two missing config
7 > files (they didn't fix the ebuild because it works on their systems).
8 > Now I'm trying to figure out what is the proper way to use this
9 > patch? Any pointers?
10 >
11 > I'm guessing I need to dup the ebuild in my local portage, create a
12 > new md5 digest, then emerge aumix.
13 >
14 > TIA, Roy
15
16 That's almost it--
17
18 1) copy the ebuild and /files folder to your overlay
19 (/usr/local/portage/media-sound/aumix/, assuming that your
20 PORTDIR_OVERLAY is /usr/local/portage);
21
22 2) copy the patch to the /files folder in the overlay folder with the
23 other aumix patches;
24
25 3) edit the following section of the overlay ebuild copy:
26
27 src_unpack() {
28 unpack ${A}
29 cd ${S}
30 epatch ${FILESDIR}/${P}-nohome.patch
31 epatch ${FILESDIR}/${P}-close-dialogs.patch
32 epatch ${FILESDIR}/${P}-save_load.patch
33 epatch ${FILESDIR}/${P}-nls.patch
34
35 to
36
37 src_unpack() {
38 unpack ${A}
39 cd ${S}
40 epatch ${FILESDIR}/${P}-nohome.patch
41 epatch ${FILESDIR}/${P}-close-dialogs.patch
42 epatch ${FILESDIR}/${P}-save_load.patch
43 epatch ${FILESDIR}/${P}-nls.patch
44 ==> epatch ${FILESDIR}/${P}-autoconf.patch
45
46 Save (of course), redigest (ebuild
47 /usr/local/portage/media-sound/aumix/aumix-2.8-r2.ebuild digest), emerge.
48
49 Hope this helps,
50 Holly
51 --
52 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] How to apply a patch to an ebuild? Roy Wright <royw@×××××.com>