1 |
On 17 October 2014 23:37:16 BST, David W Noon <dwnoon@××××××××.com> wrote: |
2 |
> -----BEGIN PGP SIGNED MESSAGE----- |
3 |
> Hash: SHA1 |
4 |
> |
5 |
> On Fri, 17 Oct 2014 22:33:45 +0100, Neil Bothwick (neil@××××××××××.uk) |
6 |
> wrote about "Re: [gentoo-user] Re: XFCE weather plugin does not work" |
7 |
> (in <20141017223345.16c96ec8@××××××××××.uk>): |
8 |
> |
9 |
> > On Fri, 17 Oct 2014 21:13:52 +0000 (UTC), James wrote: |
10 |
> > |
11 |
> >> And last, can any patch that ends in .patch be applied to the |
12 |
> >> intended ebuild or does the gentoo ebuild auther have to put some |
13 |
> >> special code into an (EAPI-5) ebuild to facilitate user patches? |
14 |
> > |
15 |
> > AFAIR the ebuild simply has to call epatch_user() in src_unpack() |
16 |
> > and any matching patches in /etc/portage/patches are applied. |
17 |
> |
18 |
> The usual place is src_prepare(). |
19 |
> |
20 |
> I have prepared some patches from the Xfce repository with line |
21 |
> addressing to match the Gentoo sources tarball. I attach a tarball of |
22 |
> theses patches that can be untarred in /etc/portage/patches/. The |
23 |
> ebuild should have the following lines added: |
24 |
> |
25 |
> src_prepare() { |
26 |
> epatch_user |
27 |
> } |
28 |
> |
29 |
> Don't forget to redo the manifest for the ebuild. |
30 |
> - -- |
31 |
> Regards, |
32 |
> |
33 |
> Dave [RLU #314465] |
34 |
> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* |
35 |
> dwnoon@××××××××.com (David W Noon) |
36 |
> *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* |
37 |
> |
38 |
> -----BEGIN PGP SIGNATURE----- |
39 |
> Version: GnuPG v2 |
40 |
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ |
41 |
> |
42 |
> iEYEARECAAYFAlRBmhwACgkQRQ2Fs59Psv8YHgCghXa931NC2rJSa8394L2FvZGB |
43 |
> UIAAoIiiIpd7PktyaQE9Av/RxRYjnLE0 |
44 |
> =68v7 |
45 |
> -----END PGP SIGNATURE----- |
46 |
|
47 |
Yes, src_prepare, I was working from memory, although src_unpack usually works too. You don't need to modify the ebuilds in many cases. You can simply define src_prepare, or src_unpack, in /etc/portage/env for that ebuild. |
48 |
-- |
49 |
Sent from my Android phone with K-9 Mail. Please excuse my brevity. |