gnu: libgcrypt: Skip hanging benchmark tests on the Hurd.

* gnu/packages/gnupg.scm (libgcrypt)[arguments]: When building natively on the
Hurd, add phase 'setenv' to set "GCRYPT_NO_BENCHMARKS".
This commit is contained in:
Janneke Nieuwenhuizen 2023-06-06 20:39:50 +02:00
parent c5991dfb92
commit ebc35c6096
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -204,7 +204,15 @@ (define-public libgcrypt
,@(if (%current-target-system)
;; When cross-compiling, _gcry_mpih_lshift etc are undefined.
`("--disable-asm")
'()))))
'()))
,@(if (system-hurd?)
(list
#:phases
#~(modify-phases %standard-phases
(add-before 'configure 'setenv
(lambda _
(setenv "GCRYPT_NO_BENCHMARKS" "t")))))
'())))
(outputs '("out" "debug"))
(home-page "https://gnupg.org/")
(synopsis "Cryptographic function library")