gnu: tor: Limit test suite adjustments to affected architectures.

This is a follow-up to 68d090002a.

* gnu/packages/tor.scm (tor)[arguments]: Only add custom
'adjust-test-suite phase on aarch64, powerpc32.
This commit is contained in:
Efraim Flashner 2021-12-02 10:37:54 +02:00
parent 24832d2ebd
commit e577889828
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -77,15 +77,18 @@
;; This is a style linter. It doesn't get to throw fatal errors.
(lambda _
(setenv "TOR_DISABLE_PRACTRACKER" "set")))
(add-before 'check 'adjust-test-suite
(lambda _
,@(if (or (target-aarch64?)
(target-ppc32?))
;; Work around upstream issue relating to sandboxing and glibc-2.33.
;; This is similar to the issue the tor-sandbox-i686 patch fixes
;; but for other architectures.
;; https://gitlab.torproject.org/tpo/core/tor/-/issues/40381
;; https://gitlab.torproject.org/tpo/core/tor/-/merge_requests/446
(substitute* "src/test/test_include.sh"
((".*Sandbox 1.*") "")))))))
`((add-before 'check 'adjust-test-suite
(lambda _
(substitute* "src/test/test_include.sh"
((".*Sandbox 1.*") "")))))
'()))))
(native-inputs
`(("pkg-config" ,pkg-config)
("python" ,python))) ; for tests