]> git.decadent.org.uk Git - dak.git/blob - docs/README.stable-point-release
Document NEW processing on security-master.
[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=wheezy
8 pusuite=proposed-updates
9 oldrev=7.2
10 newrev=7.3
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 dak control-suite --add ${suite} < ${pusuite}.list
30 dak control-suite --remove ${pusuite} < ${pusuite}.list
31
32 - clean up *.changes from proposed-updates:
33 # Be careful if uploads were not included in the point release.
34 pumorguedir="${base}/morgue/queues/$(date +%Y/%m)"
35 mkdir -p "${pumorguedir}"
36 cd ${ftpdir}/dists/${pusuite}
37 mv -t "${pumorguedir}" -n -- *.changes
38
39 - -r0 additions?
40   For example new d-i.
41
42 - sync with stable RM if there is any propup needed. do it, if so:
43 like, cat /srv/release.debian.org/www/squeeze/6.0/6.0.4/propup.unstable | dak control-suite --add unstable
44 Note: unstable first, then testing
45 - ask rms if they have RMs to do.
46 - check output from cruft report:
47 dak cruft-report -s ${suite}
48 - and then check if they have a d-i update. if so, bash:
49 # set dioldver to "empty" if there is no old to remove
50 diver=20130613+deb7u1+b1
51 dak copy-installer -s ${pusuite} -d ${suite} ${diver}
52 dioldver=20130613+deb7u1
53 cd $ftpdir/dists/${suite}/main
54 if [ "${dioldver}" != "empty" ]; then
55     for iarch in $(dak admin s-a list-arch ${suite}); do
56         if [ -d "installer-${iarch}/${dioldver}" ]; then
57             echo "Moving installer-${iarch}/${dioldver} to morgue"
58             mkdir -p "${base}/morgue/d-i/installer-${iarch}/"
59             mv "installer-${iarch}/${dioldver}" "${base}/morgue/d-i/installer-${iarch}/"
60         fi
61     done
62 fi
63 cd $ftpdir/dists/${suite}
64
65 - Updates for win32-loader?
66 cd ${ftpdir}/tools/win32-loader
67 if [ -d ${suitename}-proposed-updates ]; then
68     rm -r ${suite}
69     mv ${suitename}-proposed-updates ${suite}
70 fi
71 cd ${ftpdir}
72
73 - Update version number in README, README.html and dists/README,
74   Clean up dists/stable/ChangeLog (add header, basically). bash:
75   $EDITOR ChangeLog ../README ../../README*
76   rm -f *~ ../*~ ../../*~
77
78 - Update the 'Debian<n>.<n>r<n>' symlink in dists/
79 cd $ftpdir/dists/
80 rm -f Debian${oldrev}
81 ln -s ${suitename} Debian${newrev}
82
83 - Update fields in suite table in postgresql.
84   bash:
85
86 mdate=$(date +"%d %B %Y")
87 psql projectb <<EOF
88 begin;
89 update suite set version = '${newrev}' where suite_name = '${suite}';
90 update suite set description = 'Debian ${newrev} Released ${mdate}' where suite_name = '${suite}';
91 commit;
92 EOF
93
94 - prepare for gps. bash:
95 dak dominate --force -s ${suite}
96 dak generate-filelist -s ${suite}
97
98 - Let SRM see if all is ok
99
100 - then:
101 if [ "${suitename}" = "squeeze" ]; then
102   dak generate-packages-sources -s ${suite} && dak contents generate -f -s ${suite} -a ftp-master
103 else
104   dak generate-packages-sources2 --force -s ${suite} && dak contents generate -f -s ${suite} -a ftp-master
105 fi
106
107 - For squeeze: merge Contents
108 if [ "${suitename}" = "squeeze" ]; then
109   cd $ftpdir/dists/${suite}
110   for carch in $(dak admin s-a list-arch ${suite}); do
111     echo doing ${carch}
112     cp $base/dak/templates/contents Contents-${carch}.new;
113     zcat {main,contrib,non-free}/Contents-${carch}.gz | ~joerg/mergecontents.pl | sort >> Contents-${carch}.new;
114     gzip -9v Contents-${carch}.new;
115     mv Contents-${carch}.new.gz Contents-${carch}.gz;
116   done
117   rm {main,contrib,non-free}/Contents-*
118 fi
119
120 - For wheezy: update main/i18n/Index
121 if [ "${suitename}" = "wheezy" ]; then
122   ${scriptsdir}/generate-i18n-Index "${ftpdir}/dists/${suite}"
123 fi
124
125 - Generate Releases:
126 dak generate-releases -f -s ${suite}
127 rm ${ftpdir}/dists/${suite}/InRelease
128
129 - have the SRMs sign it and put the signature in.
130 - Check if a mirror push is needed or next dinstall is enough. for a push
131 o if so, bash:
132
133 TRACEFILE="${ftpdir}/project/trace/ftp-master.debian.org"
134 DATE_SERIAL=$(date +"%Y%m%d01")
135 FILESOAPLUS1=$(awk '/serial/ { print $3+1 }' ${TRACEFILE} )
136 if [ "$DATE_SERIAL" -gt "$FILESOAPLUS1" ]; then
137     SERIAL="$DATE_SERIAL"
138 else
139     SERIAL="$FILESOAPLUS1"
140 fi
141 date -u > ${TRACEFILE}
142 echo "Using dak v1" >> ${TRACEFILE}
143 echo "Running on host: $(hostname -f)" >> ${TRACEFILE}
144 echo "Archive serial: ${SERIAL}" >> ${TRACEFILE}
145 cd ${mirrordir}
146 rsync -aH --link-dest ${ftpdir} --delete --delete-after --ignore-errors ${ftpdir}/. .
147 date -u > /srv/ftp.debian.org/web/mirrorstart
148 echo "Using dak v1" >> /srv/ftp.debian.org/web/mirrorstart
149 echo "Running on host $(hostname -f)" >> /srv/ftp.debian.org/web/mirrorstart
150 sudo -H -u archvsync /home/archvsync/runmirrors > ~dak/runmirrors.log 2>&1 &
151