]> git.decadent.org.uk Git - dak.git/blob - docs/README.stable-point-release
README.stable-point-release: add if block around squeeze-only step
[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 if [ "${suitename}" = "squeeze" ]; then
96   cd $ftpdir/dists/${suite}
97   for carch in $(dak admin s-a list-arch ${suite}); do
98     echo doing ${carch}
99     cp $base/dak/templates/contents Contents-${carch}.new;
100     zcat {main,contrib,non-free}/Contents-${carch}.gz | ~joerg/mergecontents.pl | sort >> Contents-${carch}.new;
101     gzip -9v Contents-${carch}.new;
102     mv Contents-${carch}.new.gz Contents-${carch}.gz;
103   done
104   rm {main,contrib,non-free}/Contents-*
105 fi
106
107 - For wheezy: update main/i18n/Index
108 if [ "${suitename}" = "wheezy" ]; then
109   ${scriptsdir}/generate-i18n-Index "${ftpdir}/dists/${suite}"
110 fi
111
112 - Generate Releases:
113 dak generate-releases -f -s ${suite}
114 rm ${ftpdir}/dists/${suite}/InRelease
115
116 - have the SRMs sign it and put the signature in.
117 - Check if a mirror push is needed or next dinstall is enough. for a push
118 o if so, bash:
119
120 TRACEFILE="${ftpdir}/project/trace/ftp-master.debian.org"
121 DATE_SERIAL=$(date +"%Y%m%d01")
122 FILESOAPLUS1=$(awk '/serial/ { print $3+1 }' ${TRACEFILE} )
123 if [ "$DATE_SERIAL" -gt "$FILESOAPLUS1" ]; then
124     SERIAL="$DATE_SERIAL"
125 else
126     SERIAL="$FILESOAPLUS1"
127 fi
128 date -u > ${TRACEFILE}
129 echo "Using dak v1" >> ${TRACEFILE}
130 echo "Running on host: $(hostname -f)" >> ${TRACEFILE}
131 echo "Archive serial: ${SERIAL}" >> ${TRACEFILE}
132 cd ${mirrordir}
133 rsync -aH --link-dest ${ftpdir} --delete --delete-after --ignore-errors ${ftpdir}/. .
134 date -u > /srv/ftp.debian.org/web/mirrorstart
135 echo "Using dak v1" >> /srv/ftp.debian.org/web/mirrorstart
136 echo "Running on host $(hostname -f)" >> /srv/ftp.debian.org/web/mirrorstart
137 sudo -H -u archvsync /home/archvsync/runmirrors > ~dak/runmirrors.log 2>&1 &
138