X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=docs%2FREADME.stable-point-release;h=f7d21b62db3b43d6c158ece2a16f6d3d6d6acfdd;hb=595c6c300a32bdc231f78725ba0c093c5f4c9c6b;hp=72df3a6edb98310a81363bbd15688cdcb27452dc;hpb=f02f2fe4b139d08867a090e962b8431ec986ebdf;p=dak.git diff --git a/docs/README.stable-point-release b/docs/README.stable-point-release index 72df3a6e..f7d21b62 100644 --- a/docs/README.stable-point-release +++ b/docs/README.stable-point-release @@ -1,32 +1,164 @@ Rough Guide to doing Stable Point Releases in Debian ---------------------------------------------------- -o Install, reject and remove packages as directed by the SRM +- sudo to dak +- bash: +suite=stable +suitename=jessie +pusuite=proposed-updates +oldrev=8.0 +newrev=8.1 +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 - NB1: !! you must run kelly from within dists/proposed-updates; kelly - takes it's "I'm doing a point release" cue from the CWD. !! +- 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 +dak control-suite --add ${suite} < ${pusuite}.list +dak control-suite --remove ${pusuite} < ${pusuite}.list - NB2: removing packages are not logged to the changelog; you need to - do that byhand. +- 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 -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) +- -r0 additions? + For example new d-i. If so: +cd ~/${suite}_${newrev} +cp /srv/release.debian.org/www/${suitename}/${newrev%%.*}/${newrev}/${suitename}-r0-additions.cs . +dak control-suite --add ${suitename}-r0 < ${suitename}-r0-additions.cs -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] +- 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 <> Contents-${carch}.new; + gzip -9v Contents-${carch}.new; + mv Contents-${carch}.new.gz Contents-${carch}.gz; + done + rm {main,contrib,non-free}/Contents-* +fi + +- For wheezy: update main/i18n/Index +if [[ ${suitename} == wheezy ]] || [[ ${suitename} == jessie ]]; then + ${scriptsdir}/generate-i18n-Index "${ftpdir}/dists/${suite}" +fi + +- Generate Releases: +dak generate-releases -f -s ${suite} +if [[ ${suitename} != jessie ]]; then + rm ${ftpdir}/dists/${suite}/InRelease +fi + +- have the SRMs sign it and put the signature in. +cd ${ftpdir}/dists/${suite} +cat /srv/release.debian.org/www/${suitename}/${newrev%%.*}/${newrev}/Release.gpg >> 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: + +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 & -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';