1 |
Signed-off-by: William Hubbs <williamh@g.o> |
2 |
--- |
3 |
eclass/go-module.eclass | 10 +++++++--- |
4 |
1 file changed, 7 insertions(+), 3 deletions(-) |
5 |
|
6 |
diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass |
7 |
index c11895944cd..a8a3a7e26a7 100644 |
8 |
--- a/eclass/go-module.eclass |
9 |
+++ b/eclass/go-module.eclass |
10 |
@@ -7,7 +7,7 @@ |
11 |
# @AUTHOR: |
12 |
# William Hubbs <williamh@g.o> |
13 |
# Robin H. Johnson <robbat2@g.o> |
14 |
-# @SUPPORTED_EAPIS: 7 |
15 |
+# @SUPPORTED_EAPIS: 7 8 |
16 |
# @BLURB: basic eclass for building software written as go modules |
17 |
# @DESCRIPTION: |
18 |
# This eclass provides basic settings and functions needed by all software |
19 |
@@ -47,7 +47,7 @@ |
20 |
# @CODE |
21 |
|
22 |
case ${EAPI:-0} in |
23 |
- 7) ;; |
24 |
+ 7|8) ;; |
25 |
*) die "${ECLASS} EAPI ${EAPI} is not supported." |
26 |
esac |
27 |
|
28 |
@@ -83,7 +83,11 @@ export GOFLAGS="-v -x -mod=readonly" |
29 |
QA_FLAGS_IGNORED='.*' |
30 |
|
31 |
# Go packages should not be stripped with strip(1). |
32 |
-RESTRICT+=" strip" |
33 |
+if [[ ${EAPI} == 7 ]]; then |
34 |
+ RESTRICT+=" strip" |
35 |
+else |
36 |
+ RESTRICT=" strip" |
37 |
+fi |
38 |
|
39 |
EXPORT_FUNCTIONS src_unpack pkg_postinst |
40 |
|
41 |
-- |
42 |
2.31.1 |