me
/
guix
Archived
1
0
Fork 0

gnu: libaio: Fix test suite on riscv64-linux.

* gnu/packages/linux.scm (libaio)[arguments]: Add phase to adjust test
code to properly handle riscv.
master
Efraim Flashner 2021-08-20 11:11:44 +03:00
parent 264162124f
commit 73d93343ba
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 13 additions and 1 deletions

View File

@ -5263,7 +5263,19 @@ Linux Device Mapper multipathing driver:
#:test-target "partcheck" ; need root for a full 'check' #:test-target "partcheck" ; need root for a full 'check'
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(delete 'configure)))) ; no configure script (delete 'configure) ; no configure script
;; TODO: Make this phase unconditional on core-updates.
#$@(if (target-riscv64?)
'((add-before 'check 'patch-for-riscv-support
(lambda _
;; Taken from the upstream repo:
;; https://pagure.io/libaio/c/f322f467c3cd2ac4d8d08a19bd281eabb65433b1?branch=master
(substitute* "harness/cases/16.t"
(("(elif defined\\(__aarch64__\\))" all)
(string-append all " || defined(__riscv)"))
(("(endif /* __aarch64__)" all)
(string-append all " || __riscv "))))))
'()))))
(home-page "https://pagure.io/libaio") (home-page "https://pagure.io/libaio")
(synopsis "Linux-native asynchronous I/O access library") (synopsis "Linux-native asynchronous I/O access library")
(description (description