From cd3db89ffb8518750ffc9adcfccdb8a59628b518 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Nov 12 2012 14:35:59 +0000 Subject: Minor bugfixes - document dig exit codes in manpage - ignore empty "search" options in resolv.conf Signed-off-by: Adam Tkac --- diff --git a/bind.spec b/bind.spec index c63afc2..53e2db6 100644 --- a/bind.spec +++ b/bind.spec @@ -26,7 +26,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv Name: bind License: ISC Version: 9.9.2 -Release: 3%{?dist} +Release: 4%{?dist} Epoch: 32 Url: http://www.isc.org/products/BIND/ Buildroot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -77,6 +77,8 @@ Patch127:bind99-forward.patch Patch130:bind-9.9.1-P2-dlz-libdb4.patch Patch131:bind-9.9.1-P2-multlib-conflict.patch Patch132:bind99-stat.patch +Patch133:bind99-rh640538.patch +Patch134:bind97-rh669163.patch # SDB patches Patch11: bind-9.3.2b2-sdbsrc.patch @@ -120,7 +122,8 @@ BuildRequires: net-tools %if %{GSSTSIG} BuildRequires: krb5-devel %endif - +# Needed to regenerate dig.1 manpage +BuildRequires: docbook-style-xsl, libxslt %description BIND (Berkeley Internet Name Domain) is an implementation of the DNS @@ -308,6 +311,8 @@ cp -fp contrib/sdb/sqlite/zone2sqlite.c bin/sdb_tools %patch62 -p1 -b .sdb-sqlite-bld %endif %patch132 -p1 -b .stat +%patch133 -p1 -b .rh640538 +%patch134 -p1 -b .rh669163 # Sparc and s390 arches need to use -fPIE %ifarch sparcv9 sparc64 s390 s390x @@ -356,9 +361,15 @@ libtoolize -c -f; aclocal -I m4 --force; autoconf -f --disable-isc-spnego \ %endif --enable-fixed-rrset \ + --with-docbook-xsl=%{_datadir}/sgml/docbook/xsl-stylesheets \ ; make %{?_smp_mflags} +# Regenerate dig.1 manpage +pushd bin/dig +make man +popd + %if %{test} %check if [ "`whoami`" = 'root' ]; then @@ -758,6 +769,10 @@ rm -rf ${RPM_BUILD_ROOT} %endif %changelog +* Mon Nov 12 2012 Adam Tkac 32:9.9.2-4 +- document dig exit codes in manpage +- ignore empty "search" options in resolv.conf + * Mon Nov 12 2012 Adam Tkac 32:9.9.2-3 - drop PKCS11 support on rhel diff --git a/bind97-rh669163.patch b/bind97-rh669163.patch new file mode 100644 index 0000000..125049f --- /dev/null +++ b/bind97-rh669163.patch @@ -0,0 +1,14 @@ +diff -up bind-9.7.2-P3/lib/lwres/lwconfig.c.rh669163 bind-9.7.2-P3/lib/lwres/lwconfig.c +--- bind-9.7.2-P3/lib/lwres/lwconfig.c.rh669163 2011-01-28 14:48:38.934472578 +0100 ++++ bind-9.7.2-P3/lib/lwres/lwconfig.c 2011-01-28 14:49:50.421326035 +0100 +@@ -612,6 +612,10 @@ lwres_conf_parse(lwres_context_t *ctx, c + break; + } + ++ /* Ignore options with no parameters */ ++ if (stopchar == '\n') ++ continue; ++ + if (strlen(word) == 0U) + rval = LWRES_R_SUCCESS; + else if (strcmp(word, "nameserver") == 0) diff --git a/bind99-rh640538.patch b/bind99-rh640538.patch new file mode 100644 index 0000000..a8e68f2 --- /dev/null +++ b/bind99-rh640538.patch @@ -0,0 +1,44 @@ +diff -up bind-9.9.2/bin/dig/dig.docbook.rh640538 bind-9.9.2/bin/dig/dig.docbook +--- bind-9.9.2/bin/dig/dig.docbook.rh640538 2012-09-27 02:35:19.000000000 +0200 ++++ bind-9.9.2/bin/dig/dig.docbook 2012-11-12 14:47:17.385334972 +0100 +@@ -961,6 +961,40 @@ dig +qr www.isc.org any -x 127.0.0.1 isc + + + ++ RETURN CODES ++ ++ Dig return codes are: ++ ++ ++ ++ 0: Everything went well, including things like NXDOMAIN ++ ++ ++ ++ ++ 1: Usage error ++ ++ ++ ++ ++ 8: Couldn't open batch file ++ ++ ++ ++ ++ 9: No reply from server ++ ++ ++ ++ ++ 10: Internal error ++ ++ ++ ++ ++ ++ ++ + FILES + /etc/resolv.conf +