usr merge preparations, take 2
This is a rework of https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6375 with the following changes:
- Bump the minimum required version of pmbootstrap, since we need a release with https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2580 for people to be able to create systemd images without having an updated git checkout
- Do a pmb release with the alpine-base removal in there
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-basepackage 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:
- Solve it in packaging, by having something provide a versioned depends of
alpine-base:- Maybe it could be
postmarketos-base? Though it would causealpine-baseandpostmarketos-baseto not be installable alongside. Not sure if this is an issue - Having an empty package or subpackage provide
alpine-base. This would mean openrc installations withalpine-baseinworldwould 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
- Maybe it could be
- 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-basebefore upgrades, or add to the release script.
I'm really not sure what should be our take