]> git.decadent.org.uk Git - dak.git/blob - docs/README.stable-point-release
9f2288ad8a4c0de9a110a7b47877e757e8fae6cd
[dak.git] / docs / README.stable-point-release
1 Rough Guide to doing Stable Point Releases in Debian
2 ----------------------------------------------------
3
4 - sudo to dak
5 - bash:
6 suite=stable
7 suitename=squeeze
8 pusuite=proposed-updates
9 oldrev=6.0.5
10 newrev=6.0.6
11 export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
12 . $SCRIPTVARS
13 . "${configdir}/common"
14 . "${configdir}/dinstall.functions"
15 umask 022
16 export LANG=C
17 export LC_ALL=C
18 pg_timestamp pre_${suite}_${newrev}
19 cd ~
20 mkdir -p ${suite}_${newrev}
21 cd ${suite}_${newrev}
22 dak control-suite -l ${pusuite} > ${pusuite}.list
23 dak control-suite -l ${suite} > ${suite}.list
24
25 - ask SRMs if there is anything to be skipped from this release. If so
26   edit ${pusuite}.list (and later the Changelog too)
27 - bash:
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
31
32 - -r0 additions?
33   For example new d-i.
34
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}/"
51         fi
52     done
53 fi
54 cd $ftpdir/dists/${suite}
55
56 - Updates for win32-loader?
57 cd ${ftpdir}/tools/win32-loader
58 if [ -d ${suitename}-proposed-updates ]; then
59     rm -r ${suite}
60     mv ${suitename}-proposed-updates ${suite}
61 fi
62 cd ${ftpdir}
63
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 *~ ../*~ ../../*~
68
69 - Update the 'Debian<n>.<n>r<n>' symlink in dists/
70 cd $ftpdir/dists/
71 rm -f Debian${oldrev}
72 ln -s ${suitename} Debian${newrev}
73
74 - Update fields in suite table in postgresql.
75   bash:
76
77 mdate=$(date +"%d %B %Y")
78 psql projectb <<EOF
79 begin;
80 update suite set version = '${newrev}' where suite_name = '${suite}';
81 update suite set description = 'Debian ${newrev} Released ${mdate}' where suite_name = '${suite}';
82 commit;
83 EOF
84
85 - prepare for gps. bash:
86 dak dominate --force -s ${suite}
87 dak generate-filelist -s ${suite}
88
89 - Let SRM see if all is ok
90
91 - then:
92 dak generate-packages-sources -s ${suite} ; dak contents generate -f -s ${suite} -a ftp-master
93
94 - For squeeze: merge Contents
95 cd $ftpdir/dists/${suite}
96 for carch in $(dak admin s-a list-arch ${suite}); do
97   echo doing ${carch}
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;
102 done
103 rm {main,contrib,non-free}/Contents-*
104
105 - For wheezy: update main/i18n/Index
106 if [ "${suitename}" = "wheezy" ]; then
107   ${scriptsdir}/generate-i18n-Index "${ftpdir}/dists/${suite}"
108 fi
109
110 - Generate Releases:
111 dak generate-releases -f -s ${suite}
112 rm ${ftpdir}/dists/${suite}/InRelease
113
114 - have the SRMs sign it and put the signature in.
115 - Check if a mirror push is needed or next dinstall is enough. for a push
116 o if so, bash:
117
118 TRACEFILE="${ftpdir}/project/trace/ftp-master.debian.org"
119 DATE_SERIAL=$(date +"%Y%m%d01")
120 FILESOAPLUS1=$(awk '/serial/ { print $3+1 }' ${TRACEFILE} )
121 if [ "$DATE_SERIAL" -gt "$FILESOAPLUS1" ]; then
122     SERIAL="$DATE_SERIAL"
123 else
124     SERIAL="$FILESOAPLUS1"
125 fi
126 date -u > ${TRACEFILE}
127 echo "Using dak v1" >> ${TRACEFILE}
128 echo "Running on host: $(hostname -f)" >> ${TRACEFILE}
129 echo "Archive serial: ${SERIAL}" >> ${TRACEFILE}
130 cd ${mirrordir}
131 rsync -aH --link-dest ${ftpdir} --delete --delete-after --ignore-errors ${ftpdir}/. .
132 date -u > /srv/ftp.debian.org/web/mirrorstart
133 echo "Using dak v1" >> /srv/ftp.debian.org/web/mirrorstart
134 echo "Running on host $(hostname -f)" >> /srv/ftp.debian.org/web/mirrorstart
135 sudo -H -u archvsync /home/archvsync/runmirrors > ~dak/runmirrors.log 2>&1 &
136