]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-735967-lib32-to-i386-unavailable
mark optional (private) symbols as hidden
[apt.git] / test / integration / test-bug-735967-lib32-to-i386-unavailable
CommitLineData
446551c8
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6
7setupenvironment
8configarchitecture 'i386' 'amd64'
9
10insertpackage 'unstable' 'lib32nss-mdns' 'amd64' '0.10-6' 'Depends: libnss-mdns-i386 (= 0.10-6)'
11insertpackage 'unstable' 'libnss-mdns' 'amd64,i386' '0.10-6' 'Multi-Arch: same
12Breaks: lib32nss-mdns (<< 0.10-6)'
13insertpackage 'unstable' 'libnss-mdns-i386' 'i386' '0.10-6' 'Multi-Arch: foreign
14Depends: libnss-mdns'
15
16insertpackage 'unstable' 'foo' 'amd64' '1' 'Depends: libfoo'
17insertpackage 'unstable' 'libfoo' 'amd64' '1' 'Depends: libfoo-bin'
18insertpackage 'unstable' 'libfoo-bin' 'i386' '0.10-6' 'Multi-Arch: foreign'
19
20insertinstalledpackage 'lib32nss-mdns' 'amd64' '0.9-1'
21insertinstalledpackage 'libnss-mdns' 'amd64' '0.9-1'
22
23insertinstalledpackage 'i-make-packages-important' 'all' '1' 'Depends: libnss-mdns'
24
25setupaptarchive --no-update
26
27# make libnss-mdns-i386 unavailable
28configarchitecture 'amd64'
29testsuccess aptget update
30
31testequal 'Reading package lists...
32Building dependency tree...
33The following packages will be REMOVED:
34 lib32nss-mdns
35The following packages will be upgraded:
36 libnss-mdns
371 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
38Remv lib32nss-mdns [0.9-1]
39Inst libnss-mdns [0.9-1] (0.10-6 unstable [amd64])
40Conf libnss-mdns (0.10-6 unstable [amd64])' aptget dist-upgrade -s
41
42testequal 'Reading package lists...
43Building dependency tree...
44Some packages could not be installed. This may mean that you have
45requested an impossible situation or if you are using the unstable
46distribution that some required packages have not yet been created
47or been moved out of Incoming.
48The following information may help to resolve the situation:
49
50The following packages have unmet dependencies:
51 foo : Depends: libfoo but it is not going to be installed
52E: Unable to correct problems, you have held broken packages.' aptget install foo -s
53
54# activate multiarch
55configarchitecture 'amd64' 'i386'
56testsuccess aptget update
57
58testequal 'Reading package lists...
59Building dependency tree...
60The following NEW packages will be installed:
61 libnss-mdns:i386 libnss-mdns-i386:i386
62The following packages will be upgraded:
63 lib32nss-mdns libnss-mdns
642 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
65Inst lib32nss-mdns [0.9-1] (0.10-6 unstable [amd64]) []
66Inst libnss-mdns [0.9-1] (0.10-6 unstable [amd64]) []
67Inst libnss-mdns:i386 (0.10-6 unstable [i386]) []
68Inst libnss-mdns-i386:i386 (0.10-6 unstable [i386])
69Conf libnss-mdns:i386 (0.10-6 unstable [i386])
70Conf libnss-mdns (0.10-6 unstable [amd64])
71Conf libnss-mdns-i386:i386 (0.10-6 unstable [i386])
72Conf lib32nss-mdns (0.10-6 unstable [amd64])' aptget dist-upgrade -s
73
74testequal 'Reading package lists...
75Building dependency tree...
76The following extra packages will be installed:
77 libfoo libfoo-bin:i386
78The following NEW packages will be installed:
79 foo libfoo libfoo-bin:i386
800 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
81Inst libfoo-bin:i386 (0.10-6 unstable [i386])
82Inst libfoo (1 unstable [amd64])
83Inst foo (1 unstable [amd64])
84Conf libfoo-bin:i386 (0.10-6 unstable [i386])
85Conf libfoo (1 unstable [amd64])
86Conf foo (1 unstable [amd64])' aptget install foo -s