Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • apk-tools apk-tools
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 93
    • Issues 93
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 19
    • Merge requests 19
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • alpinealpine
  • apk-toolsapk-tools
  • Issues
  • #10843
Closed
Open
Issue created May 31, 2022 by Oliver Smith@ollieparanoid

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)

Assignee
Assign to
Time tracking