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 |