diff options
| author | Apollon Oikonomopoulos <apoikos@debian.org> | 2018-03-23 14:51:51 +0200 |
|---|---|---|
| committer | Apollon Oikonomopoulos <apoikos@debian.org> | 2018-03-23 14:51:51 +0200 |
| commit | cf5dd89bc7b732f4fd486e557c1fce0c571c77d1 (patch) | |
| tree | 615fad357ec12514a4b346c97e268073cac29f76 | |
| parent | c1a358a33cb8f59afde4ec8fe33417c6274bc346 (diff) | |
Fix altivec-related FTBFS on ppc64el
| -rw-r--r-- | debian/patches/fix-altivec-endianness.patch | 15 | ||||
| -rw-r--r-- | debian/patches/series | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/fix-altivec-endianness.patch b/debian/patches/fix-altivec-endianness.patch new file mode 100644 index 00000000000..016b02af0b7 --- /dev/null +++ b/debian/patches/fix-altivec-endianness.patch @@ -0,0 +1,15 @@ +Author: Jason Carey +Description: Fix call to vec_extract for ppc64el +Origin: https://jira.mongodb.org/browse/SERVER-33395 +Last-Update: 2018-03-23 +--- a/src/mongo/db/fts/unicode/byte_vector_altivec.h ++++ b/src/mongo/db/fts/unicode/byte_vector_altivec.h +@@ -98,7 +98,7 @@ + // big endian by comparison. + const Native bits = {120, 112, 104, 96, 88, 80, 72, 64, 56, 48, 40, 32, 24, 16, 8, 0}; + +- return vec_extract(vec_vbpermq(_data, bits), 0); ++ return vec_extract(vec_vbpermq(_data, bits), 1); + } + + /** diff --git a/debian/patches/series b/debian/patches/series index 85239e2fc55..bae5e0402c5 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -4,3 +4,4 @@ fix-wt-checksum-on-arm64 disable-hw-crc32-on-arm64-s390x.patch fix-ftbfs-with-gcc-7.patch asio-openssl-1.1-support.patch +fix-altivec-endianness.patch |
