1 |
On 11/17/2015 02:20 PM, Michał Górny wrote: |
2 |
> --- |
3 |
> bin/phase-functions.sh | 6 ++++++ |
4 |
> bin/phase-helpers.sh | 1 + |
5 |
> 2 files changed, 7 insertions(+) |
6 |
> |
7 |
> diff --git a/bin/phase-functions.sh b/bin/phase-functions.sh |
8 |
> index 7bf4d63..abbc602 100644 |
9 |
> --- a/bin/phase-functions.sh |
10 |
> +++ b/bin/phase-functions.sh |
11 |
> @@ -374,6 +374,12 @@ __dyn_prepare() { |
12 |
> __ebuild_phase pre_src_prepare |
13 |
> __vecho ">>> Preparing source in $PWD ..." |
14 |
> __ebuild_phase src_prepare |
15 |
> + |
16 |
> + # keep path in eapply_user in sync! |
17 |
> + if [[ ! -f ${T}/.portage_user_patches_applied ]]; then |
18 |
> + die "eapply_user (or default) must be called in src_prepare()!" |
19 |
> + fi |
20 |
> + |
21 |
> >> "$PORTAGE_BUILDDIR/.prepared" || \ |
22 |
> die "Failed to create $PORTAGE_BUILDDIR/.prepared" |
23 |
> __vecho ">>> Source prepared." |
24 |
> diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh |
25 |
> index 6c45c25..da9aa7c 100644 |
26 |
> --- a/bin/phase-helpers.sh |
27 |
> +++ b/bin/phase-helpers.sh |
28 |
> @@ -1079,6 +1079,7 @@ fi |
29 |
> |
30 |
> if ___eapi_has_eapply_user; then |
31 |
> eapply_user() { |
32 |
> + # keep path in __dyn_prepare in sync! |
33 |
> local tagfile=${T}/.portage_user_patches_applied |
34 |
> [[ -f ${tagfile} ]] && return |
35 |
> >> "${tagfile}" |
36 |
> |
37 |
|
38 |
Looks good. I guess we better get this in a release soonish, before we |
39 |
have a bunch of EAPI 6 ebuilds that forget to call eapply_user. |
40 |
-- |
41 |
Thanks, |
42 |
Zac |