On 17 October 2014 23:37:16 BST, David W Noon <[email protected]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Fri, 17 Oct 2014 22:33:45 +0100, Neil Bothwick ([email protected]) > wrote about "Re: [gentoo-user] Re: XFCE weather plugin does not work" > (in <[email protected]>): > > > On Fri, 17 Oct 2014 21:13:52 +0000 (UTC), James wrote: > > > >> And last, can any patch that ends in .patch be applied to the > >> intended ebuild or does the gentoo ebuild auther have to put some > >> special code into an (EAPI-5) ebuild to facilitate user patches? > > > > AFAIR the ebuild simply has to call epatch_user() in src_unpack() > > and any matching patches in /etc/portage/patches are applied. > > The usual place is src_prepare(). > > I have prepared some patches from the Xfce repository with line > addressing to match the Gentoo sources tarball. I attach a tarball of > theses patches that can be untarred in /etc/portage/patches/. The > ebuild should have the following lines added: > > src_prepare() { > epatch_user > } > > Don't forget to redo the manifest for the ebuild. > - -- > Regards, > > Dave [RLU #314465] > *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* > [email protected] (David W Noon) > *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2 > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iEYEARECAAYFAlRBmhwACgkQRQ2Fs59Psv8YHgCghXa931NC2rJSa8394L2FvZGB > UIAAoIiiIpd7PktyaQE9Av/RxRYjnLE0 > =68v7 > -----END PGP SIGNATURE-----
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. -- Sent from my Android phone with K-9 Mail. Please excuse my brevity.

