summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2020-10-25 23:03:14 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2020-10-25 23:03:14 +0000
commit4c1ed6117139e31d6cfa3398e77e900f5ea3ce4e (patch)
tree73f3a302bebde840b458c1d12754464707196dd7
parentNew port: devel/yuck: Bog-standard command line option parser for C (diff)
biology/mummer: fix build on powerpc64 elfv2 and powerpc64le
Error: src/tigr/postnuc.cc:174:37: error: non-constant-expression cannot be narrowed from type 'signed char' to 'char' in initializer list [-Wc++11-narrowing] Alignments.push_back({ *Mp, CurrCp->dirB } ); Since it may also fix runtime issues on powerpc64 elfv1, bump PORTREVISION.
-rw-r--r--biology/mummer/Makefile2
-rw-r--r--biology/mummer/files/patch-include_mummer_postnuc.hh11
2 files changed, 12 insertions, 1 deletions
diff --git a/biology/mummer/Makefile b/biology/mummer/Makefile
index 6da22776fc91..3053bb3ef2b8 100644
--- a/biology/mummer/Makefile
+++ b/biology/mummer/Makefile
@@ -4,7 +4,7 @@
PORTNAME= mummer
DISTVERSIONPREFIX= v
DISTVERSION= 4.0.0beta2-2
-PORTREVISION= 2
+PORTREVISION= 3
DISTVERSIONSUFFIX= -g277dac5
CATEGORIES= biology
diff --git a/biology/mummer/files/patch-include_mummer_postnuc.hh b/biology/mummer/files/patch-include_mummer_postnuc.hh
new file mode 100644
index 000000000000..745d318ca107
--- /dev/null
+++ b/biology/mummer/files/patch-include_mummer_postnuc.hh
@@ -0,0 +1,11 @@
+--- include/mummer/postnuc.hh.orig 2020-10-25 22:49:14 UTC
++++ include/mummer/postnuc.hh
+@@ -67,7 +67,7 @@ struct Alignment
+ // trust me, it is a very helpful value
+ long int Errors, SimErrors, NonAlphas; // errors, similarity errors, nonalphas
+
+- Alignment(const Match& m, const char dir)
++ Alignment(const Match& m, const signed char dir)
+ : dirB(dir)
+ , sA(m.sA)
+ , sB(m.sB)