summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/fermikit/ksw_for_aarch64.patch44
-rw-r--r--var/spack/repos/builtin/packages/fermikit/package.py3
2 files changed, 47 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/fermikit/ksw_for_aarch64.patch b/var/spack/repos/builtin/packages/fermikit/ksw_for_aarch64.patch
new file mode 100644
index 0000000000..5c835bf3df
--- /dev/null
+++ b/var/spack/repos/builtin/packages/fermikit/ksw_for_aarch64.patch
@@ -0,0 +1,44 @@
+--- spack-src/bwa/ksw.c.bak 2020-01-06 19:27:05.000000000 +0900
++++ spack-src/bwa/ksw.c 2020-09-02 16:33:44.405293034 +0900
+@@ -26,7 +26,7 @@
+ #include <stdlib.h>
+ #include <stdint.h>
+ #include <assert.h>
+-#include <emmintrin.h>
++#include <SSE2NEON.h>
+ #include "ksw.h"
+
+ #ifdef USE_MALLOC_WRAPPERS
+--- spack-src/fermi2/ksw.c.bak 2020-01-06 19:27:08.000000000 +0900
++++ spack-src/fermi2/ksw.c 2020-09-02 16:25:28.865284742 +0900
+@@ -25,7 +25,7 @@
+
+ #include <stdlib.h>
+ #include <stdint.h>
+-#include <emmintrin.h>
++#include <SSE2NEON.h>
+ #include "ksw.h"
+
+ #ifdef __GNUC__
+--- spack-src/seqtk/ksw.c.bak 2020-01-06 19:27:18.000000000 +0900
++++ spack-src/seqtk/ksw.c 2020-09-02 16:44:31.825298048 +0900
+@@ -25,7 +25,7 @@
+
+ #include <stdlib.h>
+ #include <stdint.h>
+-#include <emmintrin.h>
++#include <SSE2NEON.h>
+ #include "ksw.h"
+
+ #ifdef __GNUC__
+--- spack-src/trimadap/ksw.c.bak 2020-01-06 19:27:20.000000000 +0900
++++ spack-src/trimadap/ksw.c 2020-09-02 16:45:07.375298449 +0900
+@@ -26,7 +26,7 @@
+ #include <stdlib.h>
+ #include <stdint.h>
+ #include <string.h>
+-#include <emmintrin.h>
++#include <SSE2NEON.h>
+ #include "ksw.h"
+
+ #ifdef __GNUC__
diff --git a/var/spack/repos/builtin/packages/fermikit/package.py b/var/spack/repos/builtin/packages/fermikit/package.py
index 6775c1c0e5..c76cb0d6a8 100644
--- a/var/spack/repos/builtin/packages/fermikit/package.py
+++ b/var/spack/repos/builtin/packages/fermikit/package.py
@@ -17,6 +17,9 @@ class Fermikit(MakefilePackage):
submodules=True)
depends_on('zlib')
+ depends_on('sse2neon', when='target=aarch64:')
+
+ patch('ksw_for_aarch64.patch', when='target=aarch64:')
def install(self, spec, prefix):
install_tree('fermi.kit', prefix.bin)