1 |
On Sun, 15 Apr 2012 01:35:40 -0700 |
2 |
Zac Medico <zmedico@g.o> wrote: |
3 |
|
4 |
> On 04/15/2012 01:16 AM, Ryan Hill wrote: |
5 |
> > Right now we have support in some packages for user patches - those being |
6 |
> > patches dropped into /etc/portage/patches/pkgname/ - which are automatically |
7 |
> > applied. Because this feature is implemented by epatch_user() in |
8 |
> > eutils.eclass, it is only available for ebuilds that inherit eutils and |
9 |
> > explicitly call epatch_user or inherit another eclass that calls it in an |
10 |
> > exported phase (eg. base). The end result is a very inconsistent experience, |
11 |
> > where user patches may or may not work not only on a package-by-package |
12 |
> > basis, but ebuild-by-ebuild. |
13 |
> > |
14 |
> > Is there any reason why this couldn't just be done in the package manager, |
15 |
> > making user patches available for all ebuilds without code changes? |
16 |
> |
17 |
> Funtoo has support for FEATURES=localpatch, which does the epatch_user |
18 |
> thing before src_prepare. I think it should really go after src_prepare, |
19 |
> in order to apply patches after those that src_prepare may apply |
20 |
> (avoiding possible conflicts). |
21 |
|
22 |
I agree. |
23 |
|
24 |
> The reason that Funtoo's FEATURES=localpatch applies patches before |
25 |
> src_prepare is that it's common for eautoreconf to be called inside |
26 |
> src_prepare, and applying patches after src_prepare can create a need to |
27 |
> call eautoreconf a second time. |
28 |
|
29 |
Well that could waste a bit of time but is pretty much harmless, no? And the |
30 |
existing usages of epatch_user (other than autotools-utils) don't eautoreconf |
31 |
anyways, nor should they in case the package doesn't use autotools. |
32 |
|
33 |
|
34 |
-- |
35 |
fonts, gcc-porting |
36 |
toolchain, wxwidgets |
37 |
@ gentoo.org |