[Pkg-mongodb-maintainers] [pkg-mongodb] 307/394: Build with -Wno-unused-function

Apollon Oikonomopoulos apoikos at moszumanska.debian.org
Wed Sep 21 13:59:49 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 17e5be26b8969ce5fd39c70c63cbc367d746a632
Author: Laszlo Boszormenyi (GCS) <gcs at debian.org>
Date:   Tue Jun 30 15:44:38 2015 +0000

    Build with -Wno-unused-function
---
 debian/changelog                        |  4 ++++
 debian/patches/no-unused-function.patch | 18 ++++++++++++++++++
 debian/patches/series                   |  1 +
 3 files changed, 23 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index b32a849..e70924f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,10 @@ mongodb (1:2.4.10-2) unstable; urgency=low
   * Enable systemd service (closes: #745674).
   * Support NUMA configurations (closes: #714955).
 
+  [ Thomas Goirand <zigo at debian.org> ]
+  * Build with -Wno-unused-function, fixing FTBFS with gcc-4.9
+    (closes: #746887).
+
  -- Laszlo Boszormenyi (GCS) <gcs at debian.org>  Sat, 21 Jun 2014 18:34:48 +0000
 
 mongodb (1:2.4.10-1) unstable; urgency=low
diff --git a/debian/patches/no-unused-function.patch b/debian/patches/no-unused-function.patch
new file mode 100644
index 0000000..e6dd4a4
--- /dev/null
+++ b/debian/patches/no-unused-function.patch
@@ -0,0 +1,18 @@
+Description: Uses -Wno-unused-function to build
+ Uses -Wno-unused-function to avoid FTBFS with -Werror=unused-function
+ which is now the default in gcc-4.9.
+Author: Thomas Goirand <zigo at debian.org>
+Bug-Debian: http://bugs.debian.org/746887
+Forwarded: no
+Last-Update: 2014-06-16
+
+--- mongodb-2.4.10.orig/SConstruct
++++ mongodb-2.4.10/SConstruct
+@@ -708,6 +708,7 @@ if nix:
+                          "-pthread",
+                          "-Wall",
+                          "-Wsign-compare",
++                         "-Wno-unused-function",
+                          "-Wno-unknown-pragmas",
+                          "-Winvalid-pch"] )
+     # env.Append( " -Wconversion" ) TODO: this doesn't really work yet
diff --git a/debian/patches/series b/debian/patches/series
index d965da2..ea89345 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -11,3 +11,4 @@
 0011-Use-a-signed-char-to-store-BSONType-enumerations.patch
 0099-Pagesize-hacks.patch
 0004-Support-ppc64el-builds.patch
+no-unused-function.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