[med-svn] [Git][med-team/last-align][master] Fix ppc64el FTBFS with altivec and c++ (Closes: #959866)
Steffen Möller
gitlab at salsa.debian.org
Wed May 6 13:20:00 BST 2020
Steffen Möller pushed to branch master at Debian Med / last-align
Commits:
c85ba594 by Frédéric Bonnard at 2020-05-06T12:27:13+02:00
Fix ppc64el FTBFS with altivec and c++ (Closes: #959866)
- - - - -
2 changed files:
- + debian/patches/fix-959866.patch
- debian/patches/series
Changes:
=====================================
debian/patches/fix-959866.patch
=====================================
@@ -0,0 +1,25 @@
+Description: Fix FTBFS #959866
+On ppc64el, altivec.h redefines bool, pixel and vector which can collide with
+c++ types.
+This altivec.h inclusion is done with the introduction of simde.
+As altivec.h explains, it's possible to undefine those for C++ compatibility in
+src/GappedXdropAligner.hh which let it define the variables that other files
+will use while not impacting simde.
+Author: Frédéric Bonnard <frediz at debian.org>
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/src/GappedXdropAligner.hh
++++ b/src/GappedXdropAligner.hh
+@@ -50,6 +50,12 @@
+ #include "mcf_simd.hh"
+ #include "ScoreMatrixRow.hh"
+
++#if defined(__VEC__) && defined(__ALTIVEC__) && !defined(__APPLE_ALTIVEC__)
++# undef vector
++# undef pixel
++# undef bool
++#endif
++
+ #include <iosfwd>
+ #include <stddef.h> // size_t
+ #include <vector>
=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
2to3.patch
helpMakefiles.patch
simde
+fix-959866.patch
View it on GitLab: https://salsa.debian.org/med-team/last-align/-/commit/c85ba5940cf48370cc9b28ed9922e90a92d1d513
--
View it on GitLab: https://salsa.debian.org/med-team/last-align/-/commit/c85ba5940cf48370cc9b28ed9922e90a92d1d513
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200506/9282f4b8/attachment-0001.html>
More information about the debian-med-commit
mailing list