sortmerna: Fix for aarch64 (#21126)

This commit is contained in:
Tomoyasu Nojiri 2021-01-20 00:01:16 +09:00 committed by GitHub
parent 89b9d07efa
commit ab83b6689e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 2 deletions

View file

@ -0,0 +1,22 @@
--- spack-src/src/sortmerna/ssw.c.bak 2021-01-15 15:52:23.000000000 +0900
+++ spack-src/src/sortmerna/ssw.c 2021-01-15 16:20:53.863003152 +0900
@@ -42,7 +42,7 @@
* July 10, 2013
*/
-#include <emmintrin.h>
+#include <sse2neon.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
--- spack-src/include/ssw.h.bak 2021-01-15 15:52:22.000000000 +0900
+++ spack-src/include/ssw.h 2021-01-15 16:16:51.383025096 +0900
@@ -21,7 +21,7 @@
#include <stdio.h>
#include <stdint.h>
#include <string.h>
-#include <emmintrin.h>
+#include <sse2neon.h>
extern const char map_nt[122];
/*! @typedef structure of the query profile */

View file

@ -16,10 +16,13 @@ class Sortmerna(CMakePackage):
version('2017-07-13', commit='8bde6fa113a5d99a23ae81b48eeea6760e966094')
depends_on('zlib')
depends_on('sse2neon', when='target=aarch64:')
patch('for_aarch64.patch', when='target=aarch64:')
def install(self, spec, prefix):
mkdirp(prefix.bin)
with working_dir(join_path('spack-build', 'src', 'indexdb')):
with working_dir(join_path(self.build_directory, 'src', 'indexdb')):
install('indexdb', prefix.bin)
with working_dir(join_path('spack-build', 'src', 'sortmerna')):
with working_dir(join_path(self.build_directory, 'src', 'sortmerna')):
install('sortmerna', prefix.bin)