Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: ulm@g.o, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH] bzr.eclass: Restrict supported EAPIs to 5 and 7
Date: Sun, 15 Sep 2019 17:30:29
Message-Id: 20190915173002.337150-1-mgorny@gentoo.org
1 The eclass is currently used by exactly one ebuild which is at EAPI 5.
2 Let's restrict allowed EAPIs just to 5 and 7, to cover a reasonable
3 upgrade path for that ebuild while blocking proliferation of old EAPIs.
4
5 Signed-off-by: Michał Górny <mgorny@g.o>
6 ---
7 eclass/bzr.eclass | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
9
10 diff --git a/eclass/bzr.eclass b/eclass/bzr.eclass
11 index 598a0f87fe6d..87a7cd64e617 100644
12 --- a/eclass/bzr.eclass
13 +++ b/eclass/bzr.eclass
14 @@ -9,7 +9,7 @@
15 # Mark Lee <bzr-gentoo-overlay@×××××××××××××××.com>
16 # Ulrich Müller <ulm@g.o>
17 # Christian Faulhammer <fauli@g.o>
18 -# @SUPPORTED_EAPIS: 2 3 4 5 6 7
19 +# @SUPPORTED_EAPIS: 5 7
20 # @BLURB: generic fetching functions for the Bazaar VCS
21 # @DESCRIPTION:
22 # The bzr.eclass provides functions to fetch and unpack sources from
23 @@ -30,7 +30,7 @@ else
24 fi
25
26 case ${EAPI:-0} in
27 - 2|3|4|5|6) ;;
28 + 5) ;;
29 7) BDEPEND="${DEPEND}"; DEPEND="" ;;
30 *) die "${EBZR}: EAPI ${EAPI:-0} is not supported" ;;
31 esac
32 --
33 2.23.0

Replies