| 1 |
#!/bin/sh |
| 2 |
set -e |
| 3 |
|
| 4 |
TESTDIR="$(readlink -f "$(dirname "$0")")" |
| 5 |
. "$TESTDIR/framework" |
| 6 |
setupenvironment |
| 7 |
configarchitecture 'amd64' |
| 8 |
|
| 9 |
insertpackage 'unstable' 'runit-init' 'all' '1' 'Conflicts: systemd-sysv, sysvinit-core, runit-init' |
| 10 |
# note how the rest do not know of runit-init |
| 11 |
insertpackage 'unstable' 'sysvinit-core' 'all' '1' 'Conflicts: systemd-sysv, sysvinit-core' |
| 12 |
insertpackage 'unstable,installed' 'systemd-sysv' 'all' '1' 'Conflicts: systemd-sysv, sysvinit-core' |
| 13 |
insertpackage 'unstable,installed' 'init' 'all' '1' 'Pre-Depends: systemd-sysv | sysvinit-core |
| 14 |
Important: yes' |
| 15 |
|
| 16 |
setupaptarchive |
| 17 |
|
| 18 |
# This only works on internal, we do not have magic essential autoswitch ability for 3.0 |
| 19 |
testsuccessequal "Reading package lists... |
| 20 |
Building dependency tree... |
| 21 |
Removing: systemd-sysv:amd64 as upgrade is not an option for runit-init:amd64 (1) |
| 22 |
MarkDelete systemd-sysv:amd64 < 1 @ii mK > FU=0 |
| 23 |
MarkInstall runit-init:amd64 < none -> 1 @un puN > FU=1 |
| 24 |
Starting pkgProblemResolver with broken count: 1 |
| 25 |
Starting 2 pkgProblemResolver with broken count: 1 |
| 26 |
Investigating (0) init:amd64 < 1 @ii mK Ib > |
| 27 |
Broken init:amd64 PreDepends on systemd-sysv:amd64 < 1 @ii pmR > |
| 28 |
Considering systemd-sysv:amd64 0 as a solution to init:amd64 5100 |
| 29 |
Added systemd-sysv:amd64 to the remove list |
| 30 |
Broken init:amd64 PreDepends on sysvinit-core:amd64 < none @un pmH > |
| 31 |
Considering sysvinit-core:amd64 0 as a solution to init:amd64 5100 |
| 32 |
Ignore MarkKeep of systemd-sysv:amd64 < 1 @ii pmR > as its mode (Delete) is protected |
| 33 |
Investigating (1) init:amd64 < 1 @ii mK Ib > |
| 34 |
Broken init:amd64 PreDepends on systemd-sysv:amd64 < 1 @ii pmR > |
| 35 |
Considering systemd-sysv:amd64 5100 as a solution to init:amd64 5100 |
| 36 |
Broken init:amd64 PreDepends on sysvinit-core:amd64 < none @un pmH > |
| 37 |
Considering sysvinit-core:amd64 0 as a solution to init:amd64 5100 |
| 38 |
Or group remove for init:amd64 |
| 39 |
MarkDelete init:amd64 < 1 @ii mK Ib > FU=0 |
| 40 |
Done |
| 41 |
The following packages will be REMOVED: |
| 42 |
init systemd-sysv |
| 43 |
The following NEW packages will be installed: |
| 44 |
runit-init |
| 45 |
WARNING: The following essential packages will be removed. |
| 46 |
This should NOT be done unless you know exactly what you are doing! |
| 47 |
init systemd-sysv (due to init) |
| 48 |
MarkDelete init:amd64 < 1 @ii K > FU=1 |
| 49 |
0 upgraded, 1 newly installed, 2 to remove and 0 not upgraded. |
| 50 |
Remv init [1] |
| 51 |
MarkDelete systemd-sysv:amd64 < 1 | none @ii H > FU=1 |
| 52 |
Remv systemd-sysv [1] |
| 53 |
Inst runit-init (1 unstable [all]) |
| 54 |
Conf runit-init (1 unstable [all])" apt install runit-init -so Debug::pkgProblemResolver=1 -o Debug::pkgDepCache::Marker=1 -o Debug::pkgDepCache::AutoInstall=1 -o APT::Get::Allow-Solver-Remove-Essential=1 --solver internal |