[Pkg-mongodb-maintainers] [mongo-cxx-driver-legacy] 01/02: Fix FTBFS with GCC 6.1 (test failure)
Apollon Oikonomopoulos
apoikos at moszumanska.debian.org
Fri Nov 11 17:58:35 UTC 2016
This is an automated email from the git hooks/post-receive script.
apoikos pushed a commit to branch debian
in repository mongo-cxx-driver-legacy.
commit f0a1364f8922478e618ccc1af2164c7518bef144
Author: Apollon Oikonomopoulos <apoikos at debian.org>
Date: Fri Nov 11 19:57:44 2016 +0200
Fix FTBFS with GCC 6.1 (test failure)
Hex float constants are part of C++17 (and only GNU extensions in C++11)
and GCC 6.1 errors out when src/mongo/base/parse_number_test.cpp is
compiled using -std=c++11.
---
debian/patches/1004_fix_ftbfs_with_gcc6.1.patch | 18 ++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 19 insertions(+)
diff --git a/debian/patches/1004_fix_ftbfs_with_gcc6.1.patch b/debian/patches/1004_fix_ftbfs_with_gcc6.1.patch
new file mode 100644
index 0000000..5980736
--- /dev/null
+++ b/debian/patches/1004_fix_ftbfs_with_gcc6.1.patch
@@ -0,0 +1,18 @@
+Author: Apollon Oikonomopoulos <apoikos at debian.org>
+Description: Fix FTBFS (test failure) with GCC 6.1
+ Hex float constants are part of C++17 (and only GNU extensions in C++11)
+ and GCC 6.1 errors out when src/mongo/base/parse_number_test.cpp is
+ compiled using -std=c++11.
+Last-Update: 2016-11-11
+Forwarded: no (legacy)
+--- a/src/mongo/base/parse_number_test.cpp
++++ b/src/mongo/base/parse_number_test.cpp
+@@ -279,7 +279,7 @@
+
+ ASSERT_PARSES(double, "0xff", 0xff);
+ ASSERT_PARSES(double, "-0xff", -0xff);
+- ASSERT_PARSES(double, "0xabcab.defdefP-10", 0xabcab.defdefP-10);
++ //ASSERT_PARSES(double, "0xabcab.defdefP-10", 0xabcab.defdefP-10);
+ #endif
+ }
+
diff --git a/debian/patches/series b/debian/patches/series
index 707cbce..358e37a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,5 @@
1001_set_soname.patch
1002_openssl_1.1_compat.patch
1003_C++11_compat.patch
+1004_fix_ftbfs_with_gcc6.1.patch
2001_use_system_libraries_if_possible.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mongodb/mongo-cxx-driver-legacy.git
More information about the Pkg-mongodb-maintainers
mailing list