apk "replaces" bug?
I'm unable to install a package which has the right to replaces files in another package. See below for reproducing the error (using edge):
test3:~# apk info -a heimdal-su
heimdal-su-7.7.0-r7 description:
Heimdal su binary with Kerberos support
heimdal-su-7.7.0-r7 webpage:
https://github.com/heimdal/
heimdal-su-7.7.0-r7 installed size:
36 KiB
heimdal-su-7.7.0-r7 depends on:
krb5-conf
so:libc.musl-x86_64.so.1
so:libhcrypto.so.4
so:libkafs.so.0
so:libkrb5.so.26
so:libroken.so.18
heimdal-su-7.7.0-r7 provides:
cmd:su=7.7.0-r7
heimdal-su-7.7.0-r7 is required by:
heimdal-su-7.7.0-r7 contains:
usr/bin/su
heimdal-su-7.7.0-r7 triggers:
heimdal-su-7.7.0-r7 has auto-install rule:
heimdal-su-7.7.0-r7 affects auto-installation of:
heimdal-su-7.7.0-r7 replaces:
login-utils
shadow-login
util-linux-login
heimdal-su-7.7.0-r7 license:
BSD-3-Clause
test3:~# apk del heimdal-su
(1/1) Purging heimdal-su (7.7.0-r7)
Executing busybox-1.35.0-r2.trigger
OK: 4344 MiB in 978 packages
test3:~# apk add shadow-login
(1/1) Installing shadow-login (4.10-r3)
Executing busybox-1.35.0-r2.trigger
OK: 4344 MiB in 979 packages
test3:~# apk add heimdal-su
ERROR: unable to select packages:
heimdal-su-7.7.0-r7:
conflicts: shadow-login-4.10-r3[cmd:su=7.7.0-r7]
satisfies: world[heimdal-su]
shadow-login-4.10-r3:
conflicts: heimdal-su-7.7.0-r7[cmd:su=4.10-r3]
satisfies: world[shadow-login]
test3:~#
It seems that APK is tracking the "su" binary version and won't allow me to install an updated version.
Thanks