README.stable-point-release 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. Rough Guide to doing Stable Point Releases in Debian
  2. ----------------------------------------------------
  3. - sudo to dak
  4. - bash:
  5. suite=stable
  6. suitename=jessie
  7. pusuite=proposed-updates
  8. oldrev=8.1
  9. newrev=8.2
  10. export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
  11. . $SCRIPTVARS
  12. . "${configdir}/common"
  13. . "${configdir}/dinstall.functions"
  14. umask 022
  15. export LANG=C
  16. export LC_ALL=C
  17. pg_timestamp pre_${suite}_${newrev}
  18. cd ~
  19. mkdir -p ${suite}_${newrev}
  20. cd ${suite}_${newrev}
  21. dak control-suite -l ${pusuite} > ${pusuite}.list
  22. dak control-suite -l ${suite} > ${suite}.list
  23. - ask SRMs if there is anything to be skipped from this release. If so
  24. edit ${pusuite}.list (and later the Changelog too)
  25. - bash:
  26. skip="squid3 icedove php5"
  27. if [ -n "${skip}" ]; then
  28. mv ${pusuite}.list ${pusuite}.list.ori
  29. grep -vFf <(dak ls -f heidi -S -s ${pusuite} ${skip}) ${pusuite}.list.ori > ${pusuite}.list
  30. fi
  31. dak make-changelog -s ${pusuite} -b ${suite} | cat - ${ftpdir}/dists/${suite}/ChangeLog | sponge ${ftpdir}/dists/${suite}/ChangeLog
  32. if [ -n "${skip}" ]; then
  33. $EDITOR ${ftpdir}/dists/${suite}/ChangeLog
  34. fi
  35. dak control-suite --add ${suite} < ${pusuite}.list
  36. dak control-suite --remove ${pusuite} < ${pusuite}.list
  37. - clean up *.changes from proposed-updates:
  38. # Be careful if uploads were not included in the point release.
  39. pumorguedir="${base}/morgue/queues/$(date +%Y/%m)"
  40. mkdir -p "${pumorguedir}"
  41. cd ${ftpdir}/dists/${pusuite}
  42. mv -t "${pumorguedir}" -n -- *.changes
  43. - -r0 additions?
  44. For example new d-i. If so:
  45. cd ~/${suite}_${newrev}
  46. cp /srv/release.debian.org/www/${suitename}/${newrev%%.*}/${newrev}/${suitename}-r0-additions.cs .
  47. dak control-suite --add ${suitename}-r0 < ${suitename}-r0-additions.cs
  48. - sync with stable RM if there is any propup needed. do it, if so:
  49. cp /srv/release.debian.org/www/${suitename}/${newrev%%.*}/${newrev}/propups.unstable .
  50. dak control-suite --force --add unstable <propups.unstable
  51. cp /srv/release.debian.org/www/${suitename}/${newrev%%.*}/${newrev}/propups.testing .
  52. dak control-suite --force --add testing <propups.testing
  53. - ask rms if they have RMs to do.
  54. - and then check if they have a d-i update. if so, bash:
  55. # set dioldver to "empty" if there is no old to remove
  56. diver=20150422+deb8u2
  57. dak copy-installer -s ${pusuite} -d ${suite} ${diver}
  58. dioldver=20150422+deb8u1
  59. if [ "${dioldver}" != "empty" ]; then
  60. cd $ftpdir/dists/${suite}/main
  61. for iarch in $(dak admin s-a list-arch ${suite}); do
  62. if [ -d "installer-${iarch}/${dioldver}" ]; then
  63. echo "Moving installer-${iarch}/${dioldver} to morgue"
  64. mkdir -p "${base}/morgue/d-i/installer-${iarch}/"
  65. mv "installer-${iarch}/${dioldver}" "${base}/morgue/d-i/installer-${iarch}/"
  66. fi
  67. done
  68. # Remove old version also from proposed-updates
  69. cd $ftpdir/dists/${pusuite}/main
  70. for iarch in $(dak admin s-a list-arch ${suite}); do
  71. rm -rf -- "installer-${iarch}/${dioldver}"
  72. done
  73. fi
  74. cd $ftpdir/dists/${suite}
  75. - Updates for win32-loader?
  76. cd ${ftpdir}/tools/win32-loader
  77. if [ -d ${suitename}-proposed-updates ]; then
  78. rm -r ${suite}
  79. mv ${suitename}-proposed-updates ${suite}
  80. fi
  81. cd ${ftpdir}
  82. - Update version number in README, README.html and dists/README,
  83. Clean up dists/stable/ChangeLog (add header, basically). bash:
  84. cd ${ftpdir}/dists/${suite}
  85. date_long=$(date "+%A, %-dth %B %Y" | sed 's/1th/1st/; s/2th/2nd/; s/3th/3rd/')
  86. date_iso=$(date "+%Y-%m-%d")
  87. date_short=$(date "+%a, %d %b %Y")
  88. sed -e "1i======================================\n${date_short} - Debian ${newrev} released\n======================================" -i ChangeLog
  89. sed -e "/^${suite}/ s/Debian ${oldrev}/Debian ${newrev}/" -i ../README
  90. sed -e "s/Debian ${oldrev}/Debian ${newrev}/g; /Debian ${newrev}/ s/released .*\\./released ${date_long}./" -i ../../README
  91. sed -e "s/Debian ${oldrev}/Debian ${newrev}/g; /Debian ${newrew}/ s/released .*\\./released ${date_long}./; /meta name=\"Modified\"/ s/content=\".*\"/content=\"${date_iso}\"/" -i ../../README.html
  92. # Inspect changes. Regular expressions might be a bit fragile.
  93. $EDITOR ChangeLog ../README ../../README ../../README.html
  94. rm -f -- ./*~ ../*~ ../../*~
  95. - Update the 'Debian<n>.<n>r<n>' symlink in dists/
  96. cd $ftpdir/dists/
  97. rm -f Debian${oldrev}
  98. ln -s ${suitename} Debian${newrev}
  99. - Update fields in suite table in postgresql.
  100. bash:
  101. mdate=$(date +"%d %B %Y")
  102. psql projectb <<EOF
  103. begin;
  104. update suite set version = '${newrev}' where suite_name = '${suite}';
  105. update suite set description = 'Debian ${newrev} Released ${mdate}' where suite_name = '${suite}';
  106. commit;
  107. EOF
  108. - prepare for gps. bash:
  109. dak dominate --force -s ${suite}
  110. - check output from cruft report:
  111. dak cruft-report -s ${suite}
  112. - if cruft was removed: go back to run dominate again
  113. - Let SRM see if all is ok
  114. - then:
  115. dak generate-packages-sources2 --force -s ${suite} && dak contents generate -f -s ${suite} -a ftp-master
  116. - For wheezy: update main/i18n/Index
  117. if [[ ${suitename} == wheezy ]]; then
  118. ${scriptsdir}/generate-i18n-Index "${ftpdir}/dists/${suite}"
  119. fi
  120. - Generate Releases:
  121. dak generate-releases -f -s ${suite} ${pusuite}
  122. # Remove InRelease: Release can be signed by both ftpmaster & stable release keys
  123. rm ${ftpdir}/dists/${suite}/InRelease
  124. - have the SRMs sign it and put the signature in.
  125. cd ${ftpdir}/dists/${suite}
  126. cat /srv/release.debian.org/www/${suitename}/${newrev%%.*}/${newrev}/Release.gpg >> Release.gpg
  127. gpg --no-default-keyring --keyring /usr/share/keyrings/debian-archive-keyring.gpg --trust-model=always --verify Release.gpg Release
  128. - Check if a mirror push is needed or next dinstall is enough. for a push
  129. o if so, bash:
  130. TRACEFILE="${ftpdir}/project/trace/ftp-master.debian.org"
  131. DATE_SERIAL=$(date +"%Y%m%d01")
  132. FILESOAPLUS1=$(awk '/serial/ { print $3+1 }' ${TRACEFILE} )
  133. if [ "$DATE_SERIAL" -gt "$FILESOAPLUS1" ]; then
  134. SERIAL="$DATE_SERIAL"
  135. else
  136. SERIAL="$FILESOAPLUS1"
  137. fi
  138. date -u > ${TRACEFILE}
  139. echo "Using dak v1" >> ${TRACEFILE}
  140. echo "Running on host: $(hostname -f)" >> ${TRACEFILE}
  141. echo "Archive serial: ${SERIAL}" >> ${TRACEFILE}
  142. cd ${mirrordir}
  143. rsync -aH --link-dest ${ftpdir} --delete --delete-after --ignore-errors ${ftpdir}/. .
  144. date -u > /srv/ftp.debian.org/web/mirrorstart
  145. echo "Using dak v1" >> /srv/ftp.debian.org/web/mirrorstart
  146. echo "Running on host $(hostname -f)" >> /srv/ftp.debian.org/web/mirrorstart
  147. sudo -H -u archvsync /home/archvsync/runmirrors > ~dak/runmirrors.log 2>&1 &