- updates due libtool 2.2.6
- don't pass -DLDAP_DEPRECATED to cpp, handle it directly in sources
This commit is contained in:
parent
eebed2aabe
commit
c768d86633
12
bind-96-libtool2-libbind.patch
Normal file
12
bind-96-libtool2-libbind.patch
Normal file
@ -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
|
13
bind-96-libtool2.patch
Normal file
13
bind-96-libtool2.patch
Normal file
@ -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
|
23
bind-96-old-api.patch
Normal file
23
bind-96-old-api.patch
Normal file
@ -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>
|
33
bind.spec
33
bind.spec
@ -18,7 +18,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv
|
|||||||
Name: bind
|
Name: bind
|
||||||
License: ISC
|
License: ISC
|
||||||
Version: 9.6.0
|
Version: 9.6.0
|
||||||
Release: 0.2.%{PREVER}%{?dist}
|
Release: 0.2.1.%{PREVER}%{?dist}
|
||||||
Epoch: 32
|
Epoch: 32
|
||||||
Url: http://www.isc.org/products/BIND/
|
Url: http://www.isc.org/products/BIND/
|
||||||
Buildroot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
Buildroot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@ -60,8 +60,11 @@ Patch95: bind-95-sdlz-include.patch
|
|||||||
Patch96: bind-95-rh469440.patch
|
Patch96: bind-95-rh469440.patch
|
||||||
%if %{LIBBIND}
|
%if %{LIBBIND}
|
||||||
Patch97: bind-96-temporary-libbind.patch
|
Patch97: bind-96-temporary-libbind.patch
|
||||||
|
Patch100:bind-96-libtool2-libbind.patch
|
||||||
%endif
|
%endif
|
||||||
Patch98: bind-96-libxml2.patch
|
Patch98: bind-96-libxml2.patch
|
||||||
|
Patch99: bind-96-libtool2.patch
|
||||||
|
Patch101:bind-96-old-api.patch
|
||||||
|
|
||||||
# SDB patches
|
# SDB patches
|
||||||
Patch11: bind-9.3.2b2-sdbsrc.patch
|
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
|
%patch10 -p1 -b .PIE
|
||||||
%patch16 -p1 -b .redhat_doc
|
%patch16 -p1 -b .redhat_doc
|
||||||
%if %{SDB}
|
%if %{SDB}
|
||||||
|
%patch101 -p1 -b .old-api
|
||||||
mkdir bin/named-sdb
|
mkdir bin/named-sdb
|
||||||
cp -r bin/named/* bin/named-sdb
|
cp -r bin/named/* bin/named-sdb
|
||||||
%patch11 -p1 -b .sdbsrc
|
%patch11 -p1 -b .sdbsrc
|
||||||
@ -231,6 +235,14 @@ cp -fp contrib/sdb/sqlite/zone2sqlite.c bin/sdb_tools
|
|||||||
%patch96 -p1 -b .rh469440
|
%patch96 -p1 -b .rh469440
|
||||||
%patch98 -p1 -b .libxml2
|
%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
|
# Sparc and s390 arches need to use -fPIE
|
||||||
%ifarch sparcv9 sparc64 s390 s390x
|
%ifarch sparcv9 sparc64 s390 s390x
|
||||||
for i in bin/named{,-sdb}/{,unix}/Makefile.in; do
|
for i in bin/named{,-sdb}/{,unix}/Makefile.in; do
|
||||||
@ -242,20 +254,20 @@ done
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$CFLAGS $RPM_OPT_FLAGS"
|
export CFLAGS="$CFLAGS $RPM_OPT_FLAGS"
|
||||||
export CPPFLAGS="$CPPFLAGS -DLDAP_DEPRECATED -D_GNU_SOURCE"
|
export CPPFLAGS="$CPPFLAGS"
|
||||||
export STD_CFLAGS="$CPPFLAGS"
|
export STD_CFLAGS="$CPPFLAGS"
|
||||||
|
|
||||||
sed -i -e \
|
sed -i -e \
|
||||||
's/RELEASEVER=\(.*\)/RELEASEVER=\1-RedHat-%{version}-%{release}/' \
|
's/RELEASEVER=\(.*\)/RELEASEVER=\1-RedHat-%{version}-%{release}/' \
|
||||||
version
|
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 \
|
%configure \
|
||||||
--with-libtool \
|
--with-libtool \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
@ -275,7 +287,6 @@ fi
|
|||||||
--disable-isc-spnego \
|
--disable-isc-spnego \
|
||||||
%endif
|
%endif
|
||||||
;
|
;
|
||||||
if [ -s openssl_config.h ]; then cat openssl_config.h >> config.h ; fi;
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%if %{test}
|
%if %{test}
|
||||||
@ -589,6 +600,10 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%ghost %{chroot_prefix}/etc/localtime
|
%ghost %{chroot_prefix}/etc/localtime
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- make statistics http server working, patch backported from 9.6 HEAD
|
||||||
|
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2004, 2005 Stig Venaas <venaas@uninett.no>
|
* 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
|
* Permission to use, copy, modify, and distribute this software for any
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
* copyright notice and this permission notice appear in all copies.
|
* copyright notice and this permission notice appear in all copies.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define LDAP_DEPRECATED 1
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user