[Pkg-nagios-changes] [pkg-nagios-plugins] 327/413: patch out _GL_WARN_ON_USE

Jan Wagner waja at moszumanska.debian.org
Tue Nov 26 23:13:38 UTC 2013


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

waja pushed a commit to branch master
in repository pkg-nagios-plugins.

commit 129ccbb3d410d1bf06152e9acf121b8291c2c49f
Author: Jan Wagner <waja at cyconet.org>
Date:   Mon Jun 24 16:20:15 2013 +0000

    patch out _GL_WARN_ON_USE
---
 debian/changelog                                   |  1 +
 debian/patches/00list                              |  2 ++
 .../05_fix_gets_undefined_in_iso_c11.dpatch        | 34 ++++++++++++++++++++++
 3 files changed, 37 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index d613a7e..cbd48a0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ nagios-plugins (1.4.16-2) UNRELEASED; urgency=low
     - Closes: #713839, thanks to Russell Sim
   * Enable Extra-Opts by adding --enable-extra-opts to configure flags
     (Closes: #698119)
+  * Fix FTBFS: do not assume that gets is defined (LP: #1097848).
 
  -- Jan Wagner <waja at cyconet.org>  Wed, 27 Jun 2012 23:14:40 +0200
 
diff --git a/debian/patches/00list b/debian/patches/00list
index 35b85ec..7c60d5c 100644
--- a/debian/patches/00list
+++ b/debian/patches/00list
@@ -1,2 +1,4 @@
 02_check_icmp_links.dpatch
+05_fix_gets_undefined_in_iso_c11.dpatch
 # commited upstream
+
diff --git a/debian/patches/05_fix_gets_undefined_in_iso_c11.dpatch b/debian/patches/05_fix_gets_undefined_in_iso_c11.dpatch
new file mode 100644
index 0000000..4d384a7
--- /dev/null
+++ b/debian/patches/05_fix_gets_undefined_in_iso_c11.dpatch
@@ -0,0 +1,34 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 17_fix_gets_undefined_in_iso_c11.dpatch by  <ubuntu at server-e76384a2-51cb-4595-9b66-9ed53c1e0c44.canonistack>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+##
+## DP: Do not assume that gets is defined. gets got dropped in ISO C11,
+## DP: but the embedded old version of gnulib assumes it is defined. Since Ubuntu
+## DP: now does not define gets, it is safe to disable this warning, which fixes the
+## DP: FTBFS.
+## DP: 
+## DP: Author: Robie Basak <robie.basak at canonical.com>
+## DP: Bug: http://sourceforge.net/support/tracker.php?aid=3600122
+## DP: Bug-Ubuntu: https://launchpad.net/bugs/1097848
+
+ at DPATCH@
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' nagios-plugins-1.4.15~/gl/stdio.in.h nagios-plugins-1.4.15/gl/stdio.in.h
+--- nagios-plugins-1.4.15~/gl/stdio.in.h	2010-07-27 20:47:15.000000000 +0000
++++ nagios-plugins-1.4.15/gl/stdio.in.h	2013-01-09 17:17:13.112864259 +0000
+@@ -141,7 +141,14 @@
+    so any use of gets warrants an unconditional warning.  Assume it is
+    always declared, since it is required by C89.  */
+ #undef gets
+-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
++
++/* gets is no longer defined in ISO C11. This has been updated in upstream
++ * gnulib:
++ *     http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=66712c23388e93e5c518ebc8515140fa0c807348
++ * Since Ubuntu now does not define gets, it is safe to disable this warning.
++ * https://launchpad.net/bugs/1097848
++ * _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
++ */
+ 
+ #if @GNULIB_FOPEN@
+ # if @REPLACE_FOPEN@

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-plugins.git



More information about the Pkg-nagios-changes mailing list