[Pkg-mongodb-maintainers] [pkg-mongodb] 06/07: Fix FTBFS with GCC 7
Apollon Oikonomopoulos
apoikos at moszumanska.debian.org
Mon Aug 14 08:52:55 UTC 2017
This is an automated email from the git hooks/post-receive script.
apoikos pushed a commit to branch experimental
in repository pkg-mongodb.
commit e9d81f700179a6f30d58789e13031420d72f3233
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..1375fb5
--- /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
+@@ -1568,6 +1568,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 e284eb3..fe49862 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -9,3 +9,4 @@ CVE-2016-6494.patch
fix-wt-checksum-on-arm64
use-std::regex.patch
disable-hw-crc32-on-arm64-s390x.patch
+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