]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-632221-cross-dependency-satisfaction
handle gpgv's weak-digests ERRSIG
[apt.git] / test / integration / test-bug-632221-cross-dependency-satisfaction
CommitLineData
234675b7
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
234675b7
DK
6setupenvironment
7configarchitecture 'amd64' 'armel'
8
737c7a7b 9insertinstalledpackage 'build-essential' 'all' '11.5' 'Multi-Arch: foreign'
234675b7 10
737c7a7b 11insertpackage 'unstable' 'doxygen' 'amd64,armel' '1.0' 'Multi-Arch: foreign'
234675b7
DK
12insertpackage 'unstable' 'libc6' 'amd64,armel' '1.0' 'Multi-Arch: same'
13insertpackage 'unstable' 'libc6-dev' 'amd64,armel' '1.0' 'Depends: libc6
14Multi-Arch: same'
737c7a7b
SL
15insertpackage 'unstable' 'libfwibble1' 'amd64,armel' '1.0' 'Depends: libc6
16Multi-Arch: same'
17insertpackage 'unstable' 'libfwibble-dev' 'amd64,armel' '1.0' 'Depends: libfwibble1'
234675b7
DK
18insertpackage 'unstable' 'cool' 'amd64,armel' '1.0' 'Multi-Arch: allowed'
19insertpackage 'unstable' 'amdboot' 'amd64' '1.0'
20insertpackage 'unstable' 'foreigner' 'amd64,armel' '1.0' 'Multi-Arch: foreign'
65f99834
DK
21insertpackage 'unstable' 'arm-stuff' 'armel' '1.0'
22insertpackage 'unstable' 'linux-stuff' 'amd64,armel' '1.0'
234675b7 23
5f20ac7f 24insertsource 'unstable' 'apt' 'any' '0.8.15' 'Build-Depends: doxygen, libc6-dev, libc6-dev:native, cool:any, amdboot:amd64, foreigner, libfwibble-dev, arm-stuff [any-armel] | linux-stuff [ linux-any]'
234675b7 25
22df31be 26insertsource 'unstable' 'forbidden-no' 'any' '1' 'Build-Depends: amdboot:any'
d5dea0be
DK
27insertsource 'unstable' 'forbidden-same' 'any' '1' 'Build-Depends: libc6:any'
28insertsource 'unstable' 'forbidden-foreign' 'any' '1' 'Build-Depends: doxygen:any'
29
249a02f5
DK
30insertpackage 'unstable' 'specific' 'amd64' '1.0' 'Depends: libc6:amd64'
31insertpackage 'unstable' 'specific' 'armel' '1.0' 'Depends: libc6:armel'
32
33insertsource 'unstable' 'source-specific-amd64' 'amd64' '1' 'Build-Depends: specific:amd64'
34insertsource 'unstable' 'source-specific-armel' 'armel' '1' 'Build-Depends: specific:armel'
35
234675b7
DK
36setupaptarchive
37
a249b3e6
DK
38testfailureequal 'Reading package lists...
39Reading package lists...
d5dea0be 40Building dependency tree...
a249b3e6
DK
41Some packages could not be installed. This may mean that you have
42requested an impossible situation or if you are using the unstable
43distribution that some required packages have not yet been created
44or been moved out of Incoming.
45The following information may help to resolve the situation:
46
47The following packages have unmet dependencies:
48 builddeps:forbidden-no:armel : Depends: amdboot:any but it is not installable
49E: Unable to correct problems, you have held broken packages.' aptget build-dep forbidden-no -s -a armel
50testfailureequal 'Reading package lists...
51Reading package lists...
d5dea0be 52Building dependency tree...
a249b3e6
DK
53Some packages could not be installed. This may mean that you have
54requested an impossible situation or if you are using the unstable
55distribution that some required packages have not yet been created
56or been moved out of Incoming.
57The following information may help to resolve the situation:
58
59The following packages have unmet dependencies:
60 builddeps:forbidden-same:armel : Depends: libc6:any but it is not installable
61E: Unable to correct problems, you have held broken packages.' aptget build-dep forbidden-same -s -a armel
62testfailureequal 'Reading package lists...
63Reading package lists...
d5dea0be 64Building dependency tree...
a249b3e6
DK
65Some packages could not be installed. This may mean that you have
66requested an impossible situation or if you are using the unstable
67distribution that some required packages have not yet been created
68or been moved out of Incoming.
69The following information may help to resolve the situation:
70
71The following packages have unmet dependencies:
72 builddeps:forbidden-foreign:armel : Depends: doxygen:any but it is not installable
73E: Unable to correct problems, you have held broken packages.' aptget build-dep forbidden-foreign -s -a armel
d5dea0be 74
25b86db1 75testsuccessequal 'Reading package lists...
a249b3e6 76Reading package lists...
249a02f5
DK
77Building dependency tree...
78The following NEW packages will be installed:
79 libc6 specific
800 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
81Inst libc6 (1.0 unstable [amd64])
82Inst specific (1.0 unstable [amd64])
83Conf libc6 (1.0 unstable [amd64])
84Conf specific (1.0 unstable [amd64])' aptget build-dep source-specific-amd64 -s
25b86db1 85testsuccessequal 'Reading package lists...
a249b3e6 86Reading package lists...
249a02f5
DK
87Building dependency tree...
88The following NEW packages will be installed:
89 libc6 specific
900 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
91Inst libc6 (1.0 unstable [amd64])
92Inst specific (1.0 unstable [amd64])
93Conf libc6 (1.0 unstable [amd64])
94Conf specific (1.0 unstable [amd64])' aptget build-dep source-specific-amd64 -s -a armel
666faa35 95
25b86db1 96testsuccessequal 'Reading package lists...
a249b3e6 97Reading package lists...
249a02f5
DK
98Building dependency tree...
99The following NEW packages will be installed:
100 libc6:armel specific:armel
1010 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
102Inst libc6:armel (1.0 unstable [armel])
103Inst specific:armel (1.0 unstable [armel])
104Conf libc6:armel (1.0 unstable [armel])
105Conf specific:armel (1.0 unstable [armel])' aptget build-dep source-specific-armel -s
25b86db1 106testsuccessequal 'Reading package lists...
a249b3e6 107Reading package lists...
249a02f5
DK
108Building dependency tree...
109The following NEW packages will be installed:
110 libc6:armel specific:armel
1110 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
112Inst libc6:armel (1.0 unstable [armel])
113Inst specific:armel (1.0 unstable [armel])
114Conf libc6:armel (1.0 unstable [armel])
115Conf specific:armel (1.0 unstable [armel])' aptget build-dep source-specific-armel -s -a armel
116
25b86db1 117testsuccessequal 'Reading package lists...
a249b3e6 118Reading package lists...
234675b7
DK
119Building dependency tree...
120The following NEW packages will be installed:
737c7a7b 121 amdboot cool doxygen foreigner libc6 libc6-dev libfwibble-dev libfwibble1
65f99834
DK
122 linux-stuff
1230 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
234675b7
DK
124Inst amdboot (1.0 unstable [amd64])
125Inst cool (1.0 unstable [amd64])
126Inst doxygen (1.0 unstable [amd64])
127Inst foreigner (1.0 unstable [amd64])
128Inst libc6 (1.0 unstable [amd64])
129Inst libc6-dev (1.0 unstable [amd64])
737c7a7b
SL
130Inst libfwibble1 (1.0 unstable [amd64])
131Inst libfwibble-dev (1.0 unstable [amd64])
65f99834 132Inst linux-stuff (1.0 unstable [amd64])
234675b7
DK
133Conf amdboot (1.0 unstable [amd64])
134Conf cool (1.0 unstable [amd64])
135Conf doxygen (1.0 unstable [amd64])
136Conf foreigner (1.0 unstable [amd64])
137Conf libc6 (1.0 unstable [amd64])
737c7a7b
SL
138Conf libc6-dev (1.0 unstable [amd64])
139Conf libfwibble1 (1.0 unstable [amd64])
65f99834
DK
140Conf libfwibble-dev (1.0 unstable [amd64])
141Conf linux-stuff (1.0 unstable [amd64])' aptget build-dep apt -s
234675b7 142
25b86db1 143testsuccessequal 'Reading package lists...
a249b3e6 144Reading package lists...
234675b7
DK
145Building dependency tree...
146The following NEW packages will be installed:
65f99834
DK
147 amdboot arm-stuff:armel cool doxygen foreigner libc6 libc6:armel libc6-dev
148 libc6-dev:armel libfwibble-dev:armel libfwibble1:armel
1490 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
234675b7 150Inst amdboot (1.0 unstable [amd64])
65f99834 151Inst arm-stuff:armel (1.0 unstable [armel])
234675b7
DK
152Inst cool (1.0 unstable [amd64])
153Inst doxygen (1.0 unstable [amd64])
154Inst foreigner (1.0 unstable [amd64])
234675b7 155Inst libc6 (1.0 unstable [amd64])
30426f48 156Inst libc6:armel (1.0 unstable [armel])
234675b7 157Inst libc6-dev (1.0 unstable [amd64])
30426f48 158Inst libc6-dev:armel (1.0 unstable [armel])
737c7a7b
SL
159Inst libfwibble1:armel (1.0 unstable [armel])
160Inst libfwibble-dev:armel (1.0 unstable [armel])
234675b7 161Conf amdboot (1.0 unstable [amd64])
65f99834 162Conf arm-stuff:armel (1.0 unstable [armel])
234675b7
DK
163Conf cool (1.0 unstable [amd64])
164Conf doxygen (1.0 unstable [amd64])
165Conf foreigner (1.0 unstable [amd64])
166Conf libc6 (1.0 unstable [amd64])
167Conf libc6:armel (1.0 unstable [armel])
168Conf libc6-dev (1.0 unstable [amd64])
737c7a7b
SL
169Conf libc6-dev:armel (1.0 unstable [armel])
170Conf libfwibble1:armel (1.0 unstable [armel])
171Conf libfwibble-dev:armel (1.0 unstable [armel])' aptget build-dep apt -s -a armel
234675b7
DK
172
173configarchitecture 'armel' 'amd64'
174
25b86db1 175testsuccessequal 'Reading package lists...
234675b7
DK
176Building dependency tree...
177The following NEW packages will be installed:
65f99834
DK
178 amdboot:amd64 arm-stuff cool doxygen foreigner libc6 libc6-dev
179 libfwibble-dev libfwibble1
1800 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
234675b7 181Inst amdboot:amd64 (1.0 unstable [amd64])
65f99834 182Inst arm-stuff (1.0 unstable [armel])
234675b7
DK
183Inst cool (1.0 unstable [armel])
184Inst doxygen (1.0 unstable [armel])
185Inst foreigner (1.0 unstable [armel])
186Inst libc6 (1.0 unstable [armel])
187Inst libc6-dev (1.0 unstable [armel])
737c7a7b
SL
188Inst libfwibble1 (1.0 unstable [armel])
189Inst libfwibble-dev (1.0 unstable [armel])
234675b7 190Conf amdboot:amd64 (1.0 unstable [amd64])
65f99834 191Conf arm-stuff (1.0 unstable [armel])
234675b7
DK
192Conf cool (1.0 unstable [armel])
193Conf doxygen (1.0 unstable [armel])
194Conf foreigner (1.0 unstable [armel])
195Conf libc6 (1.0 unstable [armel])
737c7a7b
SL
196Conf libc6-dev (1.0 unstable [armel])
197Conf libfwibble1 (1.0 unstable [armel])
198Conf libfwibble-dev (1.0 unstable [armel])' aptget build-dep apt -s
234675b7 199
25b86db1 200testsuccessequal 'Reading package lists...
a249b3e6 201Reading package lists...
234675b7
DK
202Building dependency tree...
203The following NEW packages will be installed:
463c8d80
DK
204 amdboot:amd64 cool doxygen foreigner libc6 libc6:amd64 libc6-dev
205 libc6-dev:amd64 libfwibble-dev:amd64 libfwibble1:amd64 linux-stuff:amd64
65f99834 2060 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
234675b7
DK
207Inst amdboot:amd64 (1.0 unstable [amd64])
208Inst cool (1.0 unstable [armel])
209Inst doxygen (1.0 unstable [armel])
210Inst foreigner (1.0 unstable [armel])
30426f48 211Inst libc6 (1.0 unstable [armel])
463c8d80 212Inst libc6:amd64 (1.0 unstable [amd64])
30426f48 213Inst libc6-dev (1.0 unstable [armel])
463c8d80 214Inst libc6-dev:amd64 (1.0 unstable [amd64])
737c7a7b
SL
215Inst libfwibble1:amd64 (1.0 unstable [amd64])
216Inst libfwibble-dev:amd64 (1.0 unstable [amd64])
65f99834 217Inst linux-stuff:amd64 (1.0 unstable [amd64])
234675b7
DK
218Conf amdboot:amd64 (1.0 unstable [amd64])
219Conf cool (1.0 unstable [armel])
220Conf doxygen (1.0 unstable [armel])
221Conf foreigner (1.0 unstable [armel])
234675b7 222Conf libc6 (1.0 unstable [armel])
463c8d80 223Conf libc6:amd64 (1.0 unstable [amd64])
737c7a7b 224Conf libc6-dev (1.0 unstable [armel])
463c8d80 225Conf libc6-dev:amd64 (1.0 unstable [amd64])
737c7a7b 226Conf libfwibble1:amd64 (1.0 unstable [amd64])
65f99834
DK
227Conf libfwibble-dev:amd64 (1.0 unstable [amd64])
228Conf linux-stuff:amd64 (1.0 unstable [amd64])' aptget build-dep apt -s -a amd64
234675b7
DK
229
230configarchitecture 'amd64' 'armel'
231
232insertinstalledpackage 'cool' 'amd64' '0.5'
233insertinstalledpackage 'foreigner' 'armel' '0.5'
234
25b86db1 235testsuccessequal 'Reading package lists...
234675b7
DK
236Building dependency tree...
237The following NEW packages will be installed:
65f99834 238 amdboot doxygen libc6 libc6-dev libfwibble-dev libfwibble1 linux-stuff
a249b3e6
DK
239The following packages will be upgraded:
240 foreigner:armel
2411 upgraded, 7 newly installed, 0 to remove and 1 not upgraded.
234675b7
DK
242Inst amdboot (1.0 unstable [amd64])
243Inst doxygen (1.0 unstable [amd64])
a249b3e6 244Inst foreigner:armel [0.5] (1.0 unstable [armel])
234675b7
DK
245Inst libc6 (1.0 unstable [amd64])
246Inst libc6-dev (1.0 unstable [amd64])
737c7a7b
SL
247Inst libfwibble1 (1.0 unstable [amd64])
248Inst libfwibble-dev (1.0 unstable [amd64])
65f99834 249Inst linux-stuff (1.0 unstable [amd64])
234675b7
DK
250Conf amdboot (1.0 unstable [amd64])
251Conf doxygen (1.0 unstable [amd64])
a249b3e6 252Conf foreigner:armel (1.0 unstable [armel])
234675b7 253Conf libc6 (1.0 unstable [amd64])
737c7a7b
SL
254Conf libc6-dev (1.0 unstable [amd64])
255Conf libfwibble1 (1.0 unstable [amd64])
65f99834
DK
256Conf libfwibble-dev (1.0 unstable [amd64])
257Conf linux-stuff (1.0 unstable [amd64])' aptget build-dep apt -s
234675b7 258
25b86db1 259testsuccessequal 'Reading package lists...
a249b3e6 260Reading package lists...
234675b7
DK
261Building dependency tree...
262The following NEW packages will be installed:
65f99834 263 amdboot arm-stuff:armel doxygen libc6 libc6:armel libc6-dev libc6-dev:armel
737c7a7b 264 libfwibble-dev:armel libfwibble1:armel
a249b3e6
DK
265The following packages will be upgraded:
266 cool
2671 upgraded, 9 newly installed, 0 to remove and 1 not upgraded.
234675b7 268Inst amdboot (1.0 unstable [amd64])
65f99834 269Inst arm-stuff:armel (1.0 unstable [armel])
a249b3e6 270Inst cool [0.5] (1.0 unstable [amd64])
234675b7 271Inst doxygen (1.0 unstable [amd64])
234675b7 272Inst libc6 (1.0 unstable [amd64])
30426f48 273Inst libc6:armel (1.0 unstable [armel])
234675b7 274Inst libc6-dev (1.0 unstable [amd64])
30426f48 275Inst libc6-dev:armel (1.0 unstable [armel])
737c7a7b
SL
276Inst libfwibble1:armel (1.0 unstable [armel])
277Inst libfwibble-dev:armel (1.0 unstable [armel])
234675b7 278Conf amdboot (1.0 unstable [amd64])
65f99834 279Conf arm-stuff:armel (1.0 unstable [armel])
a249b3e6 280Conf cool (1.0 unstable [amd64])
234675b7
DK
281Conf doxygen (1.0 unstable [amd64])
282Conf libc6 (1.0 unstable [amd64])
283Conf libc6:armel (1.0 unstable [armel])
284Conf libc6-dev (1.0 unstable [amd64])
737c7a7b
SL
285Conf libc6-dev:armel (1.0 unstable [armel])
286Conf libfwibble1:armel (1.0 unstable [armel])
287Conf libfwibble-dev:armel (1.0 unstable [armel])' aptget build-dep apt -s -a armel
234675b7
DK
288
289configarchitecture 'armel' 'amd64'
290
291# cool 0.5 is not M-A: allowed, so amd64 is not acceptable
25b86db1 292testsuccessequal 'Reading package lists...
234675b7
DK
293Building dependency tree...
294The following packages will be REMOVED:
295 cool:amd64
296The following NEW packages will be installed:
65f99834
DK
297 amdboot:amd64 arm-stuff cool doxygen libc6 libc6-dev libfwibble-dev
298 libfwibble1
2990 upgraded, 8 newly installed, 1 to remove and 1 not upgraded.
234675b7
DK
300Remv cool:amd64 [0.5]
301Inst amdboot:amd64 (1.0 unstable [amd64])
65f99834 302Inst arm-stuff (1.0 unstable [armel])
234675b7
DK
303Inst cool (1.0 unstable [armel])
304Inst doxygen (1.0 unstable [armel])
305Inst libc6 (1.0 unstable [armel])
306Inst libc6-dev (1.0 unstable [armel])
737c7a7b
SL
307Inst libfwibble1 (1.0 unstable [armel])
308Inst libfwibble-dev (1.0 unstable [armel])
234675b7 309Conf amdboot:amd64 (1.0 unstable [amd64])
65f99834 310Conf arm-stuff (1.0 unstable [armel])
234675b7
DK
311Conf cool (1.0 unstable [armel])
312Conf doxygen (1.0 unstable [armel])
313Conf libc6 (1.0 unstable [armel])
737c7a7b
SL
314Conf libc6-dev (1.0 unstable [armel])
315Conf libfwibble1 (1.0 unstable [armel])
316Conf libfwibble-dev (1.0 unstable [armel])' aptget build-dep apt -s
234675b7 317
25b86db1 318testsuccessequal 'Reading package lists...
a249b3e6 319Reading package lists...
234675b7
DK
320Building dependency tree...
321The following NEW packages will be installed:
463c8d80 322 amdboot:amd64 doxygen libc6 libc6:amd64 libc6-dev libc6-dev:amd64
65f99834 323 libfwibble-dev:amd64 libfwibble1:amd64 linux-stuff:amd64
a249b3e6
DK
324The following packages will be upgraded:
325 cool:amd64 foreigner
3262 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
234675b7 327Inst amdboot:amd64 (1.0 unstable [amd64])
a249b3e6 328Inst cool:amd64 [0.5] (1.0 unstable [amd64])
234675b7 329Inst doxygen (1.0 unstable [armel])
a249b3e6 330Inst foreigner [0.5] (1.0 unstable [armel])
30426f48 331Inst libc6 (1.0 unstable [armel])
463c8d80 332Inst libc6:amd64 (1.0 unstable [amd64])
30426f48 333Inst libc6-dev (1.0 unstable [armel])
463c8d80 334Inst libc6-dev:amd64 (1.0 unstable [amd64])
737c7a7b
SL
335Inst libfwibble1:amd64 (1.0 unstable [amd64])
336Inst libfwibble-dev:amd64 (1.0 unstable [amd64])
65f99834 337Inst linux-stuff:amd64 (1.0 unstable [amd64])
234675b7 338Conf amdboot:amd64 (1.0 unstable [amd64])
a249b3e6 339Conf cool:amd64 (1.0 unstable [amd64])
234675b7 340Conf doxygen (1.0 unstable [armel])
a249b3e6 341Conf foreigner (1.0 unstable [armel])
234675b7 342Conf libc6 (1.0 unstable [armel])
463c8d80 343Conf libc6:amd64 (1.0 unstable [amd64])
737c7a7b 344Conf libc6-dev (1.0 unstable [armel])
463c8d80 345Conf libc6-dev:amd64 (1.0 unstable [amd64])
737c7a7b 346Conf libfwibble1:amd64 (1.0 unstable [amd64])
65f99834
DK
347Conf libfwibble-dev:amd64 (1.0 unstable [amd64])
348Conf linux-stuff:amd64 (1.0 unstable [amd64])' aptget build-dep apt -s -a amd64