summaryrefslogtreecommitdiff
path: root/gnu/packages/compression.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-01-13 10:39:31 +0200
committerEfraim Flashner <efraim@flashner.co.il>2019-01-13 11:31:04 +0200
commitd5fa25a5a0b2b419d96edb1a8657d1e386554459 (patch)
tree2d9db9aa23158964ba7eb80327fbf9122a7266ee /gnu/packages/compression.scm
parent15d2cebf45f1b847dd8498615ae643b3fba447a3 (diff)
downloadpatches-d5fa25a5a0b2b419d96edb1a8657d1e386554459.tar
patches-d5fa25a5a0b2b419d96edb1a8657d1e386554459.tar.gz
gnu: bitshuffle: Fix build on armhf-linux.
* gnu/packages/compression.scm (bitshuffle)[arguments]: Add custom phase to only use NEON on aarch64.
Diffstat (limited to 'gnu/packages/compression.scm')
-rw-r--r--gnu/packages/compression.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 029d11ef21..19560779bb 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -1219,6 +1219,14 @@ well as bzip2.")
`(#:tests? #f ; fail: https://github.com/h5py/h5py/issues/769
#: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
(lambda _
(substitute* "setup.py"