release revision 7f800a6b10b0172e36e6fef855f48109717b6a2c
286N/AaCopyright (C) 2000, 2001 Internet Software Consortium.
286N/ASee COPYRIGHT in the source root or http://isc.org/copyright.html for terms.
286N/A
286N/A$Id: release,v 1.48 2001/10/23 18:44:09 gson Exp $
286N/A
286N/APreparing a bind9 release
286N/A
286N/AHere's a rough outline of the steps to follow in preparing a new bind9
286N/Arelease.
286N/A
286N/A - Update the README file
286N/A
286N/A - Send the new README file to webteam@nominum.com at least 48
286N/A hours prior to the planned release and ask them to prepare
286N/A the web pages for the new version. If there have been only
286N/A minor changes, send context diffs relative to the previous
286N/A release instead.
286N/A
286N/A - Do a "cvs update" to check that all changes have been committed.
286N/A
286N/A - Verify that the file "version" contains the correct version
286N/A number (it should have been incremented after the
286N/A previous release)
286N/A
286N/A - Before creating a new release branch, update the lib/*/api files
286N/A as needed. See the libtool info file for information about what
286N/A the various numbers mean.
286N/A
286N/A - If building from a release branch, check that any important
286N/A bug fixes made on the mainline since the last release have
286N/A been pulled up. You can do this by comparing the CHANGES
286N/A files using the util/check-pullups.pl script. For example,
286N/A running the script from a mainline tree:
286N/A
286N/A perl util/check-pullups.pl CHANGES ../9.2/CHANGES
286N/A
286N/A This will list all bug fixes on the mainline that are not
286N/A on the 9.2 release branch.
286N/A
286N/A - Check that http://status.isc.org/bind9/bind9.html
286N/A shows a clean build and test status for all supported
286N/A systems and that the tests are actually being run on the
286N/A version being released (the version can be found in the
286N/A page behind the "Source tar build" link).
286N/A
286N/A - Check that running "make all_tests" in bin/tests does not
286N/A produce compile errors.
286N/A
286N/A - Regenerate the documentation by running "make man" (mainline/9.2)
286N/A or by running genhtml.sh in doc/arm (9.1 release branch)
286N/A and commit it. Note that not all machines have the
286N/A necessary XML tools, but at least trebuchet, cuba,
286N/A and Scanner's machine do. Commit any files that were
286N/A regenerated.
286N/A
286N/A - Verify that the documents in doc/misc are up-to-date.
286N/A
286N/A - Update the copyrights. According to tale:
286N/A
286N/A Go to the root of the source tree.
286N/A The scripts need to be run from there; they reference the util
286N/A subdirectory internally.
286N/A
286N/A $ make distclean
286N/A ... [I prefer to check out a fresh source tree --gson]
286N/A $ perl util/merge_copyrights
286N/A $ diff util/copyrights util/newcopyrights
286N/A ... examine output, particularly any files with the "?" type, and
286N/A ... then edit util/newcopyrights if necessary
286N/A $ mv util/newcopyrights util/copyrights
286N/A $ cvs ci -m'merge_copyrights' util/copyrights
286N/A $ perl util/update_copyrights < util/copyrights
286N/A $ cvs diff
286N/A ... examine output, edit as necessary. mail me about anything that
286N/A ... the script should have been able to do itself. :-)
286N/A $ cvs ci -m'update_copyrights'
286N/A
286N/A - Announce a CVS freeze if doing an alpha or beta release from
286N/A the mainline, or stop doing pullups if building from a release branch.
286N/A
286N/A - Run util/altbuild.sh. This is to make sure that
286N/A builds using libtool, separate source/object directories, and other
286N/A obscure build options work. This script may need some hacking if run
286N/A on anything other than NetBSD. Save the output (it's big) and look
286N/A for error and warning messages.
286N/A
286N/A cd $top_of_mainline_tree
286N/A sh util/altbuild.sh v9_0
286N/A
286N/A or
286N/A
286N/A cd $top_of_9_1_tree
286N/A sh util/altbuild.sh v9_1
286N/A
286N/A Alteratively, you can do this after building the kit, by giving
286N/A the kit .tar.gz file as an argument to altbuild.sh instad of
286N/A the CVS tag.
286N/A
286N/A - If you can (= your system is similar enough to the one Tale is using),
286N/A check the header files for cruft by running the command
286N/A [ This step is quite imperfect and should probably be skipped
286N/A for now -- Tale ]
286N/A
286N/A find lib -name '*.h' -print | xargs perl util/check-includes.pl
286N/A
286N/A - Ensure that the JPNIC patch applies cleanly:
286N/A
286N/A If you don't have the "iconv" library, you need to get it from
286N/A http://clisp.cons.org/~haible/packages-libiconv.html and install it.
286N/A
286N/A $ sh util/sanitize_all.sh
286N/A $ patch -p0 < contrib/idn/mdnkit/patch/bind9/patch.most > patch.out 2>&1
286N/A $ egrep Hunk patch.out
286N/A
286N/A All hunks should have applied successfully with no offset or fuzz.
286N/A If all succeeded but some were offset or had fuzz, the patch will be
286N/A regenerated at the end of this stage.
286N/A
286N/A $ cd contrib/idn/mdnkit
286N/A [ Sample on netbsd ... ]
286N/A $ CFLAGS=-I/usr/local/include ./configure '--with-iconv=-L/usr/local/lib -liconv'
286N/A $ make
286N/A $ cd ../../.. ; : cd back to top level
286N/A $ cp configure configure.orig
286N/A $ autoconf
286N/A $ ./configure
286N/A
286N/A $ make
286N/A ... should cleanly compile
286N/A $ make distclean
286N/A $ rm -rf /tmp/mdn
286N/A $ mkdir -p /tmp/mdn/{lib,include}
286N/A $ mdn=`pwd`/contrib/idn/mdnkit
286N/A $ cp $mdn/lib/.libs/libmdn.so /tmp/mdn/lib
286N/A $ cp -r $mdn/include/mdn /tmp/mdn/include
286N/A $ ./configure --with-mdn=/tmp/mdn --with-iconv="-L/usr/local/lib -liconv"
286N/A $ LD_LIBRARY_PATH=/usr/local/lib:/tmp/mdn/lib:/usr/lib make
286N/A ... should cleanly compile
286N/A
286N/A [ Some tests will be added to bin/tests/system to validate operation. ]
286N/A
286N/A Generate a fresh copy of the diffs:
286N/A
286N/A $ patchd=$mdn/patch/bind9
286N/A $ awk '/^\+\+\+ / {print $2}' $patchd/patch.most |
286N/A while read i; do
286N/A diff -u2 $i.orig $i
286N/A done > $patchd/patch.most.new
286N/A $ cvs diff -u2 configure > $patchd/patch.configure
286N/A $ mv $patchd/patch.most.new $patchd
286N/A $ cvs ci -ko $patchd/patch.*
286N/A
286N/A - Add a marker line like " --- 9.0.0rc8 released ---"
286N/A to the CHANGES file.
286N/A
286N/A - Tag the CVS source tree with the final tag, as in
286N/A "cvs rtag v9_0_0rc1 bind9" (mainline) or
286N/A "cvs rtag -r v9_2 v9_2_0rc8 bind9" (release branch).
286N/A
286N/A - Build the release kit. This procedure differs
286N/A between the 9.0 release branch and later versions.
286N/A On the 9.0 release branch,
286N/A
286N/A cd <temporary directory>
286N/A cvs export -r v9_0_0rc8 bind9
286N/A cd bind9
286N/A sh configure
286N/A make kit
286N/A
286N/A On the 9.[1-2] release branch or mainline, use the
286N/A "util/kit.sh" script.
286N/A
286N/A - Build bind9 from the kit on at least one machine
286N/A and test it. Run it as a caching name server.
286N/A If you can, try resolving some IPv6 addresses and
286N/A doing queries over IPv6.
286N/A
286N/A - If problems are found at this stage, fix them, move the
286N/A release tag up using "rtag -F", and respin the kit.
286N/A
286N/A - Sign the distribution files with the ISC signing PGP key
286N/A and fix the permissions on the signature file:
286N/A
286N/A pgp -sba bind-9.2.0rc8.tar.gz -u 0x51BAB2ED
286N/A chmod 644 bind-9.2.0rc8.tar.gz.asc
286N/A
286N/A - Verify the PGP signature:
286N/A
286N/A pgp bind-9.2.0rc8.tar.gz.asc bind-9.2.0rc8.tar.gz
286N/A
286N/A (Look for the words "Good signature" in the output.)
286N/A
286N/A - Prepare a release announcement based on the previous one.
286N/A
286N/A - Copy the distribution and PGP signature files to the FTP site:
286N/A
286N/A ver=9.2.0rc8
286N/A ssh -n isrv4.pa.vix.com "mkdir /udir/ftp/isc/bind9/$ver"
286N/A scp bind-$ver.tar.gz bind-$ver.tar.gz.asc \
286N/A isrv4.pa.vix.com:/udir/ftp/isc/bind9/$ver
286N/A
286N/A - If there is a companion binary kit for NT, sign it and release it:
286N/A
286N/A scp shell.nominum.com:/udir/mayer/BIND$ver.zip .
286N/A pgp -sba BIND$ver.zip -u 0x51BAB2ED
286N/A chmod 644 BIND$ver.zip.asc
286N/A pgp BIND$ver.zip.asc BIND$ver.zip
286N/A ssh -n isrv4.pa.vix.com "mkdir /udir/ftp/isc/bind/contrib/ntbind-$ver"
286N/A scp BIND$ver.zip BIND$ver.zip.asc \
286N/A isrv4.pa.vix.com:/udir/ftp/isc/bind/contrib/ntbind-$ver
286N/A
286N/A
286N/A - Download using FTP (or Netscape) using the URLs in the release
286N/A announcement and verify the PGP signature again
286N/A
286N/A - Increment the version in the file "version"
286N/A
286N/A - Resume doing pullups
286N/A
286N/A - Announce the release on bind-announce@isc.org
286N/A
286N/A