1 |
commit: c8e74a7dfe477dea008548553141f083c5d03782 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 28 16:24:20 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 28 16:24:20 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8e74a7d |
7 |
|
8 |
autotools.eclass: fix EAPI 8 conditional; simplify |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
eclass/autotools.eclass | 6 +++--- |
13 |
1 file changed, 3 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass |
16 |
index c275c83d55c2..e6658e361318 100644 |
17 |
--- a/eclass/autotools.eclass |
18 |
+++ b/eclass/autotools.eclass |
19 |
@@ -393,8 +393,8 @@ eautoconf() { |
20 |
|
21 |
|
22 |
if [[ ${WANT_AUTOCONF} != "2.1" && -e configure.in ]] ; then |
23 |
- case ${EAPI:-0} in |
24 |
- 0|1|2|3|4|5|6|7) |
25 |
+ case ${EAPI} in |
26 |
+ 5|6|7) |
27 |
eqawarn "This package has a configure.in file which has long been deprecated. Please" |
28 |
eqawarn "update it to use configure.ac instead as newer versions of autotools will die" |
29 |
eqawarn "when it finds this file. See https://bugs.gentoo.org/426262 for details." |
30 |
@@ -519,7 +519,7 @@ autotools_env_setup() { |
31 |
5|6) |
32 |
hv_args="--host-root" |
33 |
;; |
34 |
- 7) |
35 |
+ *) |
36 |
hv_args="-b" |
37 |
;; |
38 |
esac |