guix_mirror_bot pushed a commit to branch go-team
in repository guix.
commit af9e47c02556beecf65c93b0131c455e17ac7a30
Author: Roman Scherer <[email protected]>
AuthorDate: Sun Apr 19 14:13:48 2026 +0200
gnu: go-github-com-cloudwego-base64x: Skip build on non-x86-64.
'base64x.go' references symbols defined only in 'native_amd64.go',
so compilation fails on non-x86-64.
* gnu/packages/golang-crypto.scm (go-github-com-cloudwego-base64x)
[arguments]<#:skip-build?>: New argument.
<#:tests?>: Disable on non-x86-64.
Relates-to: guix/guix!8004
Change-Id: I1f9541611ea619499339f0a9215727a2b4b64072
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/golang-crypto.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm
index 61b2b86457..597de3dea9 100644
--- a/gnu/packages/golang-crypto.scm
+++ b/gnu/packages/golang-crypto.scm
@@ -775,7 +775,14 @@ The package include Go source library and
@code{redoctober} command.")
(build-system go-build-system)
(arguments
(list
- #:import-path "github.com/cloudwego/base64x"))
+ #:import-path "github.com/cloudwego/base64x"
+ ;; 'base64x.go' references 'b64encode' and 'b64decode',
+ ;; which are defined only in 'native_amd64.go' (restricted
+ ;; to amd64 by its filename), so compilation fails on
+ ;; non-x86-64.
+ #:skip-build? (not (target-x86-64?))
+ #:tests? (and (not (%current-target-system))
+ (target-x86-64?))))
(native-inputs
(list go-github-com-davecgh-go-spew
go-github-com-stretchr-testify))