solver bug resulting in "Huh? Error reporter did not find the broken constraints."
Reproduced with apk versions:
- 2.12.7
- 2.12.9
- master (ff7c8f6e)
Here's a bit of an obscure bug... with current postmarketOS v21.12 repository, when installing two specific packages apk fails without showing the actual error:
# apk add -s device-qemu-amd64 postmarketos-ui-sxmo-de-sway
ERROR: unable to select packages:
Huh? Error reporter did not find the broken constraints.
It must be related to the device-qemu-amd64-sway
subpackage that has an install_if:
sway() {
install_if="$pkgname=$pkgver-r$pkgrel sway"
depends="postmarketos-ui-sway-logo-key-alt"
mkdir "$subpkgdir"
}
If I install that first, then apk runs through without complaining.
# apk add device-qemu-amd64-sway
# apk add postmarketos-ui-sxmo-de-sway
I've looked at it a bit but don't see the error right away, it's somewhere in the solver. I built apk with debug prints and got the following errors (in the much larger output, attached below):
# grep ERROR apk-bug.log
ERROR PKG: postmarketos-ui-sway-logo-key-alt: broken package / tag not ok
ERROR PKG: polkit-elogind: broken package / tag not ok
ERROR PKG: polkit: conflict: same name provided
ERROR PKG: polkit-elogind-libs: broken package / tag not ok
ERROR PKG: polkit-libs: conflict: same name provided
ERROR PKG: polkit-common: propagation up
ERROR PKG: libmm-glib: propagation up
ERROR PKG: geoclue: propagation up
ERROR PKG: sxmo-common: propagation up
ERROR PKG: mmsd-tng: propagation up
ERROR PKG: modemmanager: propagation up
ERROR PKG: networkmanager: propagation up
ERROR PKG: sxmo-common-qt_tweaks: propagation up
ERROR PKG: vvmd: propagation up
ERROR PKG: postmarketos-ui-sxmo-de-sway: propagation up
ERROR: unable to select packages:
It says broken package, but not sure how the package is broken / it can be installed if I don't try to install them with one command?
Attachments:
- apk-bug.log: full debug output of apk 2.12.7
- APKINDEX.tar.gz: the index of the repository where it fails
I'll probably not be able to look further into this, but documenting for future reference.
CC: @fabled who looked into somewhat related #7586 (closed)