usr merge preparations, take 2

This is a rework of https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6375 with the following changes:

The issue with alpine-base

This MR removes the dependency of alpine-base from postmarketos-base, and together with the pmb patches, from postmarketOS completely. This decision was taken after long back and forth with upstream. A longer summary is in the commit message, but LTDR: alpine thinks alpine-base should serve no other purpose than being "the base for alpine". So the recommendation is, if we (or others, like docker!) need something different, depend on the specifics we need. This makes complete sense, but has a challenge: every postmarketOS installation to-date has alpine-base in /etc/apk/world. This means:

  • A package on which we were specifically asked to not depend on will still live in most installations unless users take action or we do it for them. This is a risk for the future, if future changes downstream or upstream create some incompatibilities: it would only affect old installations.
  • Specifically on systemd installs, APK will hold back a stale forked alpine-base package that no longer exists in the repos, and can cause further issues (potentially the solver failing)

So, how to solve it. Here are some thoughts of alternatives we have:

  1. Solve it in packaging, by having something provide a versioned depends of alpine-base:
    1. Maybe it could be postmarketos-base? Though it would cause alpine-base and postmarketos-base to not be installable alongside. Not sure if this is an issue
    2. Having an empty package or subpackage provide alpine-base. This would mean openrc installations with alpine-base in world would not get it removed, but systemd installs would get it replaced by our empty subpackage by APK due to having a provider that satisfies the dependencies (alpine-base upstream depends on openrc). If we get future conflicts with openrc, hopefully APK would just do the right thing
  2. Force the removal from world, by doing all of:
    • Writing an edge blog post asking everybody in edge to remove alpine-base from their systems. This has the risk of not everybody doing it.
    • Add to the release notes for v25.06, that this change happened. Either ask people to run apk del alpine-base before upgrades, or add to the release script.

I'm really not sure what should be our take

Edited by Pablo Correa Gomez

Merge request reports

Loading
Loading