1 |
Signed-off-by: David Michael <fedora.dm0@×××××.com> |
2 |
--- |
3 |
|
4 |
Hi, |
5 |
|
6 |
Here is a simple update that is blocking a lot of stuff. It moves the |
7 |
EAPI check outside the inherit guard for bash future-proofing. |
8 |
|
9 |
Thanks. |
10 |
|
11 |
David |
12 |
|
13 |
eclass/autotools.eclass | 22 +++++++++------------- |
14 |
1 file changed, 9 insertions(+), 13 deletions(-) |
15 |
|
16 |
diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass |
17 |
index b386654c832..214c90d06f9 100644 |
18 |
--- a/eclass/autotools.eclass |
19 |
+++ b/eclass/autotools.eclass |
20 |
@@ -4,7 +4,7 @@ |
21 |
# @ECLASS: autotools.eclass |
22 |
# @MAINTAINER: |
23 |
# base-system@g.o |
24 |
-# @SUPPORTED_EAPIS: 5 6 7 |
25 |
+# @SUPPORTED_EAPIS: 5 6 7 8 |
26 |
# @BLURB: Regenerates auto* build scripts |
27 |
# @DESCRIPTION: |
28 |
# This eclass is for safely handling autotooled software packages that need to |
29 |
@@ -23,18 +23,15 @@ if [[ ${__AUTOTOOLS_AUTO_DEPEND+set} == "set" ]] ; then |
30 |
fi |
31 |
fi |
32 |
|
33 |
-if [[ -z ${_AUTOTOOLS_ECLASS} ]] ; then |
34 |
-_AUTOTOOLS_ECLASS=1 |
35 |
- |
36 |
case ${EAPI} in |
37 |
- 5|6) |
38 |
- # Needed for eqawarn |
39 |
- inherit eutils |
40 |
- ;; |
41 |
- 7) ;; |
42 |
- *) die "${ECLASS}: EAPI ${EAPI} not supported" ;; |
43 |
+ 5|6) inherit eutils ;; # Needed for eqawarn |
44 |
+ 7|8) ;; |
45 |
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; |
46 |
esac |
47 |
|
48 |
+if [[ -z ${_AUTOTOOLS_ECLASS} ]] ; then |
49 |
+_AUTOTOOLS_ECLASS=1 |
50 |
+ |
51 |
inherit gnuconfig libtool |
52 |
|
53 |
# @ECLASS-VARIABLE: WANT_AUTOCONF |
54 |
@@ -119,7 +116,6 @@ fi |
55 |
AUTOTOOLS_DEPEND="${_automake_atom} |
56 |
${_autoconf_atom} |
57 |
${_libtool_atom}" |
58 |
-RDEPEND="" |
59 |
|
60 |
# @ECLASS-VARIABLE: AUTOTOOLS_AUTO_DEPEND |
61 |
# @PRE_INHERIT |
62 |
@@ -131,7 +127,7 @@ RDEPEND="" |
63 |
if [[ ${AUTOTOOLS_AUTO_DEPEND} != "no" ]] ; then |
64 |
case ${EAPI} in |
65 |
5|6) DEPEND=${AUTOTOOLS_DEPEND} ;; |
66 |
- 7) BDEPEND=${AUTOTOOLS_DEPEND} ;; |
67 |
+ *) BDEPEND=${AUTOTOOLS_DEPEND} ;; |
68 |
esac |
69 |
fi |
70 |
__AUTOTOOLS_AUTO_DEPEND=${AUTOTOOLS_AUTO_DEPEND} # See top of eclass |
71 |
@@ -490,7 +486,7 @@ autotools_env_setup() { |
72 |
5|6) |
73 |
hv_args="--host-root" |
74 |
;; |
75 |
- 7) |
76 |
+ *) |
77 |
hv_args="-b" |
78 |
;; |
79 |
esac |
80 |
-- |
81 |
2.31.1 |