From af01c58f23a400d7c0d7af331a85fb44f50682d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 13 Apr 2016 07:23:55 +0200 Subject: New debian/patches/0110-getpass-prototype.patch --- debian/changelog | 5 +++++ debian/patches/0110-getpass-prototype.patch | 23 +++++++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 29 insertions(+) create mode 100644 debian/patches/0110-getpass-prototype.patch diff --git a/debian/changelog b/debian/changelog index c96436b..f7b7fd6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,11 @@ ipmitool (1.8.16-3) UNRELEASED; urgency=medium * debian/rules: - Use of USB only on Linux architectures (Closes: #820007). + Thanks to Steven Chamberlain . + * New debian/patches/0110-getpass-prototype.patch: + - use necessary source dialect to ensure getpass() availability + (Closes: #819340). + Thanks to Steve Langasek . -- Jörg Frings-Fürst Wed, 13 Apr 2016 03:05:48 +0200 diff --git a/debian/patches/0110-getpass-prototype.patch b/debian/patches/0110-getpass-prototype.patch new file mode 100644 index 0000000..8b2b455 --- /dev/null +++ b/debian/patches/0110-getpass-prototype.patch @@ -0,0 +1,23 @@ +Description: use necessary source dialect to ensure getpass() availability + getpass is a deprecated function, and building with either c99 or gnu99 + does not ensure this function's availability. So instead, declare + _DEFAULT_SOURCE so that the function remains available. +Author: Steve Langasek +Origin: , +Bug: +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=819340 +Last-Update: 2016-04-13 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: trunk/lib/ipmi_main.c +=================================================================== +--- trunk.orig/lib/ipmi_main.c ++++ trunk/lib/ipmi_main.c +@@ -30,6 +30,7 @@ + * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + */ + #define _XOPEN_SOURCE 700 ++#define _DEFAULT_SOURCE + + #include + #include diff --git a/debian/patches/series b/debian/patches/series index 14e2949..2aa0edb 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -5,3 +5,4 @@ 0610-readme_typo.patch 0600-manpage_longlines.patch 0001-Dialect_change.patch +0110-getpass-prototype.patch -- cgit v1.2.3