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

Bug#870836: imake generated makefile use deprecated -D_BSD_SOURCE and -D_SVID_SOURCE



Hi,

The attached patch against the xutils-dev git repo at salsa fixes
this for me. Note that there are also other definitions of
-D_BSD_SOURCE and -D_SVID_SOURCE in the sources, but they
probably do not affect Debian.

Best,
Teemu
From eb20e1365cb9d564ad9d06736a33105f1fd12846 Mon Sep 17 00:00:00 2001
From: Teemu Ikonen <tpikonen@gmail.com>
Date: Tue, 23 Oct 2018 15:29:38 +0300
Subject: [PATCH] New patch: 09_default_source.diff

Change -D_BSD_SOURCE and -D_SVID_SOURCE to -D_DEFAULT_SOURCE

Closes: #870836
---
 debian/patches/09_default_source.diff | 26 ++++++++++++++++++++++++++
 debian/patches/series                 |  1 +
 2 files changed, 27 insertions(+)
 create mode 100644 debian/patches/09_default_source.diff

diff --git a/debian/patches/09_default_source.diff b/debian/patches/09_default_source.diff
new file mode 100644
index 0000000..5e71e5f
--- /dev/null
+++ b/debian/patches/09_default_source.diff
@@ -0,0 +1,26 @@
+Index: git-xutils-dev/xorg-cf-files/gnu.cf
+===================================================================
+--- git-xutils-dev.orig/xorg-cf-files/gnu.cf
++++ git-xutils-dev/xorg-cf-files/gnu.cf
+@@ -245,7 +245,7 @@ InstallNamedTargetNoClobber(install,file
+ 
+ # define GnuSourceDefines	-D_POSIX_C_SOURCE=199309L \
+ 				-D_POSIX_SOURCE -D_XOPEN_SOURCE \
+-				-D_BSD_SOURCE -D_SVID_SOURCE \
++				-D_DEFAULT_SOURCE \
+ 				GnuAdditionalIncludes GnuGnuSourceDefines \
+ 				GnuLocaleDefines
+ # define XawI18nDefines		-DHAS_WCHAR_H -DHAS_WCTYPE_H -DNO_WIDEC_H
+Index: git-xutils-dev/xorg-cf-files/linux.cf
+===================================================================
+--- git-xutils-dev.orig/xorg-cf-files/linux.cf
++++ git-xutils-dev/xorg-cf-files/linux.cf
+@@ -350,7 +350,7 @@ InstallNamedTargetNoClobber(install,file
+ #if LinuxCLibMajorVersion >= 6
+ # define LinuxSourceDefines	-D_POSIX_C_SOURCE=199309L \
+ 				-D_POSIX_SOURCE -D_XOPEN_SOURCE \
+-				-D_BSD_SOURCE -D_SVID_SOURCE \
++				-D_DEFAULT_SOURCE \
+                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
+ 				LinuxAdditionalIncludes LinuxGnuSourceDefines \
+ 				LinuxLocaleDefines
diff --git a/debian/patches/series b/debian/patches/series
index c91cb22..bb9f5c2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
 06_font_path.diff
 07_gnu_manpath.diff
 08_xorg_with_xmlto.diff
+09_default_source.diff
-- 
2.11.0


Reply to: