Lines 8-14
Link Here
|
8 |
The canonical way of applying patches in ebuilds is to |
8 |
The canonical way of applying patches in ebuilds is to |
9 |
use <c>epatch</c> (from <c>eutils.eclass</c>, which you must make sure |
9 |
use <c>epatch</c> (from <c>eutils.eclass</c>, which you must make sure |
10 |
to import!) inside <c>src_prepare</c>. This function automatically |
10 |
to import!) inside <c>src_prepare</c>. This function automatically |
11 |
handles <c>-p</c> levels, <c>gunzip</c> and so on as necessary. Also note that olds ebuild may still use src_unpack to apply patches. This is because those ebuilds are based in EAPI="1". You are advised to use EAPI="2" and apply your patches in src_prepare function instead. |
11 |
handles <c>-p</c> levels, <c>gunzip</c> and so on as necessary. Also note |
|
|
12 |
that older ebuilds may still use <c>src_unpack</c> to apply patches. This is because |
13 |
those ebuilds are based in EAPI="1". You are advised to use EAPI="2" and |
14 |
apply your patches in <c>src_prepare</c> function instead. |
12 |
</p> |
15 |
</p> |
13 |
|
16 |
|
14 |
<p> |
17 |
<p> |
Lines 87-93
manually, or mirror the file.
Link Here
|
87 |
<p> |
90 |
<p> |
88 |
epatch can also apply multiple patches (which can be selectively based |
91 |
epatch can also apply multiple patches (which can be selectively based |
89 |
upon arch) from a single directory. This can be useful if upstream |
92 |
upon arch) from a single directory. This can be useful if upstream |
90 |
have releases that need more patches. |
93 |
has releases that need more patches. |
91 |
</p> |
94 |
</p> |
92 |
|
95 |
|
93 |
<p> |
96 |
<p> |
Lines 145-152
Variables which may be defined include:
Link Here
|
145 |
<p> |
148 |
<p> |
146 |
Bulk patches should be named in the form |
149 |
Bulk patches should be named in the form |
147 |
<c>??_${ARCH}_foo.${EPATCH_SUFFIX}</c>. If they are |
150 |
<c>??_${ARCH}_foo.${EPATCH_SUFFIX}</c>. If they are |
148 |
not, <c>EPATCH_FORCE="yes"</c> must be set. To apply a patch on <c>all</c> |
151 |
not, <c>EPATCH_FORCE="yes"</c> must be set. To apply a patch on all |
149 |
archs, use all for the <c>${ARCH}</c> part. |
152 |
archs, use <c>all</c> for the <c>${ARCH}</c> part. |
150 |
</p> |
153 |
</p> |
151 |
|
154 |
|
152 |
</body> |
155 |
</body> |