1 |
On 01/04/2012 07:47 AM, v_2e@×××.net wrote: |
2 |
> Hello! |
3 |
> I have noticed that with portage version changes its behaviour |
4 |
> regarding the automatic patch catching (from /etc/portage/patches, for |
5 |
> example) also changes. Some previous versions of portage did apply the |
6 |
> patches from that directory while the most recent one does not. |
7 |
> |
8 |
> I consider this auto-patching feature quite useful and would like to |
9 |
> use it, but currently I don't know how to do that. |
10 |
> And also, is portage supposed to pick the patches up automatically or |
11 |
> not in general? |
12 |
|
13 |
They are only picked up if the ebuild specifically calls epatch_user |
14 |
function. |
15 |
|
16 |
However, you can define this in your /etc/portage/bashrc to have |
17 |
appended to all ebuilds (who don't already define this function): |
18 |
|
19 |
post_src_prepare() { |
20 |
epatch_user |
21 |
} |
22 |
|
23 |
then it will call it after it does its normal patching... |
24 |
|
25 |
For example, I dropped a patch from BGO for xloadimage to make it build |
26 |
against new libtiff into |
27 |
/etc/portage/patches/media-gfx/xloadimage-4.1-r11 and emerge, I see this |
28 |
in emerge output: |
29 |
|
30 |
>>> Preparing source in |
31 |
/var/tmp/portage/media-gfx/xloadimage-4.1-r11/work/xloadimage.4.1 ... |
32 |
* Applying xloadimage-4.1-gentoo-r1.diff ... [ ok ] |
33 |
* Applying xloadimage-4.1-zio-shell-meta-char.diff ... [ ok ] |
34 |
* Applying xloadimage-4.1-endif.patch ... [ ok ] |
35 |
* Applying xloadimage-4.1-include-errno_h.patch ... [ ok ] |
36 |
* Applying xloadimage-gentoo.patch ... [ ok ] |
37 |
* Applying xloadimage-4.1-unaligned-access.patch ... [ ok ] |
38 |
* Applying xloadimage-4.1-ldflags_and_exit.patch ... [ ok ] |
39 |
* Applying xloadimage-4.1-libpng15.patch ... [ ok ] |
40 |
* Applying xloadimage-4.1-bracket.patch ... [ ok ] |
41 |
* Running eautoreconf in |
42 |
'/var/tmp/portage/media-gfx/xloadimage-4.1-r11/work/xloadimage.4.1' ... |
43 |
* Running aclocal ... [ ok ] |
44 |
* Running autoconf ... [ ok ] |
45 |
* Running autoheader ... [ ok ] |
46 |
>>> Source prepared. |
47 |
* Applying user patches from |
48 |
/etc/portage/patches//media-gfx/xloadimage-4.1-r11 ... |
49 |
* xloadimage-4.1-tiff.patch ... [ ok ] |
50 |
* Done with patching |
51 |
>>> Configuring source in |
52 |
/var/tmp/portage/media-gfx/xloadimage-4.1-r11/work/xloadimage.4.1 ... |