janneke pushed a commit to branch hurd-team
in repository guix.

commit e8228f69e0bbc6949e31a061eb11274930a7f4dd
Author: Janneke Nieuwenhuizen <[email protected]>
AuthorDate: Fri Jun 9 07:17:48 2023 +0200

    gnu: procps: Skip linux-version test for the Hurd.
    
    * gnu/packages/linux.scm (procps)[arguments]: When building for the Hurd, 
add
    stage 'skip-tests'.
---
 gnu/packages/linux.scm | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 6a6cbc118d..cb492ccea0 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -42,7 +42,7 @@
 ;;; Copyright © 2020 Pierre Neidhardt <[email protected]>
 ;;; Copyright © 2020 Chris Marusich <[email protected]>
 ;;; Copyright © 2020 Vincent Legoll <[email protected]>
-;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <[email protected]>
+;;; Copyright © 2020, 2023 Janneke Nieuwenhuizen <[email protected]>
 ;;; Copyright © 2020 Morgan Smith <[email protected]>
 ;;; Copyright © 2020 John Soo <[email protected]>
 ;;; Copyright © 2020, 2022 Michael Rohleder <[email protected]>
@@ -2355,7 +2355,14 @@ parameters.")
                    (let* ((out #$output)
                           (dup (append-map (cut find-files out <>)
                                            '("^kill" "^uptime"))))
-                     (for-each delete-file dup)))))))
+                     (for-each delete-file dup))))
+               #$@(if (target-hurd?)
+                      #~((add-after 'unpack 'skip-tests
+                           (lambda _
+                             (substitute* "library/tests/test_version.c"
+                               (("^int main\\(.*" all)
+                                (string-append all "{\n  exit (77);//"))))))
+                      #~()))))
     (inputs (list ncurses))
     (native-inputs (list pkg-config))
     (home-page "https://gitlab.com/procps-ng/procps/";)

Reply via email to