[Pkg-mongodb-maintainers] [pkg-mongodb] 01/05: Fix FTBFS with GCC 7

Apollon Oikonomopoulos apoikos at moszumanska.debian.org
Fri Aug 11 19:56:18 UTC 2017


This is an automated email from the git hooks/post-receive script.

apoikos pushed a commit to branch master
in repository pkg-mongodb.

commit 0500dc61561bb08905ab83e3322a43220e66e9bb
Author: Apollon Oikonomopoulos <apoikos at debian.org>
Date:   Thu Aug 10 18:37:29 2017 -0400

    Fix FTBFS with GCC 7
    
    Turn all C++17-compat errors to warnings.
    
    Git-Dch: Full
    Closes: #853556
---
 debian/patches/fix-ftbfs-with-gcc-7.patch | 26 ++++++++++++++++++++++++++
 debian/patches/series                     |  1 +
 2 files changed, 27 insertions(+)

diff --git a/debian/patches/fix-ftbfs-with-gcc-7.patch b/debian/patches/fix-ftbfs-with-gcc-7.patch
new file mode 100644
index 0000000..cfeaad6
--- /dev/null
+++ b/debian/patches/fix-ftbfs-with-gcc-7.patch
@@ -0,0 +1,26 @@
+Author: Apollon Oikonomopoulos <apoikos at debian.org>
+Description: Fix FTBFS with GCC 7
+ GCC 7 warns us that the mangled symbol names of various functions are due to
+ change in C++17:
+   src/mongo/util/scopeguard.h:154:7: error: mangled name for 'mongo::ScopeGuardImpl1<void (*)(void*) throw (), char*>::ScopeGuardImpl1(const mongo::ScopeGuardImpl1<void (*)(void*) throw (), char*>&)' will change in C++17 because the exception specification is part of a function type [-Werror=c++1z-compat]
+ This appears to be mostly harmless in our case, since we're not building a
+ shared library. Also, MongoDB 3.2 does not boast C++17 compatibility.
+ Fix this by treating all C++17-compat errors as warnings.
+ Additionally turn format truncation errors back to warnings again for the time
+ being.
+Bug-Debian: https://bugs.debian.org/853556
+Last-Update: 2017-08-10
+Forwarded: no
+--- a/SConstruct
++++ b/SConstruct
+@@ -1457,6 +1457,10 @@
+                          "-Wsign-compare",
+                          "-Wno-unknown-pragmas",
+ 			 "-Wno-nonnull-compare",
++			 "-Wno-error=c++1z-compat",
++			 "-Wno-error=noexcept-type",
++			 "-Wno-error=format-truncation",
++			 "-Wno-error=int-in-bool-context",
+ 			 "-Wno-overflow",
+                          "-Winvalid-pch"] )
+     # env.Append( " -Wconversion" ) TODO: this doesn't really work yet
diff --git a/debian/patches/series b/debian/patches/series
index 8c88f6d..72e969f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -8,3 +8,4 @@ fix-boost-1.62-build.patch
 CVE-2016-6494.patch
 use-mmapv1-on-i386
 fix-wt-checksum-on-arm64
+fix-ftbfs-with-gcc-7.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mongodb/pkg-mongodb.git



More information about the Pkg-mongodb-maintainers mailing list