summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Tkac <atkac@fedoraproject.org>2008-11-24 12:59:15 +0000
committerAdam Tkac <atkac@fedoraproject.org>2008-11-24 12:59:15 +0000
commitc768d86633425310a1c73476aa6aeac556b242b9 (patch)
tree113838e9d5d4d0db4413dab0e7dd7edfbd71a733
parenteebed2aabe39596cf613ce83001fdff293fbe679 (diff)
downloadbind-c768d86633425310a1c73476aa6aeac556b242b9.tar.gz
bind-c768d86633425310a1c73476aa6aeac556b242b9.tar.xz
bind-c768d86633425310a1c73476aa6aeac556b242b9.zip
- updates due libtool 2.2.6bind-9_6_0-0_2_1_b1_fc11
- don't pass -DLDAP_DEPRECATED to cpp, handle it directly in sources
-rw-r--r--bind-96-libtool2-libbind.patch12
-rw-r--r--bind-96-libtool2.patch13
-rw-r--r--bind-96-old-api.patch23
-rw-r--r--bind.spec33
-rw-r--r--ldap2zone.c4
5 files changed, 75 insertions, 10 deletions
diff --git a/bind-96-libtool2-libbind.patch b/bind-96-libtool2-libbind.patch
new file mode 100644
index 0000000..1a92893
--- /dev/null
+++ b/bind-96-libtool2-libbind.patch
@@ -0,0 +1,12 @@
+diff -up bind-9.6.0b1/lib/bind/configure.in.libtool2-libbind bind-9.6.0b1/lib/bind/configure.in
+--- bind-9.6.0b1/lib/bind/configure.in.libtool2-libbind 2008-11-24 13:11:18.000000000 +0100
++++ bind-9.6.0b1/lib/bind/configure.in 2008-11-24 13:11:41.000000000 +0100
+@@ -20,6 +20,8 @@ AC_PREREQ(2.13)
+
+ AC_CONFIG_HEADER(config.h)
+
++AC_CONFIG_MACRO_DIR([m4])
++
+ AC_CANONICAL_HOST
+
+ AC_PROG_MAKE_SET
diff --git a/bind-96-libtool2.patch b/bind-96-libtool2.patch
new file mode 100644
index 0000000..8ceba2f
--- /dev/null
+++ b/bind-96-libtool2.patch
@@ -0,0 +1,13 @@
+diff -up bind-9.6.0b1/configure.in.libtool2 bind-9.6.0b1/configure.in
+--- bind-9.6.0b1/configure.in.libtool2 2008-11-24 13:05:37.000000000 +0100
++++ bind-9.6.0b1/configure.in 2008-11-24 13:05:56.000000000 +0100
+@@ -27,6 +27,8 @@ AC_CONFIG_SUBDIRS(lib/bind)
+
+ AC_CONFIG_HEADER(config.h)
+
++AC_CONFIG_MACRO_DIR([m4])
++
+ AC_CANONICAL_HOST
+
+ AC_PROG_MAKE_SET
+diff -up bind-9.6.0b1/Makefile.in.libtool2 bind-9.6.0b1/Makefile.in
diff --git a/bind-96-old-api.patch b/bind-96-old-api.patch
new file mode 100644
index 0000000..d181d3e
--- /dev/null
+++ b/bind-96-old-api.patch
@@ -0,0 +1,23 @@
+diff -up bind-9.6.0b1/contrib/sdb/ldap/ldapdb.c.old-api bind-9.6.0b1/contrib/sdb/ldap/ldapdb.c
+--- bind-9.6.0b1/contrib/sdb/ldap/ldapdb.c.old-api 2008-11-24 13:28:13.000000000 +0100
++++ bind-9.6.0b1/contrib/sdb/ldap/ldapdb.c 2008-11-24 13:28:23.000000000 +0100
+@@ -25,6 +25,7 @@
+ /* Using LDAPv3 by default, change this if you want v2 */
+ #ifndef LDAPDB_LDAP_VERSION
+ #define LDAPDB_LDAP_VERSION 3
++#define LDAP_DEPRECATED 1
+ #endif
+
+ #include <config.h>
+diff -up bind-9.6.0b1/contrib/sdb/ldap/zone2ldap.c.old-api bind-9.6.0b1/contrib/sdb/ldap/zone2ldap.c
+--- bind-9.6.0b1/contrib/sdb/ldap/zone2ldap.c.old-api 2008-11-24 13:29:05.000000000 +0100
++++ bind-9.6.0b1/contrib/sdb/ldap/zone2ldap.c 2008-11-24 13:29:14.000000000 +0100
+@@ -13,6 +13,8 @@
+ * ditched dNSDomain2 schema support. Version 0.3-ALPHA
+ */
+
++#define LDAP_DEPRECATED 1
++
+ #include <errno.h>
+ #include <string.h>
+ #include <stdlib.h>
diff --git a/bind.spec b/bind.spec
index 50e21e7..974a6bf 100644
--- a/bind.spec
+++ b/bind.spec
@@ -18,7 +18,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv
Name: bind
License: ISC
Version: 9.6.0
-Release: 0.2.%{PREVER}%{?dist}
+Release: 0.2.1.%{PREVER}%{?dist}
Epoch: 32
Url: http://www.isc.org/products/BIND/
Buildroot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -60,8 +60,11 @@ Patch95: bind-95-sdlz-include.patch
Patch96: bind-95-rh469440.patch
%if %{LIBBIND}
Patch97: bind-96-temporary-libbind.patch
+Patch100:bind-96-libtool2-libbind.patch
%endif
Patch98: bind-96-libxml2.patch
+Patch99: bind-96-libtool2.patch
+Patch101:bind-96-old-api.patch
# SDB patches
Patch11: bind-9.3.2b2-sdbsrc.patch
@@ -185,6 +188,7 @@ sed -i 's/SUBDIRS\(.*\)/SUBDIRS\1 lib\/bind/' Makefile.in
%patch10 -p1 -b .PIE
%patch16 -p1 -b .redhat_doc
%if %{SDB}
+%patch101 -p1 -b .old-api
mkdir bin/named-sdb
cp -r bin/named/* bin/named-sdb
%patch11 -p1 -b .sdbsrc
@@ -231,6 +235,14 @@ cp -fp contrib/sdb/sqlite/zone2sqlite.c bin/sdb_tools
%patch96 -p1 -b .rh469440
%patch98 -p1 -b .libxml2
+# XXX due new libtool. Not sure about proper upstream approach yet.
+mkdir m4
+%patch99 -p1 -b .libtool2
+%if %{LIBBIND}
+mkdir lib/bind/m4
+%patch100 -p1 -b .libtool2-libbind
+%endif
+
# Sparc and s390 arches need to use -fPIE
%ifarch sparcv9 sparc64 s390 s390x
for i in bin/named{,-sdb}/{,unix}/Makefile.in; do
@@ -242,20 +254,20 @@ done
%build
export CFLAGS="$CFLAGS $RPM_OPT_FLAGS"
-export CPPFLAGS="$CPPFLAGS -DLDAP_DEPRECATED -D_GNU_SOURCE"
+export CPPFLAGS="$CPPFLAGS"
export STD_CFLAGS="$CPPFLAGS"
sed -i -e \
's/RELEASEVER=\(.*\)/RELEASEVER=\1-RedHat-%{version}-%{release}/' \
version
-libtoolize -c -f; aclocal --force; autoheader -f; autoconf -f
+%if %{LIBBIND}
+pushd lib/bind
+libtoolize -c -f; aclocal -I m4 --force; autoconf -f
+popd
+%endif
+libtoolize -c -f; aclocal -I m4 --force; autoheader -f; autoconf -f
-if pkg-config openssl ; then
- export CFLAGS="$CFLAGS `pkg-config --cflags openssl`"
- export CPPFLAGS="$CPPFLAGS `pkg-config --cflags-only-I openssl`"
- export LDFLAGS="$LDFLAGS `pkg-config --libs-only-L openssl`"
-fi
%configure \
--with-libtool \
--localstatedir=/var \
@@ -275,7 +287,6 @@ fi
--disable-isc-spnego \
%endif
;
-if [ -s openssl_config.h ]; then cat openssl_config.h >> config.h ; fi;
make %{?_smp_mflags}
%if %{test}
@@ -589,6 +600,10 @@ rm -rf ${RPM_BUILD_ROOT}
%ghost %{chroot_prefix}/etc/localtime
%changelog
+* Mon Nov 24 2008 Adam Tkac <atkac redhat com> 32:9.6.0-0.2.1.b1
+- updates due libtool 2.2.6
+- don't pass -DLDAP_DEPRECATED to cpp, handle it directly in sources
+
* Tue Nov 11 2008 Adam Tkac <atkac redhat com> 32:9.6.0-0.2.b1
- make statistics http server working, patch backported from 9.6 HEAD
diff --git a/ldap2zone.c b/ldap2zone.c
index 58fc515..80e7919 100644
--- a/ldap2zone.c
+++ b/ldap2zone.c
@@ -1,12 +1,14 @@
/*
* Copyright (C) 2004, 2005 Stig Venaas <venaas@uninett.no>
- * $Id: ldap2zone.c,v 0.1 2005/04/23 21:30:12 venaas Exp $
+ * $Id: ldap2zone.c,v 1.1 2007/07/24 15:18:00 atkac Exp $
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*/
+#define LDAP_DEPRECATED 1
+
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>