From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] [PATCH 1/2] eutils.eclass: Disable epatch_user in EAPI 6.
Date: Sun, 29 Nov 2015 14:29:56 +0100 [thread overview]
Message-ID: <22106.64980.551902.801551@a1i15.kph.uni-mainz.de> (raw)
In-Reply-To: <22106.64938.215501.17191@a1i15.kph.uni-mainz.de>
[-- Attachment #1: Type: text/plain, Size: 1380 bytes --]
Date: Sun, 29 Nov 2015 13:35:08 +0100
EAPI 6 has eapply_user which should be used instead.
---
eclass/eutils.eclass | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 6457501..5481b7f 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -350,12 +350,6 @@ EPATCH_FORCE="no"
# List of patches not to apply. Note this is only file names,
# and not the full path. Globs accepted.
-# @VARIABLE: EPATCH_USER_SOURCE
-# @DESCRIPTION:
-# Location for user patches, see the epatch_user function.
-# Should be set by the user. Don't set this in ebuilds.
-: ${EPATCH_USER_SOURCE:=${PORTAGE_CONFIGROOT%/}/etc/portage/patches}
-
# @FUNCTION: epatch
# @USAGE: [options] [patches] [dirs of patches]
# @DESCRIPTION:
@@ -669,6 +663,13 @@ epatch() {
: # everything worked
}
+if has "${EAPI:-0}" 0 1 2 3 4 5; then
+# @VARIABLE: EPATCH_USER_SOURCE
+# @DESCRIPTION:
+# Location for user patches, see the epatch_user function.
+# Should be set by the user. Don't set this in ebuilds.
+: ${EPATCH_USER_SOURCE:=${PORTAGE_CONFIGROOT%/}/etc/portage/patches}
+
# @FUNCTION: epatch_user
# @USAGE:
# @DESCRIPTION:
@@ -731,6 +732,7 @@ epatch_user() {
epatch_user_death_notice() {
ewarn "!!! User patches were applied to this build!"
}
+fi
# @FUNCTION: emktemp
# @USAGE: [temp dir]
--
2.6.3
[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]
next prev parent reply other threads:[~2015-11-29 13:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-29 13:29 [gentoo-dev] eutils.eclass: further cleanup for EAPI 6 Ulrich Mueller
2015-11-29 13:29 ` Ulrich Müller [this message]
2015-11-29 13:31 ` [gentoo-dev] [PATCH 2/2] eutils.eclass: Move all deprecated functions to the end Ulrich Müller
2015-11-29 16:48 ` [gentoo-dev] [PATCH] eutils.eclass: In EAPI conditionals, replace "has" by case statements Ulrich Mueller
2015-11-29 23:29 ` Davide Pesavento
2015-11-30 6:52 ` Ulrich Mueller
2015-11-30 9:47 ` Michał Górny
2015-11-30 17:33 ` Davide Pesavento
2015-12-01 13:50 ` [gentoo-dev] " Duncan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=22106.64980.551902.801551@a1i15.kph.uni-mainz.de \
--to=ulm@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox