X-Git-Url: https://git.decadent.org.uk/gitweb/?p=dak.git;a=blobdiff_plain;f=docs%2FREADME.stable-point-release;h=304795f1cd890312e493134072318bf9fff39d05;hp=3d600fb2a37a6069d4bf30a549f3c4db7bc389f0;hb=4f3c7874fd19d380b106a9d4bbab0403ed089359;hpb=1df8df647f682e9eb19a49e607f2aa5de7b224ab diff --git a/docs/README.stable-point-release b/docs/README.stable-point-release index 3d600fb2..304795f1 100644 --- a/docs/README.stable-point-release +++ b/docs/README.stable-point-release @@ -1,29 +1,180 @@ Rough Guide to doing Stable Point Releases in Debian ---------------------------------------------------- -o Install, reject and remove packages as directed by the SRM using lauren +- sudo to dak +- bash: +suitename=wheezy +newrev=7.10 - NB: removing packages are not logged to the stable ChangeLog; you - need to do that byhand. +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 -o Do anything in proposed-updates/TODO -o Close any applicable woody bugs - (hint: http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=ftp.debian.org&include=woody) -o Update version number in README and dists/README (ftp-master only) -o Update the 'Debian.r' symlink in dists/ -o Clean up dists/ChangeLog (add header, basically) -o Update version fields in katie.conf[-non-US] -o Update fields in suite table in postgresql (see below) +suite=$(psql -qAtc "SELECT suite_name FROM suite WHERE codename='${suitename}'") +oldrev=$(psql -qAtc "SELECT version FROM suite WHERE codename='${suitename}'") +case "${suite}" in + stable) pusuite=proposed-updates ;; + oldstable) pusuite=oldstable-proposed-updates ;; + *) pusuite=INVALID ;; +esac -o Comment out "Untouchable" in katie.conf[-non-US] -o Run 'jenna -s stable' -o Run apt-ftparchive generate apt.conf.stable[-non-US] -o Copy tree/directory for stable to apt.conf[-non-US], run ziyi, remove it from apt.conf[-non-US] -o Uncomment "Untouchable" in katie.conf[-non-US] +echo "Point release for ${suite} (${suitename}); old version: ${oldrev}, new: ${newrev}" +echo "Updates come from ${pusuite}" -Yes, this sucks and more of it should be automated. +pg_timestamp pre_${suite}_${newrev} +cd ~ +mkdir -p ${suitename}_${newrev} +cd ${suitename}_${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: +# skip: list of *source* packages to skip, whitespace seperated +skip="" +if [ -n "${skip}" ]; then + mv ${pusuite}.list ${pusuite}.list.ori + grep -vFf <(dak ls -f heidi -S -s ${pusuite} ${skip}) ${pusuite}.list.ori > ${pusuite}.list +fi -update suite set version = '3.0r1' where suite_name = 'stable'; -update suite set description = 'Debian 3.0r1 Released 15th December 2002' where suite_name = 'stable'; +dak make-changelog -s ${pusuite} -b ${suite} | cat - ${ftpdir}/dists/${suite}/ChangeLog | sponge ${ftpdir}/dists/${suite}/ChangeLog +if [ -n "${skip}" ]; then + $EDITOR ${ftpdir}/dists/${suite}/ChangeLog +fi + +dak control-suite --add ${suite} < ${pusuite}.list +dak control-suite --remove ${pusuite} < ${pusuite}.list + +- clean up *.changes from proposed-updates: +# Be careful if uploads were not included in the point release. +pumorguedir="${base}/morgue/queues/$(date +%Y/%m)" +mkdir -p "${pumorguedir}" +cd ${ftpdir}/dists/${pusuite} +mv -t "${pumorguedir}" -n -- *.changes + +- -r0 additions? + For example new d-i. If so: +cd ~/${suitename}_${newrev} +cp /srv/release.debian.org/www/${suitename}/${newrev%%.*}/${newrev}/${suitename}-r0-additions.cs . +dak control-suite --add ${suitename}-r0 < ${suitename}-r0-additions.cs + +- sync with stable RM if there is any propup needed. do it, if so: +cp /srv/release.debian.org/www/${suitename}/${newrev%%.*}/${newrev}/propups.unstable . +dak control-suite --force --add unstable .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 <> Release.gpg +gpg --no-default-keyring --keyring /usr/share/keyrings/debian-archive-keyring.gpg --trust-model=always --verify Release.gpg Release + +- Check if a mirror push is needed or next dinstall is enough. for a push +o if so, bash: +cd +${configdir}/cronscript mirror