guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/03: gnu: go-gopkg-in-yaml-v2: Fix test suite on 32-bit systems.


From: guix-commits
Subject: 02/03: gnu: go-gopkg-in-yaml-v2: Fix test suite on 32-bit systems.
Date: Mon, 6 Dec 2021 08:57:31 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit c569430b6c674509ee501d388802164223434d82
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Dec 6 14:43:17 2021 +0200

    gnu: go-gopkg-in-yaml-v2: Fix test suite on 32-bit systems.
    
    * gnu/packages/golamg.scm (go-gopkg-in-yaml-v2)[source]: Add snippet to
    no longer cause integer overflow on 32-bit systems during test suite.
---
 gnu/packages/golang.scm | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 754724a..6c578db 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -3885,7 +3885,18 @@ which satisfies the cron expression.")
         (file-name (git-file-name name version))
         (sha256
          (base32
-          "01wj12jzsdqlnidpyjssmj0r4yavlqy7dwrg7adqd8dicjc4ncsa"))))
+          "01wj12jzsdqlnidpyjssmj0r4yavlqy7dwrg7adqd8dicjc4ncsa"))
+        (modules '((guix build utils)))
+        (snippet
+         '(begin
+            ;; https://github.com/go-yaml/yaml/issues/441 and
+            ;; https://github.com/go-yaml/yaml/pull/442
+            ;; Don't assume 64-bit wide integers
+            (substitute* "decode_test.go"
+              (("bin: 
(-0b1000000000000000000000000000000000000000000000000000000000000000)" all 
number)
+               (string-append "int64_min_base2: " number))
+              (("map\\[string\\]interface\\{\\}\\{\"bin\": 
-9223372036854775808\\}")
+               "map[string]int64{\"int64_min_base2\": math.MinInt64}"))))))
     (build-system go-build-system)
     (arguments
      '(#:import-path "gopkg.in/yaml.v2"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]