1 Rough Guide to doing Stable Point Releases in Debian
2 ----------------------------------------------------
8 pusuite=proposed-updates
11 export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
13 . "${configdir}/common"
14 . "${configdir}/dinstall.functions"
18 pg_timestamp pre_${suite}_${newrev}
20 mkdir -p ${suite}_${newrev}
22 dak control-suite -l ${pusuite} > ${pusuite}.list
23 dak control-suite -l ${suite} > ${suite}.list
25 - ask SRMs if there is anything to be skipped from this release. If so
26 edit ${pusuite}.list (and later the Changelog too)
28 dak make-changelog -s ${pusuite} -b ${suite} | cat - ${ftpdir}/dists/${suite}/ChangeLog | sponge ${ftpdir}/dists/${suite}/ChangeLog
29 cat ${pusuite}.list | dak control-suite --add ${suite}
30 dak control-suite --remove ${pusuite} < ${pusuite}.list
35 - sync with stable RM if there is any propup needed. do it, if so:
36 like, cat /srv/release.debian.org/www/squeeze/6.0/6.0.4/propup.unstable | dak control-suite --add unstable
37 Note: unstable first, then testing
38 - ask rms if they have RMs to do.
39 - and then check if they have a d-i update. if so, bash:
40 # set dioldver to "empty" if there is no old to remove
41 diver=20110106+squeeze4+b2
42 dak copy-installer -s ${pusuite} -d ${suite} ${diver}
43 dioldver=20110106+squeeze4
44 cd $ftpdir/dists/${suite}/main
45 if [ "${dioldver}" != "empty" ]; then
46 for iarch in $(dak admin s-a list-arch ${suite}); do
47 if [ -d "installer-${iarch}/${dioldver}" ]; then
48 echo "Moving installer-${iarch}/${dioldver} to morgue"
49 mkdir -p "${base}/morgue/d-i/installer-${iarch}/"
50 mv "installer-${iarch}/${dioldver}" "${base}/morgue/d-i/installer-${iarch}/"
54 cd $ftpdir/dists/${suite}
56 - Updates for win32-loader?
57 cd ${ftpdir}/tools/win32-loader
58 if [ -d ${suitename}-proposed-updates ]; then
60 mv ${suitename}-proposed-updates ${suite}
64 - Update version number in README, README.html and dists/README,
65 Clean up dists/stable/ChangeLog (add header, basically). bash:
66 $EDITOR ChangeLog ../README ../../README*
67 rm -f *~ ../*~ ../../*~
69 - Update the 'Debian<n>.<n>r<n>' symlink in dists/
72 ln -s ${suitename} Debian${newrev}
74 - Update fields in suite table in postgresql.
77 mdate=$(date +"%d %B %Y")
80 update suite set version = '${newrev}' where suite_name = '${suite}';
81 update suite set description = 'Debian ${newrev} Released ${mdate}' where suite_name = '${suite}';
85 - prepare for gps. bash:
86 dak dominate --force -s ${suite}
87 dak generate-filelist -s ${suite}
89 - Let SRM see if all is ok
92 dak generate-packages-sources -s ${suite} ; dak contents generate -f -s ${suite} -a ftp-master
94 - For squeeze: merge Contents
95 cd $ftpdir/dists/${suite}
96 for carch in $(dak admin s-a list-arch ${suite}); do
98 cp $base/dak/templates/contents Contents-${carch}.new;
99 zcat {main,contrib,non-free}/Contents-${carch}.gz | ~joerg/mergecontents.pl | sort >> Contents-${carch}.new;
100 gzip -9v Contents-${carch}.new;
101 mv Contents-${carch}.new.gz Contents-${carch}.gz;
103 rm {main,contrib,non-free}/Contents-*
105 - For wheezy: update main/i18n/Index
108 dak generate-releases -f -s ${suite}
109 rm ${ftpdir}/dists/${suite}/InRelease
111 - have the SRMs sign it and put the signature in.
112 - Check if a mirror push is needed or next dinstall is enough. for a push
115 TRACEFILE="${ftpdir}/project/trace/ftp-master.debian.org"
116 DATE_SERIAL=$(date +"%Y%m%d01")
117 FILESOAPLUS1=$(awk '/serial/ { print $3+1 }' ${TRACEFILE} )
118 if [ "$DATE_SERIAL" -gt "$FILESOAPLUS1" ]; then
119 SERIAL="$DATE_SERIAL"
121 SERIAL="$FILESOAPLUS1"
123 date -u > ${TRACEFILE}
124 echo "Using dak v1" >> ${TRACEFILE}
125 echo "Running on host: $(hostname -f)" >> ${TRACEFILE}
126 echo "Archive serial: ${SERIAL}" >> ${TRACEFILE}
128 rsync -aH --link-dest ${ftpdir} --delete --delete-after --ignore-errors ${ftpdir}/. .
129 date -u > /srv/ftp.debian.org/web/mirrorstart
130 echo "Using dak v1" >> /srv/ftp.debian.org/web/mirrorstart
131 echo "Running on host $(hostname -f)" >> /srv/ftp.debian.org/web/mirrorstart
132 sudo -H -u archvsync /home/archvsync/runmirrors > ~dak/runmirrors.log 2>&1 &