Signed-off-by: William Hubbs <[email protected]>
---
 eclass/go-module.eclass | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/eclass/go-module.eclass b/eclass/go-module.eclass
index c11895944cd..a8a3a7e26a7 100644
--- a/eclass/go-module.eclass
+++ b/eclass/go-module.eclass
@@ -7,7 +7,7 @@
 # @AUTHOR:
 # William Hubbs <[email protected]>
 # Robin H. Johnson <[email protected]>
-# @SUPPORTED_EAPIS: 7
+# @SUPPORTED_EAPIS: 7 8
 # @BLURB: basic eclass for building software written as go modules
 # @DESCRIPTION:
 # This eclass provides basic settings and functions needed by all software
@@ -47,7 +47,7 @@
 # @CODE
 
 case ${EAPI:-0} in
-       7) ;;
+       7|8) ;;
        *) die "${ECLASS} EAPI ${EAPI} is not supported."
 esac
 
@@ -83,7 +83,11 @@ export GOFLAGS="-v -x -mod=readonly"
 QA_FLAGS_IGNORED='.*'
 
 # Go packages should not be stripped with strip(1).
-RESTRICT+=" strip"
+if [[ ${EAPI} == 7 ]]; then
+       RESTRICT+=" strip"
+else
+       RESTRICT=" strip"
+fi
 
 EXPORT_FUNCTIONS src_unpack pkg_postinst
 
-- 
2.31.1


Reply via email to