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
  • Merge requests
  • !1

Add multi arch support

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Fredrik Gustafsson requested to merge fredrigu/apk-tools:multiarch into master Nov 08, 2019
  • Overview 21
  • Commits 2
  • Pipelines 0
  • Changes 13
Add multi arch support

Architectures are not either A or B but are more like a tree in
relation. That is one architecture can contain an other. An easy
example here is a package with only shell scripts that should
have the architecture 'none', 'all' or something like that while
a binary package might have 'amd64'. In this example apk should
be able to install packages from both 'none' and 'amd64'
architectures.

Today apk only support one architecture and has an option for
rewriting the architecture upon creating a repo index
( --rewrite-arch ARCH  ). This change makes it possible to have
one repository for each architecture and then mix different
architectures in the same installation.

This means:
* /etc/apk/arch can no contain a list of architectures supported.
* the --arch argument can be specified multiple times to add new
  architectures to /etc/apk/arch

This will make it possible for architectures to share common
repository, which will ease maintenance of different architectures
as well as improve storage requirements for hosting repos. It will
also make it easier to use apk in yocto.

The downside is that apk needs to look at at most, number of
architectures, places for a package.

index: add argument --no-warn-if-no-providers

When creating an index apk warns if a dependency is missing a provider.
However when using a multi-arch repository, it's not an error that
a certain architecture is missing a dependency because that dependency
could be in an other architecture. Since apk index doesn't know about
this, add an argument to disable that warning.
Edited Apr 28, 2020 by Fredrik Gustafsson
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: multiarch