gnu: bitshuffle: Fix build on armhf-linux.

* gnu/packages/compression.scm (bitshuffle)[arguments]: Add custom phase
to only use NEON on aarch64.
This commit is contained in:
Efraim Flashner 2019-01-13 10:39:31 +02:00
parent 15d2cebf45
commit d5fa25a5a0
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 8 additions and 0 deletions

View File

@ -1219,6 +1219,14 @@ well as bzip2.")
`(#:tests? #f ; fail: https://github.com/h5py/h5py/issues/769 `(#:tests? #f ; fail: https://github.com/h5py/h5py/issues/769
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'fix-neon-detection
;; Neon is only for aarch64 ATM
;; see: https://github.com/kiyo-masui/bitshuffle/pull/73
(lambda _
(substitute* "src/bitshuffle_core.c"
(("#define USEARMNEON")
"#ifdef __aarch64__\n#define USEARMNEON\n#endif"))
#t))
(add-after 'unpack 'dont-build-native (add-after 'unpack 'dont-build-native
(lambda _ (lambda _
(substitute* "setup.py" (substitute* "setup.py"