Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Tue, 01 Dec 2015 14:23:00
Message-Id: 1448979690.324c60a90afb8c34ba05b5b4f5814ce72e835c48.ulm@gentoo
1 commit: 324c60a90afb8c34ba05b5b4f5814ce72e835c48
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 29 12:35:08 2015 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 1 14:21:30 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=324c60a9
7
8 eutils.eclass: Disable epatch_user in EAPI 6.
9
10 EAPI 6 has eapply_user which should be used instead.
11
12 eclass/eutils.eclass | 14 ++++++++------
13 1 file changed, 8 insertions(+), 6 deletions(-)
14
15 diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
16 index 6457501..5481b7f 100644
17 --- a/eclass/eutils.eclass
18 +++ b/eclass/eutils.eclass
19 @@ -350,12 +350,6 @@ EPATCH_FORCE="no"
20 # List of patches not to apply. Note this is only file names,
21 # and not the full path. Globs accepted.
22
23 -# @VARIABLE: EPATCH_USER_SOURCE
24 -# @DESCRIPTION:
25 -# Location for user patches, see the epatch_user function.
26 -# Should be set by the user. Don't set this in ebuilds.
27 -: ${EPATCH_USER_SOURCE:=${PORTAGE_CONFIGROOT%/}/etc/portage/patches}
28 -
29 # @FUNCTION: epatch
30 # @USAGE: [options] [patches] [dirs of patches]
31 # @DESCRIPTION:
32 @@ -669,6 +663,13 @@ epatch() {
33 : # everything worked
34 }
35
36 +if has "${EAPI:-0}" 0 1 2 3 4 5; then
37 +# @VARIABLE: EPATCH_USER_SOURCE
38 +# @DESCRIPTION:
39 +# Location for user patches, see the epatch_user function.
40 +# Should be set by the user. Don't set this in ebuilds.
41 +: ${EPATCH_USER_SOURCE:=${PORTAGE_CONFIGROOT%/}/etc/portage/patches}
42 +
43 # @FUNCTION: epatch_user
44 # @USAGE:
45 # @DESCRIPTION:
46 @@ -731,6 +732,7 @@ epatch_user() {
47 epatch_user_death_notice() {
48 ewarn "!!! User patches were applied to this build!"
49 }
50 +fi
51
52 # @FUNCTION: emktemp
53 # @USAGE: [temp dir]