ngmlr: support for aarch64 (#18621)
* ngmlr: support for aarch64 * ngmlr: Fixed patch file
This commit is contained in:
parent
3cfce42563
commit
a250006449
33
var/spack/repos/builtin/packages/ngmlr/for_aarch64.patch
Normal file
33
var/spack/repos/builtin/packages/ngmlr/for_aarch64.patch
Normal file
@ -0,0 +1,33 @@
|
||||
--- spack-src/lib/Complete-Striped-Smith-Waterman-Library/src/ssw.h.bak 2017-06-27 02:01:12.000000000 +0900
|
||||
+++ spack-src/lib/Complete-Striped-Smith-Waterman-Library/src/ssw.h 2020-09-02 16:16:01.835283173 +0900
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
-#include <emmintrin.h>
|
||||
+#include <SSE2NEON.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
--- spack-src/lib/Complete-Striped-Smith-Waterman-Library/src/ssw.c.bak 2017-06-27 02:01:12.000000000 +0900
|
||||
+++ spack-src/lib/Complete-Striped-Smith-Waterman-Library/src/ssw.c 2020-09-08 11:44:57.995497574 +0900
|
||||
@@ -35,7 +35,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
-#include <emmintrin.h>
|
||||
+#include <SSE2NEON.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
--- spack-src/src/ConvexAlignFast.cpp.bak 2017-06-27 02:01:12.000000000 +0900
|
||||
+++ spack-src/src/ConvexAlignFast.cpp 2020-09-07 17:03:29.325279688 +0900
|
||||
@@ -8,7 +8,7 @@
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <algorithm>
|
||||
-#include <x86intrin.h>
|
||||
+#include <SSE2NEON.h>
|
||||
|
||||
#include "IConfig.h"
|
||||
|
22
var/spack/repos/builtin/packages/ngmlr/for_va_list.patch
Normal file
22
var/spack/repos/builtin/packages/ngmlr/for_va_list.patch
Normal file
@ -0,0 +1,22 @@
|
||||
--- spack-src/src/AlignmentBuffer.cpp.bak 2017-06-27 02:01:12.000000000 +0900
|
||||
+++ spack-src/src/AlignmentBuffer.cpp 2020-09-08 11:38:24.075464116 +0900
|
||||
@@ -2365,7 +2365,7 @@
|
||||
va_list args;
|
||||
|
||||
va_start(args, s);
|
||||
- if (args != 0)
|
||||
+ if (va_arg(args, char *) != 0)
|
||||
vfprintf(stderr, s, args);
|
||||
else
|
||||
fprintf(stderr, "%s", s);
|
||||
--- spack-src/src/Logging.cpp.bak 2020-09-08 11:30:20.915422258 +0900
|
||||
+++ spack-src/src/Logging.cpp 2020-09-08 11:32:33.125437676 +0900
|
||||
@@ -94,7 +94,7 @@
|
||||
|
||||
if (color)
|
||||
SetConsoleColor((ConsoleColor) (Message + (lvl * 2)));
|
||||
- if (args != 0)
|
||||
+ if (va_arg(args, char *) != 0)
|
||||
vfprintf(stderr, s, args);
|
||||
else
|
||||
fprintf(stderr, "%s", s);
|
@ -17,3 +17,7 @@ class Ngmlr(CMakePackage):
|
||||
version('0.2.5', sha256='719944a35cc7ff9c321eedbf3385a7375ce2301f609b3fd7be0a850cabbb028b')
|
||||
|
||||
depends_on('zlib', type='link')
|
||||
depends_on('sse2neon', when='target=aarch64:')
|
||||
|
||||
patch('for_aarch64.patch', when='target=aarch64:')
|
||||
patch('for_va_list.patch')
|
||||
|
Loading…
Reference in New Issue
Block a user