Package: mongodb-server
Version: 1:2.4.3-1ubuntu1
Followup-For: Bug #701324

Dear Maintainer,

In Ubuntu, we are using the attached patch to ensure compatability with gcc 4.8.

Part of the patch came from upstream trunk (for mongodb itself); the other part 
I
added for the switch-back to using the embedded version of libv8.

Cheers

James


-- System Information:
Debian Release: wheezy/sid
  APT prefers saucy-updates
  APT policy: (500, 'saucy-updates'), (500, 'saucy-security'), (500, 'saucy'), 
(100, 'saucy-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10.0-6-generic (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mongodb-server depends on:
ii  adduser                         3.113+nmu3ubuntu2
ii  libboost-filesystem1.53.0       1.53.0-4ubuntu3
ii  libboost-program-options1.53.0  1.53.0-4ubuntu3
ii  libboost-system1.53.0           1.53.0-4ubuntu3
ii  libboost-thread1.53.0           1.53.0-4ubuntu3
ii  libc6                           2.17-91ubuntu1
ii  libgcc1                         1:4.8.1-8ubuntu1
ii  libgoogle-perftools4            2.1-1
ii  libpcre3                        1:8.31-2
ii  libpcrecpp0                     1:8.31-2
ii  libsnappy1                      1.1.0-1
ii  libssl1.0.0                     1.0.1e-3ubuntu1
ii  libstdc++6                      4.8.1-8ubuntu1
ii  libv8-3.8.9.20                  3.8.9.20-2
ii  mongodb-clients                 1:2.4.3-1ubuntu1
ii  sysv-rc                         2.88dsf-41ubuntu3

mongodb-server recommends no packages.

mongodb-server suggests no packages.

-- no debconf information
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.p...@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'],

Reply via email to