summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2012-10-11 13:34:19 +0200
committerAdam Tkac <atkac@redhat.com>2012-10-11 13:34:19 +0200
commitd6323c1def4505ce1e2879f0d1cc0a668cc090ed (patch)
treef56636441ef232a791f6b86938419b9be7041c3b
parent2aeaf22a1af794d3a844a84c349945054861daa0 (diff)
downloadbind-d6323c1def4505ce1e2879f0d1cc0a668cc090ed.tar.gz
bind-d6323c1def4505ce1e2879f0d1cc0a668cc090ed.tar.xz
bind-d6323c1def4505ce1e2879f0d1cc0a668cc090ed.zip
Update to 9.9.2
- bind97-rh714049.patch has been dropped - patches merged - bind98-rh816164.patch Signed-off-by: Adam Tkac <atkac@redhat.com>
-rw-r--r--.gitignore1
-rw-r--r--bind-9.5-sdb.patch46
-rw-r--r--bind-96-dyndb.patch88
-rw-r--r--bind.spec20
-rw-r--r--bind97-rh714049.patch160
-rw-r--r--bind98-rh816164.patch41
-rw-r--r--bind99-buildfix.patch10
-rw-r--r--sources2
8 files changed, 86 insertions, 282 deletions
diff --git a/.gitignore b/.gitignore
index cc7c0d1..b6deb00 100644
--- a/.gitignore
+++ b/.gitignore
@@ -25,3 +25,4 @@ bind-9.7.2b1.tar.gz
/bind-9.9.1-P1.tar.gz
/bind-9.9.1-P2.tar.gz
/bind-9.9.1-P3.tar.gz
+/bind-9.9.2.tar.gz
diff --git a/bind-9.5-sdb.patch b/bind-9.5-sdb.patch
index 354c3f2..4bbf2a8 100644
--- a/bind-9.5-sdb.patch
+++ b/bind-9.5-sdb.patch
@@ -1,20 +1,20 @@
-diff -up bind-9.8.1rc1/bin/Makefile.in.sdb bind-9.8.1rc1/bin/Makefile.in
---- bind-9.8.1rc1/bin/Makefile.in.sdb 2009-10-05 14:07:08.000000000 +0200
-+++ bind-9.8.1rc1/bin/Makefile.in 2011-08-31 14:34:24.049049431 +0200
+diff -up bind-9.9.2/bin/Makefile.in.sdb bind-9.9.2/bin/Makefile.in
+--- bind-9.9.2/bin/Makefile.in.sdb 2012-09-27 02:35:19.000000000 +0200
++++ bind-9.9.2/bin/Makefile.in 2012-10-11 13:23:43.933988077 +0200
@@ -19,8 +19,8 @@ srcdir = @srcdir@
VPATH = @srcdir@
top_srcdir = @top_srcdir@
-SUBDIRS = named rndc dig dnssec tests tools nsupdate \
-- check confgen @PKCS11_TOOLS@
+- check confgen @PYTHON_TOOLS@ @PKCS11_TOOLS@
+SUBDIRS = named named-sdb rndc dig dnssec tests tools nsupdate \
-+ check confgen @PKCS11_TOOLS@ sdb_tools
++ check confgen @PYTHON_TOOLS@ @PKCS11_TOOLS@ sdb_tools
TARGETS =
@BIND9_MAKE_RULES@
-diff -up bind-9.8.1rc1/bin/named/Makefile.in.sdb bind-9.8.1rc1/bin/named/Makefile.in
---- bind-9.8.1rc1/bin/named/Makefile.in.sdb 2011-08-31 14:34:23.927049440 +0200
-+++ bind-9.8.1rc1/bin/named/Makefile.in 2011-08-31 14:39:33.980027898 +0200
+diff -up bind-9.9.2/bin/named/Makefile.in.sdb bind-9.9.2/bin/named/Makefile.in
+--- bind-9.9.2/bin/named/Makefile.in.sdb 2012-10-11 13:21:35.877105690 +0200
++++ bind-9.9.2/bin/named/Makefile.in 2012-10-11 13:21:36.099105521 +0200
@@ -45,7 +45,7 @@ CINCLUDES = -I${srcdir}/include -I${srcd
${ISCCFG_INCLUDES} ${ISCCC_INCLUDES} ${ISC_INCLUDES} \
${DLZDRIVER_INCLUDES} ${DBDRIVER_INCLUDES} @DST_OPENSSL_INC@
@@ -24,7 +24,7 @@ diff -up bind-9.8.1rc1/bin/named/Makefile.in.sdb bind-9.8.1rc1/bin/named/Makefil
CWARNINGS =
-@@ -69,11 +69,11 @@ DEPLIBS = ${LWRESDEPLIBS} ${DNSDEPLIBS}
+@@ -69,11 +69,11 @@ DEPLIBS = ${LWRESDEPLIBS} ${DNSDEPLIBS}
LIBS = ${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} \
${ISCCFGLIBS} ${ISCCCLIBS} ${ISCLIBS} \
@@ -64,9 +64,9 @@ diff -up bind-9.8.1rc1/bin/named/Makefile.in.sdb bind-9.8.1rc1/bin/named/Makefil
${INSTALL_DATA} ${srcdir}/named.conf.5 ${DESTDIR}${mandir}/man5
-
-@DLZ_DRIVER_RULES@
-diff -up bind-9.8.1rc1/bin/named-sdb/main.c.sdb bind-9.8.1rc1/bin/named-sdb/main.c
---- bind-9.8.1rc1/bin/named-sdb/main.c.sdb 2011-08-31 14:34:23.977049436 +0200
-+++ bind-9.8.1rc1/bin/named-sdb/main.c 2011-08-31 14:40:09.833025405 +0200
+diff -up bind-9.9.2/bin/named-sdb/main.c.sdb bind-9.9.2/bin/named-sdb/main.c
+--- bind-9.9.2/bin/named-sdb/main.c.sdb 2012-10-11 13:21:36.052105556 +0200
++++ bind-9.9.2/bin/named-sdb/main.c 2012-10-11 13:21:36.099105521 +0200
@@ -83,6 +83,9 @@
* Include header files for database drivers here.
*/
@@ -77,7 +77,7 @@ diff -up bind-9.8.1rc1/bin/named-sdb/main.c.sdb bind-9.8.1rc1/bin/named-sdb/main
#ifdef CONTRIB_DLZ
/*
-@@ -787,6 +790,10 @@ setup(void) {
+@@ -802,6 +805,10 @@ setup(void) {
ns_main_earlyfatal("isc_app_start() failed: %s",
isc_result_totext(result));
@@ -88,7 +88,7 @@ diff -up bind-9.8.1rc1/bin/named-sdb/main.c.sdb bind-9.8.1rc1/bin/named-sdb/main
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
ISC_LOG_NOTICE, "starting BIND %s%s", ns_g_version,
saved_command_line);
-@@ -880,6 +887,57 @@ setup(void) {
+@@ -914,6 +921,57 @@ setup(void) {
isc_result_totext(result));
#endif
@@ -146,7 +146,7 @@ diff -up bind-9.8.1rc1/bin/named-sdb/main.c.sdb bind-9.8.1rc1/bin/named-sdb/main
ns_server_create(ns_g_mctx, &ns_g_server);
}
-@@ -911,6 +969,10 @@ cleanup(void) {
+@@ -945,6 +1003,10 @@ cleanup(void) {
dns_name_destroy();
@@ -157,9 +157,9 @@ diff -up bind-9.8.1rc1/bin/named-sdb/main.c.sdb bind-9.8.1rc1/bin/named-sdb/main
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
ISC_LOG_NOTICE, "exiting");
ns_log_shutdown();
-diff -up bind-9.8.1rc1/bin/named-sdb/Makefile.in.sdb bind-9.8.1rc1/bin/named-sdb/Makefile.in
---- bind-9.8.1rc1/bin/named-sdb/Makefile.in.sdb 2011-08-31 14:34:23.960049438 +0200
-+++ bind-9.8.1rc1/bin/named-sdb/Makefile.in 2011-08-31 14:34:24.051049431 +0200
+diff -up bind-9.9.2/bin/named-sdb/Makefile.in.sdb bind-9.9.2/bin/named-sdb/Makefile.in
+--- bind-9.9.2/bin/named-sdb/Makefile.in.sdb 2012-10-11 13:21:36.045105563 +0200
++++ bind-9.9.2/bin/named-sdb/Makefile.in 2012-10-11 13:21:36.100105520 +0200
@@ -28,10 +28,10 @@ top_srcdir = @top_srcdir@
#
# Add database drivers here.
@@ -209,10 +209,10 @@ diff -up bind-9.8.1rc1/bin/named-sdb/Makefile.in.sdb bind-9.8.1rc1/bin/named-sdb
+ ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} named-sdb@EXEEXT@ ${DESTDIR}${sbindir}
@DLZ_DRIVER_RULES@
-diff -up bind-9.8.1rc1/configure.in.sdb bind-9.8.1rc1/configure.in
---- bind-9.8.1rc1/configure.in.sdb 2011-07-26 23:59:57.000000000 +0200
-+++ bind-9.8.1rc1/configure.in 2011-08-31 14:34:24.053049431 +0200
-@@ -3423,9 +3423,12 @@ AC_CONFIG_FILES([
+diff -up bind-9.9.2/configure.in.sdb bind-9.9.2/configure.in
+--- bind-9.9.2/configure.in.sdb 2012-10-11 13:21:36.000000000 +0200
++++ bind-9.9.2/configure.in 2012-10-11 13:24:35.710940464 +0200
+@@ -3571,11 +3571,14 @@ AC_CONFIG_FILES([
bin/dnssec/Makefile
bin/named/Makefile
bin/named/unix/Makefile
@@ -220,6 +220,8 @@ diff -up bind-9.8.1rc1/configure.in.sdb bind-9.8.1rc1/configure.in
+ bin/named-sdb/unix/Makefile
bin/nsupdate/Makefile
bin/pkcs11/Makefile
+ bin/python/Makefile
+ bin/python/dnssec-checkds.py
bin/rndc/Makefile
+ bin/sdb_tools/Makefile
bin/tests/Makefile
diff --git a/bind-96-dyndb.patch b/bind-96-dyndb.patch
index bc9bc4a..7593059 100644
--- a/bind-96-dyndb.patch
+++ b/bind-96-dyndb.patch
@@ -1,6 +1,6 @@
-diff -up bind-9.9.0/bin/named/main.c.dyndb bind-9.9.0/bin/named/main.c
---- bind-9.9.0/bin/named/main.c.dyndb 2012-02-07 00:46:22.000000000 +0100
-+++ bind-9.9.0/bin/named/main.c 2012-03-05 13:53:07.260068145 +0100
+diff -up bind-9.9.2/bin/named/main.c.dyndb bind-9.9.2/bin/named/main.c
+--- bind-9.9.2/bin/named/main.c.dyndb 2012-09-27 02:35:19.000000000 +0200
++++ bind-9.9.2/bin/named/main.c 2012-10-11 13:13:10.626497598 +0200
@@ -45,6 +45,7 @@
#include <isccc/result.h>
@@ -9,9 +9,9 @@ diff -up bind-9.9.0/bin/named/main.c.dyndb bind-9.9.0/bin/named/main.c
#include <dns/name.h>
#include <dns/result.h>
#include <dns/view.h>
-diff -up bind-9.9.0/bin/named/server.c.dyndb bind-9.9.0/bin/named/server.c
---- bind-9.9.0/bin/named/server.c.dyndb 2012-02-23 08:02:18.000000000 +0100
-+++ bind-9.9.0/bin/named/server.c 2012-03-05 13:54:03.620914961 +0100
+diff -up bind-9.9.2/bin/named/server.c.dyndb bind-9.9.2/bin/named/server.c
+--- bind-9.9.2/bin/named/server.c.dyndb 2012-09-27 02:35:19.000000000 +0200
++++ bind-9.9.2/bin/named/server.c 2012-10-11 13:13:10.630497590 +0200
@@ -63,6 +63,7 @@
#include <dns/db.h>
#include <dns/dispatch.h>
@@ -93,7 +93,7 @@ diff -up bind-9.9.0/bin/named/server.c.dyndb bind-9.9.0/bin/named/server.c
disable_algorithms(const cfg_obj_t *disabled, dns_resolver_t *resolver) {
isc_result_t result;
const cfg_obj_t *algorithms;
-@@ -1572,6 +1639,7 @@ configure_view(dns_view_t *view, cfg_obj
+@@ -1586,6 +1653,7 @@ configure_view(dns_view_t *view, cfg_obj
const cfg_obj_t *dlz;
unsigned int dlzargc;
char **dlzargv;
@@ -101,7 +101,7 @@ diff -up bind-9.9.0/bin/named/server.c.dyndb bind-9.9.0/bin/named/server.c
const cfg_obj_t *disabled;
const cfg_obj_t *obj;
const cfg_listelt_t *element;
-@@ -1801,6 +1869,8 @@ configure_view(dns_view_t *view, cfg_obj
+@@ -1816,6 +1884,8 @@ configure_view(dns_view_t *view, cfg_obj
}
}
@@ -110,7 +110,7 @@ diff -up bind-9.9.0/bin/named/server.c.dyndb bind-9.9.0/bin/named/server.c
/*
* Obtain configuration parameters that affect the decision of whether
* we can reuse/share an existing cache.
-@@ -2693,6 +2763,37 @@ configure_view(dns_view_t *view, cfg_obj
+@@ -2721,6 +2791,37 @@ configure_view(dns_view_t *view, cfg_obj
dns_view_setrootdelonly(view, ISC_FALSE);
/*
@@ -148,7 +148,7 @@ diff -up bind-9.9.0/bin/named/server.c.dyndb bind-9.9.0/bin/named/server.c
* Setup automatic empty zones. If recursion is off then
* they are disabled by default.
*/
-@@ -4340,6 +4441,7 @@ load_configuration(const char *filename,
+@@ -4388,6 +4489,7 @@ load_configuration(const char *filename,
cfg_aclconfctx_detach(&ns_g_aclconfctx);
CHECK(cfg_aclconfctx_create(ns_g_mctx, &ns_g_aclconfctx));
@@ -156,7 +156,7 @@ diff -up bind-9.9.0/bin/named/server.c.dyndb bind-9.9.0/bin/named/server.c
/*
* Parse the global default pseudo-config file.
*/
-@@ -5434,6 +5536,8 @@ shutdown_server(isc_task_t *task, isc_ev
+@@ -5493,6 +5595,8 @@ shutdown_server(isc_task_t *task, isc_ev
dns_view_detach(&view);
}
@@ -165,9 +165,9 @@ diff -up bind-9.9.0/bin/named/server.c.dyndb bind-9.9.0/bin/named/server.c
while ((nsc = ISC_LIST_HEAD(server->cachelist)) != NULL) {
ISC_LIST_UNLINK(server->cachelist, nsc, link);
dns_cache_detach(&nsc->cache);
-diff -up bind-9.9.0/lib/dns/dynamic_db.c.dyndb bind-9.9.0/lib/dns/dynamic_db.c
---- bind-9.9.0/lib/dns/dynamic_db.c.dyndb 2012-03-05 13:53:07.249068386 +0100
-+++ bind-9.9.0/lib/dns/dynamic_db.c 2012-03-05 13:53:07.250068364 +0100
+diff -up bind-9.9.2/lib/dns/dynamic_db.c.dyndb bind-9.9.2/lib/dns/dynamic_db.c
+--- bind-9.9.2/lib/dns/dynamic_db.c.dyndb 2012-10-11 13:13:10.630497590 +0200
++++ bind-9.9.2/lib/dns/dynamic_db.c 2012-10-11 13:13:10.630497590 +0200
@@ -0,0 +1,366 @@
+/*
+ * Copyright (C) 2008-2011 Red Hat, Inc.
@@ -535,9 +535,9 @@ diff -up bind-9.9.0/lib/dns/dynamic_db.c.dyndb bind-9.9.0/lib/dns/dynamic_db.c
+
+ return args->timermgr;
+}
-diff -up bind-9.9.0/lib/dns/include/dns/dynamic_db.h.dyndb bind-9.9.0/lib/dns/include/dns/dynamic_db.h
---- bind-9.9.0/lib/dns/include/dns/dynamic_db.h.dyndb 2012-03-05 13:53:07.250068364 +0100
-+++ bind-9.9.0/lib/dns/include/dns/dynamic_db.h 2012-03-05 13:53:07.250068364 +0100
+diff -up bind-9.9.2/lib/dns/include/dns/dynamic_db.h.dyndb bind-9.9.2/lib/dns/include/dns/dynamic_db.h
+--- bind-9.9.2/lib/dns/include/dns/dynamic_db.h.dyndb 2012-10-11 13:13:10.631497588 +0200
++++ bind-9.9.2/lib/dns/include/dns/dynamic_db.h 2012-10-11 13:13:10.631497588 +0200
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2008-2011 Red Hat, Inc.
@@ -589,20 +589,20 @@ diff -up bind-9.9.0/lib/dns/include/dns/dynamic_db.h.dyndb bind-9.9.0/lib/dns/in
+isc_timermgr_t *dns_dyndb_get_timermgr(dns_dyndb_arguments_t *args);
+
+#endif
-diff -up bind-9.9.0/lib/dns/include/dns/log.h.dyndb bind-9.9.0/lib/dns/include/dns/log.h
---- bind-9.9.0/lib/dns/include/dns/log.h.dyndb 2011-10-14 00:48:24.000000000 +0200
-+++ bind-9.9.0/lib/dns/include/dns/log.h 2012-03-05 13:53:07.250068364 +0100
-@@ -75,6 +75,7 @@ LIBDNS_EXTERNAL_DATA extern isc_logmodul
- #define DNS_LOGMODULE_ACACHE (&dns_modules[25])
+diff -up bind-9.9.2/lib/dns/include/dns/log.h.dyndb bind-9.9.2/lib/dns/include/dns/log.h
+--- bind-9.9.2/lib/dns/include/dns/log.h.dyndb 2012-09-27 02:35:19.000000000 +0200
++++ bind-9.9.2/lib/dns/include/dns/log.h 2012-10-11 13:13:45.309399482 +0200
+@@ -76,6 +76,7 @@ LIBDNS_EXTERNAL_DATA extern isc_logmodul
#define DNS_LOGMODULE_DLZ (&dns_modules[26])
#define DNS_LOGMODULE_DNSSEC (&dns_modules[27])
-+#define DNS_LOGMODULE_DYNDB (&dns_modules[28])
+ #define DNS_LOGMODULE_CRYPTO (&dns_modules[28])
++#define DNS_LOGMODULE_DYNDB (&dns_modules[29])
ISC_LANG_BEGINDECLS
-diff -up bind-9.9.0/lib/dns/include/dns/Makefile.in.dyndb bind-9.9.0/lib/dns/include/dns/Makefile.in
---- bind-9.9.0/lib/dns/include/dns/Makefile.in.dyndb 2011-11-14 19:32:34.000000000 +0100
-+++ bind-9.9.0/lib/dns/include/dns/Makefile.in 2012-03-05 13:53:07.251068342 +0100
+diff -up bind-9.9.2/lib/dns/include/dns/Makefile.in.dyndb bind-9.9.2/lib/dns/include/dns/Makefile.in
+--- bind-9.9.2/lib/dns/include/dns/Makefile.in.dyndb 2012-09-27 02:35:19.000000000 +0200
++++ bind-9.9.2/lib/dns/include/dns/Makefile.in 2012-10-11 13:13:10.632497587 +0200
@@ -22,7 +22,7 @@ top_srcdir = @top_srcdir@
@BIND9_VERSION@
@@ -612,9 +612,9 @@ diff -up bind-9.9.0/lib/dns/include/dns/Makefile.in.dyndb bind-9.9.0/lib/dns/inc
dlz.h dnssec.h ds.h events.h fixedname.h iptable.h journal.h \
keyflags.h keytable.h keyvalues.h lib.h log.h \
master.h masterdump.h message.h name.h ncache.h nsec.h \
-diff -up bind-9.9.0/lib/dns/include/dns/types.h.dyndb bind-9.9.0/lib/dns/include/dns/types.h
---- bind-9.9.0/lib/dns/include/dns/types.h.dyndb 2011-12-08 17:07:21.000000000 +0100
-+++ bind-9.9.0/lib/dns/include/dns/types.h 2012-03-05 13:53:07.251068342 +0100
+diff -up bind-9.9.2/lib/dns/include/dns/types.h.dyndb bind-9.9.2/lib/dns/include/dns/types.h
+--- bind-9.9.2/lib/dns/include/dns/types.h.dyndb 2012-09-27 02:35:19.000000000 +0200
++++ bind-9.9.2/lib/dns/include/dns/types.h 2012-10-11 13:13:10.632497587 +0200
@@ -60,6 +60,7 @@ typedef struct dns_dbtable dns_dbtable
typedef void dns_dbversion_t;
typedef struct dns_dlzimplementation dns_dlzimplementation_t;
@@ -623,21 +623,21 @@ diff -up bind-9.9.0/lib/dns/include/dns/types.h.dyndb bind-9.9.0/lib/dns/include
typedef struct dns_sdlzimplementation dns_sdlzimplementation_t;
typedef struct dns_decompress dns_decompress_t;
typedef struct dns_dispatch dns_dispatch_t;
-diff -up bind-9.9.0/lib/dns/log.c.dyndb bind-9.9.0/lib/dns/log.c
---- bind-9.9.0/lib/dns/log.c.dyndb 2011-10-14 00:48:24.000000000 +0200
-+++ bind-9.9.0/lib/dns/log.c 2012-03-05 13:53:07.251068342 +0100
-@@ -81,6 +81,7 @@ LIBDNS_EXTERNAL_DATA isc_logmodule_t dns
- { "dns/acache", 0 },
+diff -up bind-9.9.2/lib/dns/log.c.dyndb bind-9.9.2/lib/dns/log.c
+--- bind-9.9.2/lib/dns/log.c.dyndb 2012-09-27 02:35:19.000000000 +0200
++++ bind-9.9.2/lib/dns/log.c 2012-10-11 13:15:15.085414483 +0200
+@@ -82,6 +82,7 @@ LIBDNS_EXTERNAL_DATA isc_logmodule_t dns
{ "dns/dlz", 0 },
{ "dns/dnssec", 0 },
+ { "dns/crypto", 0 },
+ { "dns/dynamic_db", 0 },
{ NULL, 0 }
};
-diff -up bind-9.9.0/lib/dns/Makefile.in.dyndb bind-9.9.0/lib/dns/Makefile.in
---- bind-9.9.0/lib/dns/Makefile.in.dyndb 2012-03-05 13:53:07.229068824 +0100
-+++ bind-9.9.0/lib/dns/Makefile.in 2012-03-05 13:53:07.252068320 +0100
-@@ -58,7 +58,7 @@ DNSOBJS = acache.@O@ acl.@O@ adb.@O@ bya
+diff -up bind-9.9.2/lib/dns/Makefile.in.dyndb bind-9.9.2/lib/dns/Makefile.in
+--- bind-9.9.2/lib/dns/Makefile.in.dyndb 2012-10-11 13:13:10.605497637 +0200
++++ bind-9.9.2/lib/dns/Makefile.in 2012-10-11 13:13:10.633497585 +0200
+@@ -59,7 +59,7 @@ DNSOBJS = acache.@O@ acl.@O@ adb.@O@ bya
cache.@O@ callbacks.@O@ clientinfo.@O@ compress.@O@ \
db.@O@ dbiterator.@O@ dbtable.@O@ diff.@O@ dispatch.@O@ \
dlz.@O@ dns64.@O@ dnssec.@O@ ds.@O@ forward.@O@ iptable.@O@ \
@@ -646,7 +646,7 @@ diff -up bind-9.9.0/lib/dns/Makefile.in.dyndb bind-9.9.0/lib/dns/Makefile.in
lib.@O@ log.@O@ lookup.@O@ \
master.@O@ masterdump.@O@ message.@O@ \
name.@O@ ncache.@O@ nsec.@O@ nsec3.@O@ order.@O@ peer.@O@ \
-@@ -87,7 +87,7 @@ DNSSRCS = acache.c acl.c adb.c byaddr.c
+@@ -88,7 +88,7 @@ DNSSRCS = acache.c acl.c adb.c byaddr.c
cache.c callbacks.c clientinfo.c compress.c \
db.c dbiterator.c dbtable.c diff.c dispatch.c \
dlz.c dns64.c dnssec.c ds.c forward.c iptable.c journal.c \
@@ -655,7 +655,7 @@ diff -up bind-9.9.0/lib/dns/Makefile.in.dyndb bind-9.9.0/lib/dns/Makefile.in
master.c masterdump.c message.c \
name.c ncache.c nsec.c nsec3.c order.c peer.c portlist.c \
rbt.c rbtdb.c rbtdb64.c rcode.c rdata.c rdatalist.c \
-@@ -118,6 +118,11 @@ version.@O@: version.c
+@@ -119,6 +119,11 @@ version.@O@: version.c
-DLIBAGE=${LIBAGE} \
-c ${srcdir}/version.c
@@ -667,9 +667,9 @@ diff -up bind-9.9.0/lib/dns/Makefile.in.dyndb bind-9.9.0/lib/dns/Makefile.in
libdns.@SA@: ${OBJS}
${AR} ${ARFLAGS} $@ ${OBJS}
${RANLIB} $@
-diff -up bind-9.9.0/lib/isccfg/namedconf.c.dyndb bind-9.9.0/lib/isccfg/namedconf.c
---- bind-9.9.0/lib/isccfg/namedconf.c.dyndb 2011-11-07 01:14:11.000000000 +0100
-+++ bind-9.9.0/lib/isccfg/namedconf.c 2012-03-05 13:53:07.253068299 +0100
+diff -up bind-9.9.2/lib/isccfg/namedconf.c.dyndb bind-9.9.2/lib/isccfg/namedconf.c
+--- bind-9.9.2/lib/isccfg/namedconf.c.dyndb 2012-09-27 02:35:19.000000000 +0200
++++ bind-9.9.2/lib/isccfg/namedconf.c 2012-10-11 13:13:10.634497583 +0200
@@ -89,6 +89,7 @@ static cfg_type_t cfg_type_controls;
static cfg_type_t cfg_type_controls_sockaddr;
static cfg_type_t cfg_type_destinationlist;
@@ -686,7 +686,7 @@ diff -up bind-9.9.0/lib/isccfg/namedconf.c.dyndb bind-9.9.0/lib/isccfg/namedconf
{ "server", &cfg_type_server, CFG_CLAUSEFLAG_MULTI },
{ "trusted-keys", &cfg_type_dnsseckeys, CFG_CLAUSEFLAG_MULTI },
{ "managed-keys", &cfg_type_managedkeys, CFG_CLAUSEFLAG_MULTI },
-@@ -1878,6 +1880,40 @@ static cfg_type_t cfg_type_dialuptype =
+@@ -1983,6 +1985,40 @@ static cfg_type_t cfg_type_dialuptype =
&cfg_rep_string, dialup_enums
};
diff --git a/bind.spec b/bind.spec
index 8073727..9b42b76 100644
--- a/bind.spec
+++ b/bind.spec
@@ -2,11 +2,11 @@
# Red Hat BIND package .spec file
#
-%global PATCHVER P3
+#%%global PATCHVER P3
#%%global PREVER rc2
#%%global VERSION %{version}%{PREVER}
-#%%global VERSION %{version}
-%global VERSION %{version}-%{PATCHVER}
+%global VERSION %{version}
+#%%global VERSION %{version}-%{PATCHVER}
%{?!SDB: %global SDB 1}
%{?!test: %global test 0}
@@ -21,8 +21,8 @@
Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) server
Name: bind
License: ISC
-Version: 9.9.1
-Release: 10.%{PATCHVER}%{?dist}
+Version: 9.9.2
+Release: 1%{?dist}
Epoch: 32
Url: http://www.isc.org/products/BIND/
Buildroot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -66,12 +66,10 @@ Patch110:bind97-rh570851.patch
Patch111:bind97-exportlib.patch
Patch112:bind97-rh645544.patch
Patch119:bind97-rh693982.patch
-Patch121:bind97-rh714049.patch
Patch123:bind98-rh735103.patch
Patch124:nslookup-norec.patch
Patch125:bind99-buildfix.patch
Patch127:bind99-forward.patch
-Patch129:bind98-rh816164.patch
Patch130:bind-9.9.1-P2-dlz-libdb4.patch
Patch131:bind-9.9.1-P2-multlib-conflict.patch
@@ -264,14 +262,12 @@ mkdir m4
%patch111 -p1 -b .exportlib
%patch112 -p1 -b .rh645544
%patch119 -p1 -b .rh693982
-%patch121 -p1 -b .rh714049
%patch123 -p1 -b .rh735103
pushd bin/dig
%patch124 -p0 -b .nslookup-norec
popd
%patch125 -p1 -b .buildfix
%patch127 -p1 -b .forward
-%patch129 -p1 -b .rh816164
%patch130 -p1 -b .libdb4
%patch131 -p1 -b .multlib-conflict
@@ -756,6 +752,12 @@ rm -rf ${RPM_BUILD_ROOT}
%endif
%changelog
+* Thu Oct 11 2012 Adam Tkac <atkac redhat com> 32:9.9.2-1
+- update to 9.9.2
+- bind97-rh714049.patch has been dropped
+- patches merged
+ - bind98-rh816164.patch
+
* Thu Sep 13 2012 Adam Tkac <atkac redhat com> 32:9.9.1-10.P3
- update to bind-9.9.1-P3
diff --git a/bind97-rh714049.patch b/bind97-rh714049.patch
deleted file mode 100644
index 77ed806..0000000
--- a/bind97-rh714049.patch
+++ /dev/null
@@ -1,160 +0,0 @@
-diff -up bind-9.7.3-P3/bin/nsupdate/nsupdate.c.rh714049 bind-9.7.3-P3/bin/nsupdate/nsupdate.c
---- bind-9.7.3-P3/bin/nsupdate/nsupdate.c.rh714049 2011-08-12 14:17:39.520175003 +0200
-+++ bind-9.7.3-P3/bin/nsupdate/nsupdate.c 2011-08-12 15:11:01.812173573 +0200
-@@ -109,6 +109,13 @@ extern int h_errno;
-
- #define DNSDEFAULTPORT 53
-
-+/*
-+ * Assume that bind9_getaddresses returns IPv6 and IPv4 addrs
-+ * so when master server is not reachable via IPv6
-+ * we can switch to IPv4.
-+ */
-+#define MAX_SERVERADDRS 4
-+
- static isc_uint16_t dnsport = DNSDEFAULTPORT;
-
- #ifndef RESOLV_CONF
-@@ -151,6 +158,8 @@ static isc_sockaddr_t *servers;
- static int ns_inuse = 0;
- static int ns_total = 0;
- static isc_sockaddr_t *userserver = NULL;
-+static int curserver = 0;
-+static int userservers = 0;
- static isc_sockaddr_t *localaddr = NULL;
- static isc_sockaddr_t *serveraddr = NULL;
- static isc_sockaddr_t tempaddr;
-@@ -703,7 +712,8 @@ doshutdown(void) {
- isc_task_detach(&global_task);
-
- if (userserver != NULL)
-- isc_mem_put(mctx, userserver, sizeof(isc_sockaddr_t));
-+ isc_mem_put(mctx, userserver,
-+ MAX_SERVERADDRS * sizeof(isc_sockaddr_t));
-
- if (localaddr != NULL)
- isc_mem_put(mctx, localaddr, sizeof(isc_sockaddr_t));
-@@ -914,17 +924,21 @@ setup_system(void) {
- }
-
- static void
--get_address(char *host, in_port_t port, isc_sockaddr_t *sockaddr) {
-+get_addresses(char *host, in_port_t port, isc_sockaddr_t *sockaddr, int *naddrs) {
- int count;
- isc_result_t result;
-
- isc_app_block();
-- result = bind9_getaddresses(host, port, sockaddr, 1, &count);
-+ result = bind9_getaddresses(host, port, sockaddr,
-+ (naddrs == NULL) ? 1 : MAX_SERVERADDRS, &count);
- isc_app_unblock();
- if (result != ISC_R_SUCCESS)
- fatal("couldn't get address for '%s': %s",
- host, isc_result_totext(result));
-- INSIST(count == 1);
-+ if (naddrs == NULL)
-+ INSIST(count == 1);
-+ else
-+ *naddrs = count;
- }
-
- #define PARSE_ARGS_FMT "dDML:y:ghlovk:p:rR::t:u:"
-@@ -1364,12 +1378,14 @@ evaluate_server(char *cmdline) {
- }
-
- if (userserver == NULL) {
-- userserver = isc_mem_get(mctx, sizeof(isc_sockaddr_t));
-+ userserver = isc_mem_get(mctx,
-+ MAX_SERVERADDRS * sizeof(isc_sockaddr_t));
- if (userserver == NULL)
- fatal("out of memory");
- }
-
-- get_address(server, (in_port_t)port, userserver);
-+ memset(userserver, 0, MAX_SERVERADDRS * sizeof(isc_sockaddr_t));
-+ get_addresses(server, (in_port_t)port, userserver, &userservers);
-
- return (STATUS_MORE);
- }
-@@ -2207,19 +2223,25 @@ recvsoa(isc_task_t *task, isc_event_t *e
-
- if (eresult != ISC_R_SUCCESS) {
- char addrbuf[ISC_SOCKADDR_FORMATSIZE];
-+ isc_sockaddr_t *server;
-
- isc_sockaddr_format(addr, addrbuf, sizeof(addrbuf));
- fprintf(stderr, "; Communication with %s failed: %s\n",
- addrbuf, isc_result_totext(eresult));
-- if (userserver != NULL)
-- fatal("could not talk to specified name server");
-- else if (++ns_inuse >= lwconf->nsnext)
-+ if (userserver != NULL) {
-+ if (++curserver == MAX_SERVERADDRS)
-+ fatal("could not talk to specified name server");
-+ else
-+ ddebug("recvsoa: trying next server");
-+ } else if (++ns_inuse >= lwconf->nsnext)
- fatal("could not talk to any default name server");
- ddebug("Destroying request [%p]", request);
- dns_request_destroy(&request);
- dns_message_renderreset(soaquery);
- dns_message_settsigkey(soaquery, NULL);
-- sendrequest(localaddr, &servers[ns_inuse], soaquery, &request);
-+ server = (userserver != NULL) ? &userserver[curserver] :
-+ &servers[ns_inuse];
-+ sendrequest(localaddr, server, soaquery, &request);
- isc_mem_put(mctx, reqinfo, sizeof(nsu_requestinfo_t));
- isc_event_free(&event);
- setzoneclass(dns_rdataclass_none);
-@@ -2351,7 +2373,7 @@ recvsoa(isc_task_t *task, isc_event_t *e
- }
-
- if (userserver != NULL)
-- serveraddr = userserver;
-+ serveraddr = &userserver[curserver];
- else {
- char serverstr[DNS_NAME_MAXTEXT+1];
- isc_buffer_t buf;
-@@ -2360,7 +2382,7 @@ recvsoa(isc_task_t *task, isc_event_t *e
- result = dns_name_totext(&master, ISC_TRUE, &buf);
- check_result(result, "dns_name_totext");
- serverstr[isc_buffer_usedlength(&buf)] = 0;
-- get_address(serverstr, dnsport, &tempaddr);
-+ get_addresses(serverstr, dnsport, &tempaddr, NULL);
- serveraddr = &tempaddr;
- }
- dns_rdata_freestruct(&soa);
-@@ -2464,9 +2486,9 @@ start_gssrequest(dns_name_t *master)
- fatal("out of memory");
- }
- if (userserver == NULL)
-- get_address(namestr, dnsport, kserver);
-+ get_addresses(namestr, dnsport, kserver, NULL);
- else
-- (void)memcpy(kserver, userserver, sizeof(isc_sockaddr_t));
-+ (void)memcpy(kserver, &userserver[curserver], sizeof(isc_sockaddr_t));
-
- dns_fixedname_init(&fname);
- servname = dns_fixedname_name(&fname);
-@@ -2594,15 +2616,17 @@ recvgss(isc_task_t *task, isc_event_t *e
- isc_sockaddr_format(addr, addrbuf, sizeof(addrbuf));
- fprintf(stderr, "; Communication with %s failed: %s\n",
- addrbuf, isc_result_totext(eresult));
-- if (userserver != NULL)
-+ if (userserver != NULL) {
- fatal("could not talk to specified name server");
-- else if (++ns_inuse >= lwconf->nsnext)
-+ } else if (++ns_inuse >= lwconf->nsnext)
- fatal("could not talk to any default name server");
- ddebug("Destroying request [%p]", request);
- dns_request_destroy(&request);
- dns_message_renderreset(tsigquery);
-- sendrequest(localaddr, &servers[ns_inuse], tsigquery,
-- &request);
-+ sendrequest(localaddr,
-+ (userserver != NULL) ? &userserver[curserver] :
-+ &servers[ns_inuse],
-+ tsigquery, &request);
- isc_mem_put(mctx, reqinfo, sizeof(nsu_gssinfo_t));
- isc_event_free(&event);
- return;
diff --git a/bind98-rh816164.patch b/bind98-rh816164.patch
deleted file mode 100644
index c9dc541..0000000
--- a/bind98-rh816164.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-diff -up bind-9.8.2rc1/bin/dig/nslookup.c.rh816164 bind-9.8.2rc1/bin/dig/nslookup.c
---- bind-9.8.2rc1/bin/dig/nslookup.c.rh816164 2012-05-07 17:01:49.054026716 +0200
-+++ bind-9.8.2rc1/bin/dig/nslookup.c 2012-05-07 17:15:42.516105665 +0200
-@@ -56,6 +56,7 @@ static isc_boolean_t in_use = ISC_FALSE;
- static char defclass[MXRD] = "IN";
- static char deftype[MXRD] = "A";
- static isc_event_t *global_event = NULL;
-+static int seen_error = -1;
-
- static char domainopt[DNS_NAME_MAXTEXT];
-
-@@ -404,6 +405,14 @@ trying(char *frm, dig_lookup_t *lookup)
- isc_result_t
- printmessage(dig_query_t *query, dns_message_t *msg, isc_boolean_t headers) {
- char servtext[ISC_SOCKADDR_FORMATSIZE];
-+ int force_error;
-+
-+ /*
-+ * We get called multiple times.
-+ * Preserve any existing error status.
-+ */
-+ force_error = (seen_error == 1) ? 1 : 0;
-+ seen_error = 1;
-
- debug("printmessage()");
-
-@@ -451,6 +460,7 @@ printmessage(dig_query_t *query, dns_mes
- printsection(query, msg, headers,
- DNS_SECTION_ADDITIONAL);
- }
-+ seen_error = force_error;
- return (ISC_R_SUCCESS);
- }
-
-@@ -888,5 +898,5 @@ main(int argc, char **argv) {
- destroy_libs();
- isc_app_finish();
-
-- return (0);
-+ return (seen_error == 0) ? 0 : 1;
- }
diff --git a/bind99-buildfix.patch b/bind99-buildfix.patch
index 9e35067..22db644 100644
--- a/bind99-buildfix.patch
+++ b/bind99-buildfix.patch
@@ -1,12 +1,12 @@
-diff -up bind-9.9.0b1/bin/tests/system/Makefile.in.buildfix bind-9.9.0b1/bin/tests/system/Makefile.in
---- bind-9.9.0b1/bin/tests/system/Makefile.in.buildfix 2011-11-10 12:52:41.990270700 +0100
-+++ bind-9.9.0b1/bin/tests/system/Makefile.in 2011-11-10 12:52:52.596269957 +0100
+diff -up bind-9.9.2/bin/tests/system/Makefile.in.buildfix bind-9.9.2/bin/tests/system/Makefile.in
+--- bind-9.9.2/bin/tests/system/Makefile.in.buildfix 2012-09-27 02:35:19.000000000 +0200
++++ bind-9.9.2/bin/tests/system/Makefile.in 2012-10-11 13:33:21.245382076 +0200
@@ -21,7 +21,7 @@ top_srcdir = @top_srcdir@
@BIND9_MAKE_INCLUDES@
--SUBDIRS = dlzexternal filter-aaaa lwresd rpz tkey tsiggss
-+SUBDIRS = filter-aaaa lwresd rpz tkey tsiggss
+-SUBDIRS = dlzexternal filter-aaaa lwresd rpz rsabigexponent tkey tsiggss
++SUBDIRS = filter-aaaa lwresd rpz rsabigexponent tkey tsiggss
TARGETS =
@BIND9_MAKE_RULES@
diff --git a/sources b/sources
index 9ff6ff9..0a31c23 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-8f407c9a988d7b447a54b4cb54230dcb bind-9.9.1-P3.tar.gz
+3b37d8de1bb15d3e887ce9ee8e07cd71 bind-9.9.2.tar.gz
76857526420dc8e153ad688aeb5a2c4b config-8.tar.bz2