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