From d52e2ca68bcbfaaed12ab7d37488c2d4592b035db7a1bee3b7405e9ead6e3bfa Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Mon, 15 Sep 2014 13:08:24 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/Base:System/syslogd?expand=0&rev=117 --- sysklogd-1.4.1-glibc.patch | 17 +++++++++++++++++ syslogd.changes | 6 ++++++ syslogd.spec | 3 +++ 3 files changed, 26 insertions(+) create mode 100644 sysklogd-1.4.1-glibc.patch diff --git a/sysklogd-1.4.1-glibc.patch b/sysklogd-1.4.1-glibc.patch new file mode 100644 index 0000000..01892ec --- /dev/null +++ b/sysklogd-1.4.1-glibc.patch @@ -0,0 +1,17 @@ +New glibc does not know about _BSD_SOURCE anymore +--- + syslogd.c | 3 +++ + 1 file changed, 3 insertions(+) + +--- syslogd.c ++++ syslogd.c 2014-09-15 13:04:29.518735502 +0000 +@@ -509,6 +509,9 @@ static char sccsid[] __attribute__ ((un + #include + #endif + ++#ifdef _DEFAULT_SOURCE ++#define _BSD_SOURCE ++#endif + #ifndef UTMP_FILE + #ifdef UTMP_FILENAME + #define UTMP_FILE UTMP_FILENAME diff --git a/syslogd.changes b/syslogd.changes index ea5662e..669e913 100644 --- a/syslogd.changes +++ b/syslogd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Sep 15 13:07:38 UTC 2014 - werner@suse.de + +- Add patch sysklogd-1.4.1-glibc.patch + newer glibc versions do not set nor use _BSD_SOURCE anymore + ------------------------------------------------------------------- Mon Sep 1 09:17:40 UTC 2014 - werner@suse.de diff --git a/syslogd.spec b/syslogd.spec index 5f3f402..aaadb19 100644 --- a/syslogd.spec +++ b/syslogd.spec @@ -82,6 +82,7 @@ Patch23: sysklogd-1.4.1-reload.dif Patch24: sysklogd-1.4.1-systemd.dif Patch25: sysklogd-1.4.1-systemd-multi.dif Patch26: sysklogd-1.4.1-systemd-sock-name.patch +Patch27: sysklogd-1.4.1-glibc.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -171,6 +172,8 @@ Authors: %patch24 -p0 -b .sd %patch25 -p0 -b .sd2 %patch26 -p0 -b .sd3 +# PATCH-FIX-SUSE Newer glibc versions do not set nor use _BSD_SOURCE anymore +%patch27 -p0 -b .glibc %patch0 -p0 %build