1 Rough Guide to doing Stable Point Releases in Debian
2 ----------------------------------------------------
8 pusuite=oldstable-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
32 - sync with stable RM if there is any propup needed. do it, if so:
33 like, cat /srv/release.debian.org/www/squeeze/6.0/6.0.4/propup.unstable | dak control-suite --add unstable
34 Note: unstable first, then testing
35 - ask rms if they have RMs to do.
36 - and then check if they have a d-i update. if so, bash:
37 # set dioldver to "empty" if there is no old to remove
39 dioldver=20090123lenny8
40 dak copy-installer -s ${pusuite} -d ${suite} ${diver}
41 cd $ftpdir/dists/${suite}/main
42 if [ "${dioldver}" != "empty" ]; then
43 for iarch in $(dak admin s-a list-arch ${suite}); do
44 if [ -d "installer-${iarch}/${dioldver}" ]; then
45 echo "Moving installer-${iarch}/${dioldver} to morgue"
46 mkdir -p "${base}/morgue/d-i/installer-${iarch}/"
47 mv "installer-${iarch}/${dioldver}" "${base}/morgue/d-i/installer-${iarch}/"
51 cd $ftpdir/dists/${suite}
53 - Update version number in README, README.html and dists/README,
54 Clean up dists/stable/ChangeLog (add header, basically). bash:
55 $EDITOR ChangeLog ../README ../../README*
56 rm -f *~ ../*~ ../../*~
58 - Update the 'Debian<n>.<n>r<n>' symlink in dists/
61 ln -s ${suitename} Debian${newrev}
63 - Update fields in suite table in postgresql.
66 mdate=$(date +"%d %B %Y")
69 update suite set version = '${newrev}' where suite_name = '${suite}';
70 update suite set description = 'Debian ${newrev} Released ${mdate}' where suite_name = '${suite}';
74 - prepare for gps. bash:
75 dak dominate --force -s ${suite}
76 dak generate-filelist -s ${suite}
78 - Let SRM see if all is ok
81 dak generate-packages-sources -s ${suite} ; dak contents generate -f -s ${suite}
83 cd $ftpdir/dists/${suite}
84 for carch in $(dak admin s-a list-arch ${suite}); do
86 cp $base/dak/templates/contents Contents-${carch}.new;
87 zcat {main,contrib,non-free}/Contents-${carch}.gz | ~joerg/mergecontents.pl | sort >> Contents-${carch}.new;
88 gzip -9v Contents-${carch}.new;
89 mv Contents-${carch}.new.gz Contents-${carch}.gz;
92 rm {main,contrib,non-free}/Contents-*
94 dak generate-releases -f -s ${suite}
96 - have the SRMs sign it and put the signature in.
97 - Check if a mirror push is needed or next dinstall is enough. for a push
100 TRACEFILE="${ftpdir}/project/trace/ftp-master.debian.org"
101 DATE_SERIAL=$(date +"%Y%m%d01")
102 FILESOAPLUS1=$(awk '/serial/ { print $3+1 }' ${TRACEFILE} )
103 if [ "$DATE_SERIAL" -gt "$FILESOAPLUS1" ]; then
104 SERIAL="$DATE_SERIAL"
106 SERIAL="$FILESOAPLUS1"
108 date -u > ${TRACEFILE}
109 echo "Using dak v1" >> ${TRACEFILE}
110 echo "Running on host: $(hostname -f)" >> ${TRACEFILE}
111 echo "Archive serial: ${SERIAL}" >> ${TRACEFILE}
113 rsync -aH --link-dest ${ftpdir} --delete --delete-after --ignore-errors ${ftpdir}/. .
114 date -u > /srv/ftp.debian.org/web/mirrorstart
115 echo "Using dak v1" >> /srv/ftp.debian.org/web/mirrorstart
116 echo "Running on host $(hostname -f)" >> /srv/ftp.debian.org/web/mirrorstart
117 sudo -H -u archvsync /home/archvsync/runmirrors > ~dak/runmirrors.log 2>&1 &