[bind-dyndb-ldap] Remove #define _BSD_SOURCE.
pspacek
pspacek at fedoraproject.org
Mon Feb 24 15:55:03 UTC 2014
commit bc36187386ac599868917509ad10c67aed5cf2fc
Author: Petr Spacek <pspacek at redhat.com>
Date: Mon Feb 24 16:53:34 2014 +0100
Remove #define _BSD_SOURCE.
Signed-off-by: Petr Spacek <pspacek at redhat.com>
...-0228-Drop-unnecessary-define-_BSD_SOURCE.patch | 26 ++++++++++++++++++++
bind-dyndb-ldap.spec | 9 ++++++-
2 files changed, 34 insertions(+), 1 deletions(-)
---
diff --git a/bind-dyndb-ldap-pspacek-0228-Drop-unnecessary-define-_BSD_SOURCE.patch b/bind-dyndb-ldap-pspacek-0228-Drop-unnecessary-define-_BSD_SOURCE.patch
new file mode 100644
index 0000000..42eeb6e
--- /dev/null
+++ b/bind-dyndb-ldap-pspacek-0228-Drop-unnecessary-define-_BSD_SOURCE.patch
@@ -0,0 +1,26 @@
+From 1b5105e3ab92f2a898313da5f7e20e6f3e9d1d2a Mon Sep 17 00:00:00 2001
+From: Petr Spacek <pspacek at redhat.com>
+Date: Mon, 24 Feb 2014 16:48:09 +0100
+Subject: [PATCH] Drop unnecessary #define _BSD_SOURCE.
+
+Signed-off-by: Petr Spacek <pspacek at redhat.com>
+---
+ src/krb5_helper.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/src/krb5_helper.c b/src/krb5_helper.c
+index d1787209483f2ae49b480492290ff5d4bafc677c..71f4fff9fec551abbd81e25c59de80d2ded0dfc6 100644
+--- a/src/krb5_helper.c
++++ b/src/krb5_helper.c
+@@ -15,8 +15,6 @@
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+-#define _BSD_SOURCE
+-
+ #include <isc/util.h>
+ #include <string.h>
+ #include <stdlib.h>
+--
+1.8.5.3
+
diff --git a/bind-dyndb-ldap.spec b/bind-dyndb-ldap.spec
index 16fcea7..4acbc64 100644
--- a/bind-dyndb-ldap.spec
+++ b/bind-dyndb-ldap.spec
@@ -2,7 +2,7 @@
Name: bind-dyndb-ldap
Version: 4.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: LDAP back-end plug-in for BIND
Group: System Environment/Libraries
@@ -18,6 +18,8 @@ BuildRequires: automake, autoconf, libtool
Requires: bind >= 32:9.9.0-1
+Patch0: bind-dyndb-ldap-pspacek-0228-Drop-unnecessary-define-_BSD_SOURCE.patch
+
%description
This package provides an LDAP back-end plug-in for BIND. It features
support for dynamic updates and internal caching, to lift the load
@@ -27,6 +29,8 @@ off of your LDAP server.
%prep
%setup -q -n %{name}-%{VERSION}
+%patch0 -p1 -b .p0228
+
%build
export CFLAGS="`isc-config.sh --cflags dns` $RPM_OPT_FLAGS"
autoreconf -fiv
@@ -75,6 +79,9 @@ rm -rf %{buildroot}
%changelog
+* Mon Feb 24 2014 Petr Spacek <pspacek redhat com> 4.1-2
+- remove deprecated define _BSD_SOURCE
+
* Mon Feb 24 2014 Petr Spacek <pspacek redhat com> 4.1-1
- update to 4.1
More information about the scm-commits
mailing list