Subject: [bug#73699] [PATCH v4 2/2] gnu: nzbget: Ignore failing tests.

From: Nicolas Graves <[email-masked]>
Date: Thu, 17 Oct 2024 07:40:21 +0200

* gnu/packages/networking.scm (nzbget)[arguments]<#:phases>:
Ignore a misconfigured test on aarch64.
---
 gnu/packages/networking.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 79d3859eb1..b75aa078ff 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -2855,7 +2855,16 @@ (define-public nzbget
         (base32 "13hakpkxqvqfjhk679l088209f54j7mqi3ifi820lyz6b1nvvj0r"))))
     (build-system cmake-build-system)
     (arguments
-     (list #:configure-flags '(list "-DENABLE_TESTS=1")))
+     (append (list #:configure-flags '(list "-DENABLE_TESTS=1"))
+             (if (string-prefix? "aarch64" (%current-system))
+                 (list #:phases
+                       #~(modify-phases %standard-phases
+                           (add-after 'unpack 'skip-failing-tests
+                             (lambda _
+                               (substitute* "tests/system/CMakeLists.txt"
+                                 (("(.*)SystemInfo.cpp" all)
+                                  (string-append "#" all)))))))
+                 #~((list)))))
     (inputs (list boost gnutls libxml2 ncurses openssl zlib))
     (native-inputs (list which))
     (home-page "https://github.com/nzbget/nzbget")
-- 
2.46.0