Gentoo Archives: gentoo-dev

From: Thomas de Grenier de Latour <tom.gl@××××.fr>
To: gentoo-dev@l.g.o
Subject: Re: User patches (Was: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-apps/iproute2: ChangeLog iproute2-2.6.24.20080108.ebuild)
Date: Mon, 31 Mar 2008 19:27:13
Message-Id: 20080331212629.3e128443@eusebe
In Reply to: User patches (Was: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-apps/iproute2: ChangeLog iproute2-2.6.24.20080108.ebuild) by Vlastimil Babka
1 On 2008/03/31, Vlastimil Babka <caster@g.o> wrote:
2
3 > I think that maybe we should first introduce new patching phase and
4 > then make this user patch really usable feature. For example if you
5 > want to patch something that's input to running autotools, doing it
6 > in post_src_unpack is too late...
7 >
8
9 Not really. I'm using Ed Catmur's bashrc, and his post_src_unpack hook
10 for /etc/portage/patches/ can detect when running autotools is needed:
11 http://sources.catmur.co.uk/viewvc/svn/gentoo/phase_hooks.d/post_src_unpack/portage-patches?view=co
12 http://catmur.co.uk/gentoo/
13
14 Sure, this detection (based on what files are modified) may not work
15 in all cases. And when it does, then autotools may fail too (basically
16 wherever an ebuild writer would have needed to do do more than just
17 "inherit autotools" before running "eautofoo"). But it's still pretty cool.
18
19 --
20 TGL.
21 --
22 gentoo-dev@l.g.o mailing list