Debian Codegraph @

test/integration/test-bug-735967-lib32-to-i386-unavailable

raw
1 #!/bin/sh
2 set -e
3
4 TESTDIR="$(readlink -f "$(dirname "$0")")"
5 . "$TESTDIR/framework"
6
7 setupenvironment
8 allowremovemanual
9 configarchitecture 'i386' 'amd64'
10
11 insertpackage 'unstable' 'lib32nss-mdns' 'amd64' '0.10-6' 'Depends: libnss-mdns-i386 (= 0.10-6)'
12 insertpackage 'unstable' 'libnss-mdns' 'amd64,i386' '0.10-6' 'Multi-Arch: same
13 Breaks: lib32nss-mdns (<< 0.10-6)'
14 insertpackage 'unstable' 'libnss-mdns-i386' 'i386' '0.10-6' 'Multi-Arch: foreign
15 Depends: libnss-mdns'
16 # introduce some dummies so that there are versions, but none works
17 insertpackage 'unstable' 'libnss-mdns-i386' 'amd64' '0.1-6'
18 insertpackage 'experimental' 'libnss-mdns-amd64' 'i386,amd64' '0.10-6' 'Provides: libnss-mdns-i386'
19
20 insertpackage 'unstable' 'foo' 'amd64' '1' 'Depends: libfoo'
21 insertpackage 'unstable' 'libfoo' 'amd64' '1' 'Depends: libfoo-bin'
22 insertpackage 'unstable' 'libfoo-bin' 'i386' '0.10-6' 'Multi-Arch: foreign'
23
24 insertinstalledpackage 'lib32nss-mdns' 'amd64' '0.9-1'
25 insertinstalledpackage 'libnss-mdns' 'amd64' '0.9-1'
26
27 insertinstalledpackage 'i-make-packages-important' 'all' '1' 'Depends: libnss-mdns'
28
29 setupaptarchive --no-update
30
31 # make libnss-mdns-i386 unavailable
32 configarchitecture 'amd64'
33 testsuccess aptget update
34
35 testsuccessequal 'Reading package lists...
36 Building dependency tree...
37 Calculating upgrade...
38 The following packages have been kept back:
39 lib32nss-mdns libnss-mdns
40 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.' aptget dist-upgrade -s --solver 3.0
41 testsuccessequal 'Reading package lists...
42 Building dependency tree...
43 Calculating upgrade...
44 The following packages will be REMOVED:
45 lib32nss-mdns
46 The following packages will be upgraded:
47 libnss-mdns
48 1 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
49 Remv lib32nss-mdns [0.9-1]
50 Inst libnss-mdns [0.9-1] (0.10-6 unstable [amd64])
51 Conf libnss-mdns (0.10-6 unstable [amd64])' aptget dist-upgrade -s --solver internal
52
53 testfailuremsg 'E: Unable to satisfy dependencies. Reached two conflicting assignments:
54 1. libfoo:amd64 is selected for install because:
55 1. foo:amd64=1 is selected for install
56 2. foo:amd64 Depends libfoo
57 2. libfoo:amd64 Depends libfoo-bin
58 but none of the choices are installable:
59 [no choices]' aptget install foo -s --solver 3.0
60 testfailureequal 'Reading package lists...
61 Building dependency tree...
62 Some packages could not be installed. This may mean that you have
63 requested an impossible situation or if you are using the unstable
64 distribution that some required packages have not yet been created
65 or been moved out of Incoming.
66 The following information may help to resolve the situation:
67
68 The following packages have unmet dependencies:
69 libfoo : Depends: libfoo-bin but it is not installable
70 E: Unable to correct problems, you have held broken packages.' aptget install foo -s --solver internal
71
72 # activate multiarch
73 configarchitecture 'amd64' 'i386'
74 testsuccess aptget update
75
76 testsuccessequal 'Reading package lists...
77 Building dependency tree...
78 Calculating upgrade...
79 The following NEW packages will be installed:
80 libnss-mdns:i386 libnss-mdns-i386:i386
81 The following packages will be upgraded:
82 lib32nss-mdns libnss-mdns
83 2 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
84 Inst lib32nss-mdns [0.9-1] (0.10-6 unstable [amd64]) []
85 Inst libnss-mdns [0.9-1] (0.10-6 unstable [amd64]) []
86 Inst libnss-mdns:i386 (0.10-6 unstable [i386]) []
87 Inst libnss-mdns-i386:i386 (0.10-6 unstable [i386])
88 Conf lib32nss-mdns (0.10-6 unstable [amd64])
89 Conf libnss-mdns (0.10-6 unstable [amd64])
90 Conf libnss-mdns:i386 (0.10-6 unstable [i386])
91 Conf libnss-mdns-i386:i386 (0.10-6 unstable [i386])' aptget dist-upgrade -s
92
93 testsuccessequal 'Reading package lists...
94 Building dependency tree...
95 The following additional packages will be installed:
96 libfoo libfoo-bin:i386
97 The following NEW packages will be installed:
98 foo libfoo libfoo-bin:i386
99 0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
100 Inst libfoo-bin:i386 (0.10-6 unstable [i386])
101 Inst libfoo (1 unstable [amd64])
102 Inst foo (1 unstable [amd64])
103 Conf libfoo-bin:i386 (0.10-6 unstable [i386])
104 Conf libfoo (1 unstable [amd64])
105 Conf foo (1 unstable [amd64])' aptget install foo -s