[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#808528: Fixed FTBFS in pidgin-twitter: _BSD_SOURCE is deprecated



tags 808528 patch
thanks


The attached patch solves the problem.

Raúl
diff -ruN pidgin-twitter-0.9.2.1/debian/changelog pidgin-twitter-0.9.2.1.new/debian/changelog
--- pidgin-twitter-0.9.2.1/debian/changelog	2015-06-13 15:34:44.000000000 +0200
+++ pidgin-twitter-0.9.2.1.new/debian/changelog	2016-02-20 18:42:59.270182013 +0100
@@ -1,3 +1,9 @@
+pidgin-twitter (0.9.2.1-6) UNRELEASED; urgency=medium
+
+  * Fixed FTBFS: _BSD_SOURCE is deprecated (Closes: #808528).
+
+ -- Raúl Salinas-Monteagudo <rausalinas@gmail.com>  Sat, 20 Feb 2016 18:29:46 +0100
+
 pidgin-twitter (0.9.2.1-5) unstable; urgency=medium
 
   * Orphaned.
diff -ruN pidgin-twitter-0.9.2.1/debian/patches/fix_ftbfs_bsd_source.patch pidgin-twitter-0.9.2.1.new/debian/patches/fix_ftbfs_bsd_source.patch
--- pidgin-twitter-0.9.2.1/debian/patches/fix_ftbfs_bsd_source.patch	1970-01-01 01:00:00.000000000 +0100
+++ pidgin-twitter-0.9.2.1.new/debian/patches/fix_ftbfs_bsd_source.patch	2016-02-20 18:42:20.189988225 +0100
@@ -0,0 +1,23 @@
+Description: Fix FTBFS: _BSD_SOURCE and _SVID_SOURCE are deprecated
+ In glibc 2.20, the _BSD_SOURCE and _SVID_SOURCE feature test macros
+ were deprecated. They continue to expose the definitions that they
+ exposed in earlier glibc versions, but their use produces the warning
+ noted above. Instead, the _DEFAULT_SOURCE macro should be used.
+ All instances of #define _BSD_SOURCE and #define _SVID_SOURCE
+ in the source code were replaced with #define _DEFAULT_SOURCE
+Author: Raúl Salinas-Monteagudo <rausalinas@gmail.com>
+Bug: http://bugs.debian.org/808528
+
+Index: pidgin-twitter-0.9.2.1/pidgin-twitter.h
+===================================================================
+--- pidgin-twitter-0.9.2.1.orig/pidgin-twitter.h	2011-09-03 14:11:06.000000000 +0200
++++ pidgin-twitter-0.9.2.1/pidgin-twitter.h	2016-02-20 18:25:53.325094626 +0100
+@@ -1,7 +1,7 @@
+ #ifndef _PIDGIN_TWITTER_H_
+ #define _PIDGIN_TWITTER_H_
+ 
+-#define _BSD_SOURCE
++#define _DEFAULT_SOURCE
+ #define _XOPEN_SOURCE 600
+ #include <stdio.h>
+ #include <stdlib.h>
diff -ruN pidgin-twitter-0.9.2.1/debian/patches/series pidgin-twitter-0.9.2.1.new/debian/patches/series
--- pidgin-twitter-0.9.2.1/debian/patches/series	2013-05-11 04:02:56.000000000 +0200
+++ pidgin-twitter-0.9.2.1.new/debian/patches/series	2016-02-20 18:29:21.974129261 +0100
@@ -2,3 +2,4 @@
 enable_hardening_build_flags.patch
 initializing_value.patch
 fix_ftbfs_glib_235.patch
+fix_ftbfs_bsd_source.patch

Reply to: