summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authort-nojiri <68096132+t-nojiri@users.noreply.github.com>2020-09-18 01:42:32 +0900
committerGitHub <noreply@github.com>2020-09-17 11:42:32 -0500
commitb66d756da61f5f9c0b93ec607d142e1565e267be (patch)
tree20d0de23b1febe3ffa53461e0d7ca1fdcef94491
parent7c01c64d531ce6b6d16d3b0ea0e8a1a9c19bf479 (diff)
downloadspack-b66d756da61f5f9c0b93ec607d142e1565e267be.tar.gz
spack-b66d756da61f5f9c0b93ec607d142e1565e267be.tar.bz2
spack-b66d756da61f5f9c0b93ec607d142e1565e267be.tar.xz
spack-b66d756da61f5f9c0b93ec607d142e1565e267be.zip
bowtie : Fix for aarch64 (#18709)
-rw-r--r--var/spack/repos/builtin/packages/bowtie/fix_narrowing_err_1.3.0.patch6
-rw-r--r--var/spack/repos/builtin/packages/bowtie/package.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/bowtie/fix_narrowing_err_1.3.0.patch b/var/spack/repos/builtin/packages/bowtie/fix_narrowing_err_1.3.0.patch
index 0da7fe0de3..898a87bdc5 100644
--- a/var/spack/repos/builtin/packages/bowtie/fix_narrowing_err_1.3.0.patch
+++ b/var/spack/repos/builtin/packages/bowtie/fix_narrowing_err_1.3.0.patch
@@ -1,11 +1,11 @@
---- a/alphabet.cpp 2020-07-28 15:02:56.137635525 -0400
-+++ b/alphabet.cpp 2020-07-28 15:05:32.385589360 -0400
+--- spack-src/alphabet.cpp.bak 2020-07-23 11:52:57.000000000 +0900
++++ spack-src/alphabet.cpp 2020-09-16 17:05:52.093190703 +0900
@@ -274,7 +274,7 @@
const char *iupacs = "!ACMGRSVTWYHKDBN!acmgrsvtwyhkdbn";
signed char mask2iupac[16] = {
- -1,
-+ static_cast<char>(-1),
++ static_cast<signed char>(-1),
'A', // 0001
'C', // 0010
'M', // 0011
diff --git a/var/spack/repos/builtin/packages/bowtie/package.py b/var/spack/repos/builtin/packages/bowtie/package.py
index 737ae8c893..e473925796 100644
--- a/var/spack/repos/builtin/packages/bowtie/package.py
+++ b/var/spack/repos/builtin/packages/bowtie/package.py
@@ -48,10 +48,10 @@ class Bowtie(MakefilePackage):
# correspond to 'aarch64' architecture
# reference: https://github.com/BenLangmead/bowtie/pull/13
- patch('for_aarch64.patch', when='target=aarch64:')
+ patch('for_aarch64.patch', when='@1.2:1.2.999 target=aarch64:')
# measures for narrowing error
- patch('fix_narrowing_err.patch', when='@:1.2.3')
+ patch('fix_narrowing_err.patch', when='@1.2.1:1.2.3')
patch('fix_narrowing_err_1.3.0.patch', when='@1.3.0:')
def edit(self, spec, prefix):