gnu: binutils-gold: Skip gold testsuite on some architectures.
authorEfraim Flashner <efraim@flashner.co.il>
Tue, 21 Dec 2021 14:15:03 +0000 (16:15 +0200)
committerEfraim Flashner <efraim@flashner.co.il>
Tue, 21 Dec 2021 14:22:51 +0000 (16:22 +0200)
* gnu/packages/base.scm (binutils-gold)[arguments]: Add a phase on some
architecturest to skip the gold testsuite.

gnu/packages/base.scm

index dd59057..12e4de5 100644 (file)
@@ -606,7 +606,15 @@ included.")
            (add-after 'patch-source-shebangs 'patch-more-shebangs
              (lambda _
                (substitute* "gold/Makefile.in"
-                 (("/bin/sh") (which "sh")))))))))
+                 (("/bin/sh") (which "sh")))))
+           ;; Multiple failing tests on some architectures in the gold testsuite.
+           ,@(if (or (target-arm?)
+                     (target-ppc32?))
+               '((add-after 'unpack 'skip-gold-testsuite
+                   (lambda _
+                     (substitute* "gold/Makefile.in"
+                       ((" testsuite") " ")))))
+               '())))))
     (native-inputs
      `(("bc" ,bc)))))