patches for t3b

Paul A Vixie vixie at mibh.net
Fri Sep 10 18:49:48 UTC 1999


> named and ndc have incorrect paths compiled in unless this patch is applied.
> (actually, unless the point of DESTDIR is to compile for a chroot environment
> which isn't what one would infer from notes in INSTALL)

the purpose of DESTDIR is for crosscompilation and kitting.  i set DESTROOT
to /var/tmp/bindkit so that when i do "make install" it makes files like
"/var/tmp/bindkit/usr/sbin/named".  then i make a relative tarball out of
the /var/tmp/bindkit directory and i have a kit i can untar in /.  in the
past i have also mounted another system's /usr via NFS on something like
/othersys/usr on my compilation system, and set DESTDIR to /othersys, and
then the "make install" actually creates files via NFS on a remote system's
/usr.

> *** src_orig/bin/ndc/Makefile	Sun Aug  8 10:51:02 1999
> --- src/bin/ndc/Makefile	Fri Sep 10 01:17:19 1999
> ***************
> *** 61,70 ****
> ! 	sed -e "s|%DESTSBIN%|${DESTSBIN}|" \
> --- 61,70 ----
> ! 	sed -e "s|%DESTSBIN%|${DESTDIR}${DESTSBIN}|" \

this would create an ndc shell script that expected, at runtime, to be able
to find its associated named in some far off place like "/var/tmp/bindkit".
this isn't the purpose of DESTDIR and it was literally left out of the sed
pattern on purpose.

> The following patch unifies naming conventions in the error logs.
> 	master/slave vs primary/secondary
> In this manner the logs match the configuration file syntax. I also made the
> same changes to variable names, which I halfway assume you'll reject,
> but it has been running for several hours on one of our production systems
> without any problems.

thanks, i'll look these over and put some of them in.


More information about the bind-workers mailing list