[Pkg-mongodb-maintainers] [pkg-mongodb] 287/394: fix unused local typedefs FTBFS with patch

Apollon Oikonomopoulos apoikos at moszumanska.debian.org
Wed Sep 21 13:59:44 UTC 2016


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

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

commit 108f8e8b4aac198993a0af5843d0a154f3dd73ab
Author: Laszlo Boszormenyi (GCS) <gcs at debian.org>
Date:   Fri Oct 18 10:35:43 2013 +0200

    fix unused local typedefs FTBFS with patch
---
 debian/changelog                                   |  2 ++
 .../0009-ignore-unused-local-typedefs.patch        | 29 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 32 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 66efccd..9f82a53 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ mongodb (1:2.4.6-1) UNRELEASED; urgency=low
   * New upstream release.
   * Change package priority to optional.
   * Update Standards-Version to 3.9.4 .
+  * Fix typedefs FTBFS with 0009-ignore-unused-local-typedefs.patch
+    (closes: #701324), thanks to James Page <james.page at ubuntu.com>
 
  -- Laszlo Boszormenyi (GCS) <gcs at debian.org>  Tue, 24 Sep 2013 12:31:11 +0000
 
diff --git a/debian/patches/0009-ignore-unused-local-typedefs.patch b/debian/patches/0009-ignore-unused-local-typedefs.patch
new file mode 100644
index 0000000..84069b4
--- /dev/null
+++ b/debian/patches/0009-ignore-unused-local-typedefs.patch
@@ -0,0 +1,29 @@
+Description: Disable unused-local-typedefs errors
+ Disables new unused-local-typedefs as found in gcc 4.8
+ .
+ Based on commit to trunk upstream.
+Author: James Page <james.page at ubuntu.com>
+Origin: https://github.com/mongodb/mongo/commit/2d30f0b562c1925a52670e767c2c0222189fb8f0
+
+--- a/SConstruct
++++ b/SConstruct
+@@ -715,6 +715,7 @@ if nix:
+         env.Append( CCFLAGS=["-Werror", "-pipe"] )
+         if not has_option('clang'):
+             env.Append( CCFLAGS=["-fno-builtin-memcmp"] ) # glibc's memcmp is faster than gcc's
++            env.Append( CXXFLAGS=["-Wno-unused-local-typedefs"] ) # New in gcc 4.8
+ 
+     env.Append( CPPDEFINES=["_FILE_OFFSET_BITS=64"] )
+     env.Append( CXXFLAGS=["-Wnon-virtual-dtor", "-Woverloaded-virtual"] )
+--- a/src/third_party/v8/SConscript
++++ b/src/third_party/v8/SConscript
+@@ -51,7 +51,8 @@ LIBRARY_FLAGS = {
+                        '-W',
+                        '-Wno-unused-parameter',
+                        '-Woverloaded-virtual',
+-                       '-Wnon-virtual-dtor']
++                       '-Wnon-virtual-dtor',
++                       '-Wno-unused-local-typedefs']
+     },
+     'mode:debug': {
+       'CPPDEFINES':   ['ENABLE_DISASSEMBLER', 'DEBUG'],
diff --git a/debian/patches/series b/debian/patches/series
index cbb5198..5ae55bf 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@
 0006-Fix-ARM-alignment-problems.patch
 0007-Use-TIME_UTC_-macro.patch
 0008-Use-system-libstemmer.patch
+0009-ignore-unused-local-typedefs.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