testing/libgedit-{amtk,tepl}: are installed before {amtk,tepl} get purged which causes APK errors
Package Information
- Package name:
libgedit-amtk
libgedit-tepl
- Package version:
5.8.0-r0
6.10.0-r0
- Alpine version:
3.20.0
(from/etc/alpine-release
; this is postmarketOS edge though) - Alpine architecture:
aarch64
Summary
I was updating my phone and noticed some APK errors:
~ # apk upgrade -a
[...]
(152/310) Installing libgedit-amtk (5.8.0-r0)
ERROR: libgedit-amtk-5.8.0-r0: trying to overwrite usr/lib/girepository-1.0/Amtk-5.typelib owned by amtk-5.6.1-r3.
[...]
(158/310) Installing libgedit-tepl (6.10.0-r0)
ERROR: libgedit-tepl-6.10.0-r0: trying to overwrite usr/lib/girepository-1.0/Tepl-6.typelib owned by tepl-6.4.0-r4.
[...]
(308/310) Purging tepl (6.4.0-r4)
(309/310) Purging amtk (5.6.1-r3)
[...]
2 errors; 3875 MiB in 1569 packages
To correct this I ran:
~ # apk fix
The following packages will be reinstalled:
libgedit-amtk libgedit-tepl
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
(1/2) Reinstalling libgedit-amtk (5.8.0-r0)
(2/2) Reinstalling libgedit-tepl (6.10.0-r0)
OK: 3875 MiB 1n 1569 packages
…which was easy enough, but should not have been needed imo. The problem is with the order in which APK installs and removes these packages. Because the files provided by these new packages already exist, the install fails – even though it would be possible if the old packages were removed beforehand. I have no experience with APKBUILDs so I'm not sure if this requires some fix in the packaging or is actually an issue with APK itself. !66614 (merged) seems relevant here.
@mio, could you look into this?
Edited by Piotr Masłowski