README.release 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. Notes from the Debian Stretch release
  2. =====================================
  3. configdir=${configdir:-"/srv/ftp-master.debian.org/dak/config/debian"}
  4. export SCRIPTVARS=${configdir}/vars
  5. . "${SCRIPTVARS}"
  6. . "${configdir}/dinstall.functions"
  7. umask 022
  8. sql() {(
  9. set -eu
  10. psql -qAt "${@}"
  11. )}
  12. rename-suite() {(
  13. set -eu
  14. local oldsuite="${1}"
  15. local newsuite="${2}"
  16. archive_path=$(sql -c "SELECT path FROM archive WHERE id=(SELECT archive_id FROM suite WHERE suite_name='${oldsuite}')")
  17. cd ${archive_path:?}/dists
  18. if [[ -L ${newsuite} || -e ${newsuite} ]]; then
  19. echo "E: ${newsuite} already exists" >&2
  20. exit 1
  21. fi
  22. mv -- ${oldsuite} ${newsuite}
  23. sql -1 <<-EOT
  24. UPDATE suite
  25. SET
  26. suite_name='${newsuite}',
  27. copychanges = CASE WHEN copychanges IS NULL THEN NULL ELSE 'dists/${newsuite}' END
  28. WHERE suite_name='${oldsuite}'
  29. ;
  30. UPDATE suite
  31. SET overridesuite='${newsuite}'
  32. WHERE overridesuite='${oldsuite}'
  33. ;
  34. EOT
  35. )}
  36. rename-policy-queue() {(
  37. set -eu
  38. oldqueue="${1}"
  39. newqueue="${2}"
  40. newpath="${3}"
  41. oldpath=$(sql -c "SELECT path FROM policy_queue WHERE queue_name='${oldqueue}'")
  42. if [[ -L ${newpath} || -e ${newpath} ]]; then
  43. echo "E: ${newpath} already exists" >&2
  44. exit 1
  45. fi
  46. mv -- ${oldpath:?} ${newpath}
  47. sql -c "UPDATE policy_queue SET queue_name='${newqueue}', path='${newpath}' WHERE queue_name='${oldqueue}'"
  48. )}
  49. # After new testing is setup:
  50. dak external-overrides copy unstable testing
  51. Notes from the Debian Jessie release
  52. ====================================
  53. Some notes from the Debian Jessie release including some
  54. corrections. There might still be errors.
  55. UPDATE SUITES:
  56. begin;
  57. -- update suites:
  58. update suite set suite_name = 'oldoldstable', validtime = 0 where codename = 'squeeze';
  59. update suite set suite_name = 'oldstable' where codename = 'wheezy';
  60. update suite set suite_name = 'stable', version = '8.0', description = 'Debian 8.0 Released 25 April 2015', overrideprocess = false, overrideorigin = null, allowcsset = false, announce = array['debian-changes@lists.debian.org'], validtime = 0 where codename = 'jessie';
  61. update suite set suite_name = 'stable-kfreebsd', description = 'Debian 8 (kfreebsd)', overridesuite = 'stable', overridecodename = null where codename = 'jessie-kfreebsd';
  62. update suite set overridesuite = 'oldoldstable' where codename = 'squeeze-lts';
  63. update suite set suite_name = 'oldoldstable-proposed-updates', copychanges = 'dists/oldoldstable-proposed-updates', overridesuite = 'oldoldstable', validtime = 0 where codename = 'squeeze-proposed-updates';
  64. update suite set release_suite = 'oldoldstable-updates', overridesuite = 'oldoldstable', validtime = 0 where codename = 'squeeze-updates';
  65. update suite set suite_name = 'oldstable-proposed-updates', copychanges = 'dists/oldstable-proposed-updates', overridesuite = 'oldstable' where codename = 'wheezy-proposed-updates';
  66. update suite set release_suite = 'oldstable-updates', overridesuite = 'oldstable' where codename = 'wheezy-updates';
  67. update suite set suite_name = 'proposed-updates', version = '8-updates', description = 'Proposed Updates for Debian 8 - Not Released', copychanges = 'dists/proposed-updates', overridesuite = 'stable', announce = array['debian-changes@lists.debian.org'] where codename = 'jessie-proposed-updates';
  68. update suite set release_suite = 'stable-updates', overridesuite = 'stable' where codename = 'jessie-updates';
  69. update suite set suite_name = 'stable-kfreebsd-proposed-updates', description = 'Proposed Updates for Debian 8 (kfreebsd) - Not Released', copychanges = 'dists/stable-kfreebsd-proposed-updates', overridesuite = 'stable' where codename = 'jessie-kfreebsd-proposed-updates';
  70. -- helper suites:
  71. update suite set suite_name = 'oldoldstable-new', overridesuite = 'oldoldstable', codename = 'squeeze-new' where suite_name = 'oldstable-new';
  72. update suite set suite_name = 'oldstable-new', overridesuite = 'oldstable', codename = 'wheezy-new' where suite_name = 'stable-new';
  73. -- update build queues:
  74. update suite set overridesuite = 'oldoldstable' where codename = 'buildd-squeeze-lts';
  75. update suite set suite_name = 'buildd-oldstable-proposed-updates', overridesuite = 'oldstable' where codename = 'buildd-wheezy-proposed-updates';
  76. update suite set suite_name = 'buildd-proposed-updates', description = 'buildd jessie-proposed-updates incoming', overridesuite = 'stable' where codename = 'buildd-jessie-proposed-updates';
  77. update suite set suite_name = 'buildd-stable-kfreebsd-proposed-updates', description = 'buildd jessie-kfreebsd-proposed-updates incoming', overridesuite = 'stable' where codename = 'buildd-jessie-kfreebsd-proposed-updates';
  78. commit;
  79. MOVE STUFF AROUND:
  80. cd /srv/ftp-master.debian.org/ftp/dists
  81. rm oldstable oldstable-proposed-updates oldstable-updates proposed-updates stable stable-backports stable-proposed-updates stable-updates testing testing-kfreebsd testing-kfreebsd-proposed-updates testing-proposed-updates testing-updates
  82. ln -s squeeze oldoldstable
  83. ln -s squeeze-proposed-updates oldoldstable-proposed-updates
  84. ln -s squeeze-updates oldoldstable-updates
  85. ln -s jessie-proposed-updates proposed-updates
  86. ln -s jessie stable
  87. ln -s jessie-backports stable-backports
  88. ln -s jessie-proposed-updates stable-proposed-updates
  89. ln -s jessie-updates stable-updates
  90. ln -s stretch testing
  91. ln -s jessie-kfreebsd stable-kfreebsd
  92. ln -s jessie-kfreebsd-proposed-updates stable-kfreebsd-proposed-updates
  93. ln -s stretch-proposed-updates testing-proposed-updates
  94. ln -s stretch-updates testing-updates
  95. ln -s jessie Debian8.0
  96. # edit README, README.html, dists/README
  97. # rm .diff from dists/jessie
  98. # rm dists/jessie/ChangeLog*
  99. # add new dists/jessie/ChangeLog:
  100. cd /srv/ftp-master.debian.org/ftp/dists/jessie
  101. cat >ChangeLog <<EOT
  102. =========================================
  103. Sat, 25 Apr 2015 - Debian 8.0 released
  104. =========================================
  105. EOT
  106. # check win32-loader!
  107. # - even copy in testing/ might be outdated.
  108. cd /srv/ftp-master.debian.org/public/incoming.debian.org/web/debian-buildd/dists
  109. rm buildd-jessie-proposed-updates buildd-testing-kfreebsd-proposed-updates buildd-wheezy-proposed-updates
  110. mv buildd-proposed-updates buildd-wheezy-proposed-updates
  111. mv buildd-testing-proposed-updates buildd-jessie-proposed-updates
  112. ln -s buildd-wheezy-proposed-updates buildd-oldstable-proposed-updates
  113. ln -s buildd-jessie-proposed-updates buildd-proposed-updates
  114. ln -s buildd-jessie-kfreebsd-proposed-updates buildd-stable-kfreebsd-proposed-updates
  115. SQL MISS:
  116. begin;
  117. update suite set changelog = null where codename = 'jessie';
  118. commit;
  119. D-I CLEANUP:
  120. cd /srv/ftp-master.debian.org/ftp/dists/jessie/main
  121. morgue=/srv/ftp-master.debian.org/morgue/d-i
  122. for arch in installer-*; do
  123. for version in ${arch}/20*; do
  124. case ${version} in
  125. */20150422) ;;
  126. *) mv -v -- ${version} ${morgue}/${arch}/ ;;
  127. esac
  128. done
  129. done
  130. INDICES:
  131. suite=stable
  132. dak generate-packages-sources2 --force -s ${suite} && dak contents generate -f -s ${suite} -a ftp-master
  133. BEGIN;
  134. update suite set signingkeys = ARRAY['46925553', '2B90D010'] WHERE signingkeys = ARRAY['46925553'];
  135. COMMIT;
  136. dak generate-releases -f -s stable
  137. dak generate-releases -f -s oldstable
  138. dak generate-releases -f -s oldoldstable
  139. dak generate-releases -f -s oldoldstable-proposed-updates
  140. dak generate-releases -f -s oldoldstable-updates
  141. # rm InRelease
  142. # Add signatures from release team
  143. # mirror push (CD MIRROR ONLY!)
  144. LATER SQL:
  145. begin;
  146. update suite set untouchable = true where codename in ('squeeze', 'jessie', 'squeeze-proposed-updates', 'squeeze-updates');
  147. commit;
  148. JESSIE-R0:
  149. dak admin suite add jessie-r0 '' description='Extraneous packages/sources required for GPL compliance' origin=Debian label=Debian codename=jessie-r0 archive=ftp-master
  150. dak admin s-c add jessie-r0 main contrib non-free
  151. dak admin s-a add jessie-r0 $(dak admin s-a list-arch stable)
  152. dak control-suite -l stable | grep '^debian-installer ' | dak control-suite -a jessie-r0
  153. dak control-suite -l jessie-r0
  154. begin;
  155. update suite set untouchable=true where codename='jessie-r0';
  156. commit;
  157. POLICY QUEUES:
  158. dak admin suite add stable-new '' codename=jessie-new archive=policy
  159. begin;
  160. update policy_queue set queue_name = 'oldoldstable-new', path = '/srv/ftp-master.debian.org/queue/o-o-p-u-new', change_perms = '0644' where queue_name = 'oldstable-new';
  161. update policy_queue set queue_name = 'oldstable-new', path = '/srv/ftp-master.debian.org/queue/o-p-u-new', change_perms = '0644' where queue_name = 'stable-new';
  162. insert into policy_queue (queue_name, path, change_perms, suite_id) values ('stable-new', '/srv/ftp-master.debian.org/queue/p-u-new', '0644', (select id from suite where codename='jessie-new'));
  163. update suite set policy_queue_id = (select id from policy_queue where queue_name = 'jessie-new') where codename = 'jessie-proposed-updates';
  164. commit;
  165. dak admin s-c add stable-new main contrib non-free
  166. dak admin s-a add stable-new source all $(dak admin s-a list-arch stable)
  167. NEW TESTING:
  168. dak admin suite add testing '' origin=Debian label=Debian codename=stretch description='Debian x.y Testing distribution - Not Released' archive=ftp-master
  169. dak admin s-c add testing main contrib non-free
  170. dak admin s-a add testing source all $(dak admin s-a list-arch stable)
  171. dak admin suite add testing-proposed-updates '' origin=Debian label=Debian codename=stretch-proposed-updates description='Debian x.y Testing distribution Proposed Updates - Not Released' archive=ftp-master
  172. dak admin s-c add testing-proposed-updates main contrib non-free
  173. dak admin s-a add testing-proposed-updates source all $(dak admin s-a list-arch stable)
  174. dak admin suite add testing-updates '' origin=Debian label=Debian codename=stretch-updates description='Debian x.y Testing distribution Updates - Not Released' archive=ftp-master
  175. dak admin s-c add testing-updates main contrib non-free
  176. dak admin s-a add testing-updates $(dak admin s-a list-arch stable)
  177. for c in main contrib non-free; do
  178. for t in deb dsc udeb; do
  179. dak control-overrides -s stable -t ${t} -c ${c} -l | dak control-overrides -s testing -t ${t} -c ${c} --set
  180. done
  181. done
  182. time dak update-suite stable testing
  183. begin;
  184. update suite set changelog = 'dists/stretch/ChangeLog', overrideprocess=true, overrideorigin = 'unstable' where codename = 'stretch';
  185. update suite set overridesuite = 'testing', announce=array['debian-testing-changes@lists.debian.org'] where codename in ('stretch', 'stretch-proposed-updates', 'stretch-updates');
  186. update suite set signingkeys = array['46925553','2B90D010'] where codename in ('stretch', 'stretch-proposed-updates', 'stretch-updates');
  187. commit;
  188. dak admin s add-build-queue testing-proposed-updates buildd-testing-proposed-updates buildd-stretch-proposed-updates build-queues
  189. cd /srv/ftp-master.debian.org/public/incoming.debian.org/web/debian-buildd/dists
  190. mkdir buildd-stretch-proposed-updates
  191. ln -s buildd-stretch-proposed-updates buildd-testing-proposed-updates
  192. MOVE MOVING AROUND:
  193. cd /srv/ftp-master.debian.org/queue
  194. mv o-p-u-new o-o-p-u-new
  195. mv p-u-new o-p-u-new
  196. mv oldstable-proposed-updates oldoldstable-proposed-updates
  197. mv proposed-updates oldstable-proposed-updates
  198. mkdir -p p-u-new/COMMENTS proposed-updates
  199. V-C:
  200. dak admin v-c add testing-proposed-updates Enhances testing
  201. dak admin v-c add testing-proposed-updates MustBeOlderThan experimental
  202. dak admin v-c add testing-proposed-updates MustBeNewerThan stable
  203. dak admin v-c add testing-proposed-updates MustBeNewerThan oldstable
  204. dak admin v-c add testing-proposed-updates MustBeNewerThan oldoldstable
  205. dak admin v-c add testing-updates Enhances testing
  206. dak admin v-c add testing-proposed-updates MustBeNewerThan testing
  207. dak admin v-c add testing-updates MustBeNewerThan testing
  208. dak admin v-c add testing-updates MustBeOlderThan experimental
  209. dak admin v-c add testing-updates MustBeNewerThan stable
  210. dak admin v-c add testing-updates MustBeNewerThan oldstable
  211. dak admin v-c add testing-updates MustBeNewerThan oldoldstable
  212. dak admin v-c add unstable MustBeNewerThan testing
  213. dak admin v-c add experimental MustBeNewerThan testing
  214. dak admin v-c add stable-kfreebsd-proposed-updates Enhances stable-kfreebsd
  215. dak admin v-c add stable-kfreebsd-proposed-updates MustBeNewerThan stable-kfreebsd
  216. FINISH:
  217. for s in testing testing-proposed-updates testing-updates; do
  218. dak generate-packages-sources2 -s ${s}
  219. dak contents generate -s ${s} -a ftp-master
  220. done
  221. dak generate-releases -a ftp-master
  222. dak generate-packages-sources2 -a build-queues
  223. dak generate-releases -a build-queues