X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=docs%2FREADME.stable-point-release;h=c0215fecb13be18f3f917e9dc62aa360246f6c8d;hb=394eaf39d605f9b0e916d25d3d5cd223b0c5246e;hp=d2dce4648ceb899a7723512b15cddaf65f26e01b;hpb=0429d8215de9128ed7074b98686660dfb65e65d0;p=dak.git diff --git a/docs/README.stable-point-release b/docs/README.stable-point-release index d2dce464..c0215fec 100644 --- a/docs/README.stable-point-release +++ b/docs/README.stable-point-release @@ -1,39 +1,118 @@ Rough Guide to doing Stable Point Releases in Debian ---------------------------------------------------- -o run 'dak clean-proposed-updates' to get rid of obsolete .changes - from p-u ['dak clean-proposed-updates *.changes' from within p-u] -o [also check for obsolete .changes caused by 'dak rm'-ing from p-u] -o Update dak.conf (at least the section for Reject-Proposed-Updates, - before using 'dak reject-proposed-updates') -o Install, reject and remove packages as directed by the SRM using - 'dak process-accepted' (installs), 'dak reject-proposed-updates' - (rejects) and 'dak rm' (removals) - - NB: removing packages are not logged to the stable ChangeLog; you - need to do that byhand. - -o If you installed a debian-installer upload; migrate the relevant - installer-*/$release directory from proposed-updates to stable. - (Including potentially removing older versions) - -o Decruft stable in coordination with SRMs - -o Do anything in proposed-updates/TODO o Close any applicable stable bugs - (hint: http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=ftp.debian.org&include=etch) -o Update version number in README, README.html and dists/README (ftp-master only) -o Update the 'Debian.r' symlink in dists/ -o Clean up dists/stable/ChangeLog (add header, basically) -o Update version fields in dak.conf -o Update fields in suite table in postgresql (see below) - -o Run 'dak make-suite-file-list --force -s stable' -o Run apt-ftparchive generate apt.conf.stable -o Run 'dak generate-releases --force-touch --apt-conf apt.conf.stable stable' - -[Yes, this sucks and more of it should be automated. c.f. ~ajt/pointupdate] - -####################################################### - -update suite set version = '4.0r3' where suite_name = 'stable'; -update suite set description = 'Debian 4.0r3 Released 16th February 2008' where suite_name = 'stable'; +- sudo to dak +- bash: +suite=stable +suitename=squeeze +pusuite=proposed-updates +oldrev=6.0.5 +newrev=6.0.6 +export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars +. $SCRIPTVARS +. "${configdir}/common" +. "${configdir}/dinstall.functions" +umask 022 +export LANG=C +export LC_ALL=C +pg_timestamp pre_${suite}_${newrev} +cd ~ +mkdir -p ${suite}_${newrev} +cd ${suite}_${newrev} +dak control-suite -l ${pusuite} > ${pusuite}.list +dak control-suite -l ${suite} > ${suite}.list + +- ask SRMs if there is anything to be skipped from this release. If so + edit ${pusuite}.list (and later the Changelog too) +- bash: +dak make-changelog -s ${pusuite} -b ${suite} | cat - ${ftpdir}/dists/${suite}/ChangeLog | sponge ${ftpdir}/dists/${suite}/ChangeLog +cat ${pusuite}.list | dak control-suite --add ${suite} +dak control-suite --remove ${pusuite} < ${pusuite}.list + +- sync with stable RM if there is any propup needed. do it, if so: +like, cat /srv/release.debian.org/www/squeeze/6.0/6.0.4/propup.unstable | dak control-suite --add unstable +Note: unstable first, then testing +- ask rms if they have RMs to do. +- and then check if they have a d-i update. if so, bash: +# set dioldver to "empty" if there is no old to remove +diver=20110106+squeeze4+b2 +dak copy-installer -s ${pusuite} -d ${suite} ${diver} +dioldver=20110106+squeeze4 +cd $ftpdir/dists/${suite}/main +if [ "${dioldver}" != "empty" ]; then + for iarch in $(dak admin s-a list-arch ${suite}); do + if [ -d "installer-${iarch}/${dioldver}" ]; then + echo "Moving installer-${iarch}/${dioldver} to morgue" + mkdir -p "${base}/morgue/d-i/installer-${iarch}/" + mv "installer-${iarch}/${dioldver}" "${base}/morgue/d-i/installer-${iarch}/" + fi + done +fi +cd $ftpdir/dists/${suite} + +- Update version number in README, README.html and dists/README, + Clean up dists/stable/ChangeLog (add header, basically). bash: + $EDITOR ChangeLog ../README ../../README* + rm -f *~ ../*~ ../../*~ + +- Update the 'Debian.r' symlink in dists/ +cd $ftpdir/dists/ +rm -f Debian${oldrev} +ln -s ${suitename} Debian${newrev} + +- Update fields in suite table in postgresql. + bash: + +mdate=$(date +"%d %B %Y") +psql projectb <> Contents-${carch}.new; + gzip -9v Contents-${carch}.new; + mv Contents-${carch}.new.gz Contents-${carch}.gz; +done + +rm {main,contrib,non-free}/Contents-* + +dak generate-releases -f -s ${suite} + +- have the SRMs sign it and put the signature in. +- Check if a mirror push is needed or next dinstall is enough. for a push +o if so, bash: + +TRACEFILE="${ftpdir}/project/trace/ftp-master.debian.org" +DATE_SERIAL=$(date +"%Y%m%d01") +FILESOAPLUS1=$(awk '/serial/ { print $3+1 }' ${TRACEFILE} ) +if [ "$DATE_SERIAL" -gt "$FILESOAPLUS1" ]; then + SERIAL="$DATE_SERIAL" +else + SERIAL="$FILESOAPLUS1" +fi +date -u > ${TRACEFILE} +echo "Using dak v1" >> ${TRACEFILE} +echo "Running on host: $(hostname -f)" >> ${TRACEFILE} +echo "Archive serial: ${SERIAL}" >> ${TRACEFILE} +cd ${mirrordir} +rsync -aH --link-dest ${ftpdir} --delete --delete-after --ignore-errors ${ftpdir}/. . +date -u > /srv/ftp.debian.org/web/mirrorstart +echo "Using dak v1" >> /srv/ftp.debian.org/web/mirrorstart +echo "Running on host $(hostname -f)" >> /srv/ftp.debian.org/web/mirrorstart +sudo -H -u archvsync /home/archvsync/runmirrors > ~dak/runmirrors.log 2>&1 & +