Gentoo Archives: gentoo-dev

From: Brian Evans <grknight@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH 1/2] eclass: libtool - Mark compatible EAPIs and introduce BDEPEND
Date: Fri, 07 Sep 2018 13:47:59
Message-Id: 20180907134701.6812-2-grknight@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/2] Update libtool and autotools with EAPI7 dependencies by Brian Evans
1 The eltpatch command is run on the build host.
2 As such, it needs to be in BDEPEND for EAPI 7.
3
4 Also taking this opportunity to list compatible EAPIs to consider
5 future adjustments.
6 ---
7 eclass/libtool.eclass | 9 +++++++--
8 1 file changed, 7 insertions(+), 2 deletions(-)
9
10 diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass
11 index 2e0f608d342..942bf34aa27 100644
12 --- a/eclass/libtool.eclass
13 +++ b/eclass/libtool.eclass
14 @@ -1,9 +1,10 @@
15 -# Copyright 1999-2017 Gentoo Foundation
16 +# Copyright 1999-2018 Gentoo Foundation
17 # Distributed under the terms of the GNU General Public License v2
18
19 # @ECLASS: libtool.eclass
20 # @MAINTAINER:
21 # base-system@g.o
22 +# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7
23 # @BLURB: quickly update bundled libtool code
24 # @DESCRIPTION:
25 # This eclass patches ltmain.sh distributed with libtoolized packages with the
26 @@ -16,7 +17,11 @@
27 if [[ -z ${_LIBTOOL_ECLASS} ]]; then
28 _LIBTOOL_ECLASS=1
29
30 -DEPEND=">=app-portage/elt-patches-20170422"
31 +case ${EAPI:-0} in
32 + 0|1|2|3|4|5|6) DEPEND=">=app-portage/elt-patches-20170422" ;;
33 + 7) BDEPEND=">=app-portage/elt-patches-20170422" ;;
34 + *) die "${ECLASS}: EAPI ${EAPI} not supported" ;;
35 +esac
36
37 inherit toolchain-funcs
38
39 --
40 2.18.0

Replies