From 28b24e9975967119620e272662b8ffc4a3f783aa Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 11 Nov 2018 08:56:49 +0200 Subject: [PATCH] gnu: bitshuffle: Don't use '-march=native'. * gnu/packages/compression.scm (bitshuffle)[arguments]: Add custom phase to substitute out the '-march=native' compilation flag. --- gnu/packages/compression.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index d24f48cd2c..7f6857d260 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -1210,7 +1210,14 @@ (define-public bitshuffle #t)))) (build-system python-build-system) (arguments - `(#:tests? #f)) ; fail: https://github.com/h5py/h5py/issues/769 + `(#:tests? #f ; fail: https://github.com/h5py/h5py/issues/769 + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'dont-build-native + (lambda _ + (substitute* "setup.py" + (("'-march=native', ") "")) + #t))))) (inputs `(("numpy" ,python-numpy) ("h5py" ,python-h5py)