Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
apk-tools
apk-tools
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 61
    • Issues 61
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 15
    • Merge Requests 15
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • alpine
  • apk-toolsapk-tools
  • Issues
  • #10731

Closed
Open
Opened Jan 05, 2021 by Thibault Ferrante@ThibF

Failed to add a package if there is too much dependencies

When a package has too much dependencies (in my example >=755), apk add fails with a non explicit error message. This can be reproduced with docker like this:

  • Create an APKBUILD and put it in it dedicated folder (test-f)
  • Docker command docker run --rm -it -v "$(pwd):/workdir" -w /workdir alpine:3.12 /bin/sh
  • Generation and triggering of the bug
apk add abuild
abuild-keygen -a -n -q
( cd test-f/ && abuild -Fr )

apk add darkhttpd
darkhttpd /root/packages &

apk info --allow-untrusted -X http://127.0.0.1/workdir/ --repositories-file /dev/null test-f
apk update --allow-untrusted -X http://127.0.0.1/workdir/ --repositories-file /dev/null test-f
apk add --allow-untrusted -X http://127.0.0.1/workdir/ --repositories-file /dev/null test-f

This is triggering this message :

/workdir/test-f # apk add --allow-untrusted -X http://127.0.0.1/workdir/ --repositories-file /dev/null test-f
ERROR: unsatisfiable constraints:
  test (missing):
    required by: test-f-1.0-r0[test]
Edited Jan 05, 2021 by Thibault Ferrante
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: alpine/apk-tools#10731