Commit Graph
100 Commits
Author SHA1 Message Date
Oliver Smith e6bda25a0b githooks/prepare-commit-msg: add systemd prefixes
Extend the hook to automatically make useful titles for packages in
systemd directories. We had two styles for modifying the systemd package
itself, either "systemd/systemd:" or "systemd:". Pick the shorter one.

Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6348
2025-03-23 14:28:11 +01:00
Oliver Smith d203541889 githooks/prepare-commit-msg: refactor case...esac
Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6348
2025-03-23 14:28:07 +01:00
Oliver Smith 250e128249 systemd/plasma-workspace: set !check
As discussed with PureTryOut, let's skip checks in pmaports for this
one.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6339
2025-03-23 11:12:23 +01:00
Oliver Smith 3240d9fd57 main/postmarketos-mkinitfs: trigger: add skip hint (MR 6325)
The recent optimization of not running "mkinitfs" during the trigger
script when running in pmbootstrap lead to unexpected behavior for some
use cases: testing initramfs changes and upgrading the initramfs in the
chroot (e.g. with pmbootstrap chroot --image). Let the user know that it
gets skipped and tell them how they can force building a new initramfs,
as discussed with Caleb.

[ci:skip-build]: already built successfully in CI
2025-03-18 11:45:47 -07:00
Oliver Smith 95a5fc5dff systemd/{pipewire,networkmanager}: use github mirror
The gitlab.freedesktop.org mirror is currently not available:
> Currently planned outage: 2025-03-16 -> 2025-03-22

Let's use the github.com mirror until then. Impressively they have the
same checksum.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6290
2025-03-16 21:05:53 +01:00
Oliver Smith a7a53ade27 systemd/multipath-tools: upgrade to 0.11.1
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6290

[ci:skip-build]: already built successfully in CI
2025-03-16 21:05:53 +01:00
Oliver Smith 3191d49ae0 systemd/drkonqi: upgrade to 6.3.2
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6290
2025-03-16 21:05:53 +01:00
Oliver Smith ea30fd0e26 systemd/xorg-server: upgrade 21.1.16
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6290
2025-03-16 21:05:53 +01:00
Oliver Smith fda0890ed4 systemd/pipewire: disable tests
One of the tests fails with a timeout when building through pmbootstrap
and our gitlab CI. Disable it for now, as the package is very similar to
the Alpine package this shouldn't be much of a problem.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6290
2025-03-16 21:05:53 +01:00
Oliver Smith 6cc823e729 main/postmarketos-mkinitfs: use cross-native2 (MR 6297)
Speed up cross compilation.

Related: https://docs.postmarketos.org/pmbootstrap/cross_compiling.html
[ci:skip-build]: already built successfully in CI
2025-03-10 22:09:26 +01:00
Oliver Smith 79fc4d2cd8 main/postmarketos-mkinitfs: build with cgo (MR 6297)
Set CGO_ENABLED=1 to fix the following when cross compiling with
cross-native2 from x86_64 to (armv7,riscv64,armhf):

  -buildmode=pie requires external (cgo) linking, but cgo is not enabled

Depends: pmbootstrap MR 2565
Related: https://gitlab.alpinelinux.org/alpine/aports/-/issues/15809
2025-03-10 22:09:26 +01:00
Oliver Smith 6b56b58193 main/postmarketos-mkinitfs: trigger: skip in pmb (MR 6297)
Don't run mkinitfs inside "pmbootstrap install" with the trigger
script, as it triggers multiple times as the rootfs gets constructed,
slowing down the process. Instead, pmbootstrap runs "mkinitfs"
explicitly once at the end of "pmbootstrap install".

pmaports master has pmbootstrap_min_version=2.3.2 in pmaports.cfg, which
already runs "mkinitfs" at the end of "pmbootstrap install", see
pmb/install/_install.py, install_system_image().
2025-03-10 22:09:26 +01:00
Oliver Smith 200529afe0 main/postmarketos-mkinitfs: tweak clean print (MR 6297)
Don't print the "Cleaning up old boot files..." message every time in
post-upgrade, only when it actually deletes files.
2025-03-10 22:09:17 +01:00
Oliver Smith 09965ce877 device-nokia-n900: fix missing makedepend (MR 6268)
pmbootstrap > 3.3.1 is stricter with the dependencies, it will only
install packages that are in makedepends during builds. Before it also
installed packages from depends.

Add postmarketos-mvcfg to makedepends, as it gets used in build().

postmarketos-mvcfg will be removed in the future (see issue 3580), but
let's unbreak the build first.

Related: pmbootstrap issue 2574
[ci:skip-build]: already built successfully in CI
2025-02-28 20:35:47 -08:00
Oliver Smith 1bce4af9d8 main/qmi-ping: remove
This package has been upstreamed to Alpine.
2025-02-19 23:16:45 +01:00
Oliver Smith f630ab79b5 main/extract-dtb: remove
This package has been upstreamed to Alpine.
2025-02-19 23:16:24 +01:00
Oliver Smith 67ed1ad917 device-google-veyron: use initfs_extra (MR 6226)
Fix that building phosh, gnome, plasma-mobile images fails with:

==> Generating vmlinuz.kpart
Building depthcharge image for board 'Unnamed veyron board' ('veyron').
Couldn't build a small enough image for this board.

Related: https://builds.sr.ht/~postmarketos/job/1422513#task-img-1544
Related: bpo issue 153
[ci:skip-build]: already built successfully in CI
2025-02-16 16:07:53 +01:00
Oliver Smith a9209f909f cross/musl-*: upgrade to 1.2.5-r10 2025-02-13 21:57:28 +01:00
Oliver Smith 8a14416374 temp/libcamera: rebuild against libgtest (MR 6204)
Our libcamera fork needs a rebuild, as pointed out by the
upstream-compat monitoring job:

Increase 'libcamera' pkgrel (9 -> 10), missing depend(s): so:libgtest.so.1.15.2
[ci:skip-build]: already built successfully in CI
2025-02-12 22:55:36 +01:00
Oliver Smith c5a9a7f67f cross/busybox-static-*: upgrade to 1.37.0-r14 2025-02-12 22:52:03 +01:00
Oliver Smith 03c4ff5cad cross/busybox-static-*: upgrade to 1.37.0-r13 2025-02-04 07:10:45 +01:00
Oliver Smith 9bd46a23fc well-known/funding-manifest-urls: new file (MR 6074)
Add a funding-manifest-urls file, as required by the floss.fund funding
manifest:

> If the manifest references URLs, such as a project's webpage, that are not
> on the same domain as the funding.json manifest itself, then the wellKnown
> URL must point to a /.well-known/funding-manifest-urls file. This file should
> contain URL (one or more) of the funding.json manifest URLs that reference
> it. This establishes provenance and verifies that that the publisher of the
> manifest is authorised to solicit funding on behalf of the URLs (entity,
> projects) described in the manifest. This follows the .well-known convention.

Related: https://floss.fund/funding-manifest/
Related: postmarketos.org MR 345
2025-01-20 18:59:41 +01:00
Oliver Smith 56ed24c1ee systemd/postmarketos-base-systemd: tinydm preset (MR 6060)
[ci:skip-build]: already built successfully in CI (except for known qemu issue)
2025-01-17 14:16:33 -08:00
Oliver Smith 90ba2529dd extra-repos/systemd: add tinydm (MR 6060)
Based on, and adjusted for pmOS:
https://github.com/dreemurrs-embedded/Pine64-Arch/blob/master/PKGBUILDS/sxmo/tinydm/tinydm.service

This should be moved to tinydm upstream later on.

Related: tinydm issue 11
2025-01-17 14:16:26 -08:00
Oliver Smith a7a455c124 systemd/systemd-services: wpa_supplicant: add -q (MR 6060)
Make wpa_supplicant less verbose, so it doesn't print log messages to
journalctl every 3 seconds:

Jan 16 18:47:05 l14 wpa_supplicant[4888]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-47 noise=9999 txrate=286700
Jan 16 18:47:08 l14 wpa_supplicant[4888]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-48 noise=9999 txrate=286700
Jan 16 18:47:11 l14 wpa_supplicant[4888]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-47 noise=9999 txrate=286700
Jan 16 18:47:14 l14 wpa_supplicant[4888]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-47 noise=9999 txrate=286700
Jan 16 18:47:17 l14 wpa_supplicant[4888]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-47 noise=9999 txrate=286700
Jan 16 18:47:20 l14 wpa_supplicant[4888]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-47 noise=9999 txrate=286700
Jan 16 18:47:23 l14 wpa_supplicant[4888]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-48 noise=9999 txrate=286700
Jan 16 18:47:26 l14 wpa_supplicant[4888]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-48 noise=9999 txrate=286700
2025-01-17 14:16:26 -08:00
Oliver Smith c52924104e kconfigcheck: add PPP specific section (MR 5992)
CONFIG_LEDS_GROUP_MULTICOLOR just had to be re-enabled to fix a
regression. Add this to kconfigcheck to prevent disabling it by
accident in the future. Adjust the description of the Librem 5
specific section while at it.

[ci:skip-build] [ci:skip-vercheck]: no need to rebuild
2025-01-14 17:38:37 -08:00
Oliver Smith b090beb066 device-google-trogdor: move eudev-hwids dep to openrc (MR 6042)
[ci:skip-build]: already built successfully in CI
2025-01-14 09:42:30 -08:00
Oliver Smith 1edcc6a174 device-google-gru: move eudev-hwids dep to openrc (MR 6042) 2025-01-14 09:42:30 -08:00
Oliver Smith 895b259ca2 device-pine64-pinebookpro: move eudev-hwids dep to openrc (MR 6042)
Fix systemd installs:
  (147/798) Installing eudev-hwids (3.2.14-r5)
  ERROR: eudev-hwids-3.2.14-r5: trying to overwrite usr/lib/udev/hwdb.d/20-OUI.hwdb owned by systemd-udevd-256.5-r5.
  ERROR: eudev-hwids-3.2.14-r5: trying to overwrite usr/lib/udev/hwdb.d/20-acpi-vendor.hwdb owned by systemd-udevd-256.5-r5.
  ERROR: eudev-hwids-3.2.14-r5: trying to overwrite usr/lib/udev/hwdb.d/20-bluetooth-vendor-product.hwdb owned by systemd-udevd-256.5-r5.
  ERROR: eudev-hwids-3.2.14-r5: trying to overwrite usr/lib/udev/hwdb.d/20-dmi-id.hwdb owned by systemd-udevd-256.5-r5.
  ...
2025-01-14 09:42:30 -08:00
Oliver Smith f48c8c34f0 device-pine64-pinephone: drop dep on openrc subpkg (MR 6042) 2025-01-14 09:42:29 -08:00
Oliver Smith 155657b865 extra-repos/systemd/wireplumber: disable tests for armhf (MR 6047)
[ci:skip-vercheck]: Changes don't affect resulting package.

[ci:skip-build]: arm failing in CI due to known issues w/ running qemu
2025-01-14 09:37:07 -08:00
Oliver Smith 6c18dcae18 cross/busybox-static-*: upgrade to 1.37.0-r11 2025-01-13 20:15:23 +01:00
Oliver Smith 110ba69520 extra-repos/systemd/abuild: new aport
Copy abuild to extra-repos/systemd as workaround for now.

Related: issue 3452
2025-01-10 18:58:46 +01:00
Oliver Smith 22d9a187cb systemd/plasma-workspace: workaround for build race condition (MR 5327) (MR 5563)
Explicitly generate qwayland-plasma-shell.h first, in order to fix:
  In file included from /usr/include/PlasmaQuick/PlasmaQuick/PlasmaShellWaylandIntegration:1,
                   from /home/pmos/build/src/plasma-workspace-6.1.2/shell/panelconfigview.cpp:35:
  /usr/include/PlasmaQuick/plasmaquick/plasmashellwaylandintegration.h:14:10: fatal error: qwayland-plasma-shell.h: No such file or directory
     14 | #include "qwayland-plasma-shell.h"
        |          ^~~~~~~~~~~~~~~~~~~~~~~~~
  compilation terminated.

Related: https://invent.kde.org/plasma/plasma-workspace/-/issues/132
[ci:skip-vercheck]
[ci:skip-build] times out after >3hr in gitlab CI
2025-01-10 13:02:32 +01:00
Oliver Smith 28c069faa3 systemd: fix "INSERT-REASON-HERE" comments (MR 5070) (MR 5563) 2025-01-10 13:02:31 +01:00
Oliver Smith e67ae3ef4f systemd/systemd-services: make shellcheck happy (MR 5070) (MR 5563)
Fix for:
  In systemd-services.trigger line 14:
      systemctl $cmd $service
                ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
                     ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
2025-01-10 13:02:31 +01:00
Oliver Smith 3a305c47c5 systemd: remove various unreferenced files (MR 5070) (MR 5563)
Remove OpenRC specific files that were removed for the systemd-specific
forks.
2025-01-10 13:02:31 +01:00
Oliver Smith 771a926587 systemd/mutter-mobile: fix provides= (MR 5070) (MR 5563) 2025-01-10 13:02:31 +01:00
Oliver Smith 9174703761 systemd/gnome-shell-mobile: fix provides= (MR 5070) (MR 5563)
Should be =$pkgver-r$pkgrel instead of =$_pkgver-r$pkgrel. Otherwise CI
fails, and it is right, we do want to provide the very high version so
we don't install the regular package by accident if the regular package
gets upgraded before this forked version.
2025-01-10 13:02:31 +01:00
Oliver Smith af660ec0dd CI: test_kernel: skip linux-pam (MR 5070) (MR 5563)
The linux-pam package is not a linux kernel :)
2025-01-10 13:02:31 +01:00
Oliver Smith 97917f060f CI: directory-structure: add extra-repos/systemd (MR 5070) (MR 5563) 2025-01-10 13:02:31 +01:00
Oliver Smith 25b25d6504 editorconfig: add networkmanager.rules style (MR 5070) (MR 5563)
This is forked from Alpine. Keep the style to not increase the diff.
2025-01-10 13:02:31 +01:00
Oliver Smith 06d1177575 extra-repos/systemd/: move from systemd/ (MR 5563)
Let's put everything systemd related in an extra-repos directory, so it
is clear that the packages from here will end up in a separate, optional
binary package repository.
2025-01-10 13:02:31 +01:00
Oliver Smith 5a94643c99 systemd/xorg-server: set !check (MR 5563) 2025-01-10 13:02:31 +01:00
Oliver Smith 7bf8e741ac systemd/gnome-shell-mobile: drop caribou dep (MR 5563)
Remove it, like we did with temp/gnome-shell-mobile in pmaports master.
2025-01-10 13:02:30 +01:00
Oliver Smith 29db09e313 systemd/postmarketos-base-systemd: depend on systemd-services (MR 5563)
Add the dependency, so the systemd-services package gets built as part
of the bootstrap. Otherwise no service files will be installed, as the
individual service files get pulled in via install_if, and that only
works if a binary package is available.
2025-01-10 13:02:30 +01:00
Oliver Smith ab113c2013 pmaports.cfg: add repo:systemd section (MR 5563) 2025-01-10 13:02:29 +01:00
Oliver Smith 5c1d76962b cross/grub-efi-x86: upgrade to 2.12-r7 (MR 5986)
[ci:ignore-count]
[ci:skip-build]: does not pass in CI, known in pmb issue 2467. I'll
build all of them locally before merging.
2025-01-06 15:35:01 +03:00
Oliver Smith ada84d65b8 cross/musl-*: upgrade to 1.2.5-r9 (MR 5986) 2025-01-06 15:35:01 +03:00
Oliver Smith e59a0ad98f cross/gcc-*: upgrade to 14.2.0-r5 (MR 5986)
Done with pmbootstrap MR 2521.
2025-01-06 15:34:57 +03:00
Oliver Smith 7c7af9e1cd gitlab/issue_templates: add EOL for v24.06 2024-12-23 18:28:35 +01:00
Oliver Smith 671d61e642 channels.cfg: mark v24.12 as released \o/ 2024-12-23 18:17:21 +01:00
Oliver Smith ad0d82fbec device-pine64-pinephone: set partition_type=msdos (MR 5928)
Current pinephone images built pmbootstrap >= 3.0.0 don't boot on the
pinephone anymore. At least part of this must be the switch from GPT to
MBR that has been done by default in pmbootstrap. Set msdos explicitly
to revert this for the pinephone.

With Tow-Boot we could probably use GPT instead, but this should be a
well-tested, concious decision. Let's fix this regression first.

[ci:skip-build]: already built successfully in CI
2024-12-20 10:47:05 +01:00
Oliver Smith 0260dfaa85 purism-librem5: move from main to community (MR 5911)
[ci:skip-vercheck], [ci:skip-build]: moving devices
2024-12-16 23:44:40 +01:00
Oliver Smith 230d684eee pine64-pinephone: move from main to community (MR 5911) 2024-12-16 23:23:44 +01:00
Oliver Smith da9d2f95e5 cross/busybox-static-*: upgrade to 1.37.0-r10 2024-12-15 12:36:04 +01:00
Oliver Smith e195bc11d9 main/postmarketos-artwork: set wallpaper: Dawning (MR 5900)
Related: https://fosstodon.org/@postmarketOS/113624366198561582

[ci:skip-build]: already built successfully in CI
2024-12-12 23:14:02 +01:00
Oliver Smith 22087e93c6 main/postmarketos-ui-gnome-mobile: fix gnome-mobile-extensions-app dep (MR 5899)
Fix the bug that prevented "pmbootstrap install" from working with
postmarketos-ui-gnome (not -mobile).

This bug has been here in pmaports for a long time, but until recent
changes in apk's resolver code, this did not fail (apk installed
gnome-extensions-app instead of gnome-mobile-extensions-app in that
scenario).

How it happened:
* postmarketos-ui-gnome has _pmb_recommends="gnome-extensions-app".
* pmbootstrap: pmb.install._install.get_recommends() works like this:
  1. Look at the packages i in _pmb_recommends of the packages that
     will be installed in "pmbootstrap install".
  2. For each package j in _pmb_recommends of i:
    2.1 Add all packages in j's _pmb_recommends to the list of
        packages to be installed.
    (2.2 Recurse by doing 1. with each package in j's _pmb_recommends.)
* In step 2:
  * pmaports doesn't have a gnome-extensions-app (it's in Alpine, a
    subpackage of gnome-shell).
  * Therefore our gnome-shell-mobile fork gets looked at, which has a
    gnome-mobile-extensions-app subpackage that provides
    gnome-extensions-app.
  * pmbootstrap looks at the _pmb_recommends of the gnome-shell-mobile
    package, which has "gnome-mobile-extensions-app" (this is wrong,
    it should be in postmarektos-ui-gnome-mobile instead and this patch
    fixes this!).
  * pmbootstrap adds the "gnome-mobile-extensions-app" to the list of
    packages to be installed.
* The result is an "apk add" line that has "postmarketos-ui-gnome" and
  "gnome-mobile-extensions-app" (and more packages), which results in a
  conflict betwen gnome and gnome-mobile packages.

Fixes: issue 3360
[ci:skip-vercheck]: _pmb_recommends changes don't need package rebuilds
[ci:skip-build]: already built successfully in CI
2024-12-12 22:01:59 +01:00
Oliver Smith c513182c82 gitlab/issue_template: add v24.12 2024-12-11 09:16:18 +01:00
Oliver Smith 0431845a82 main/postmarketos-release-upgrade: upgrade to 1.8.0 (MR 5894)
[ci:skip-build]: already built successfully in CI
2024-12-11 08:35:48 +01:00
Oliver Smith e9643f19db u-boot-pinephone: fix build with modern SWIG (MR 5893)
[ci:skip-build]: already built successfully in CI
2024-12-10 08:48:04 +01:00
Oliver Smith 4de559cf50 u-boot-librem5: fix build with modern SWIG (MR 5893) 2024-12-10 08:47:59 +01:00
Oliver Smith 6878ac727e main/postmarketos-initramfs: makedepend on postmarketos-base-nofde (MR 5891)
Ensure postmarketos-base-nofde is built before this package, otherwise
bootstrapping this on a new stable branch fails. This does not need to
be backported, as postmarketos-base-nofde has already been built for
v24.12.

Related: https://builds.sr.ht/~postmarketos/job/1384748
2024-12-09 18:06:48 -08:00
Oliver Smith e90e45cf71 main/postmarketos-base-ui-gnome: fix polkit conflict, pt. 2 (MR 5886)
Move the polkit-elogind into depends= instead of pmb_recommends=, so
packages depending on postmarketos-base-ui-gnome can build successfully
again. The previous fix only helped for "pmbootstrap install", this fix
will help for both cases.

Without this, e.g. postmarketos-base-ui-gnome-mobile fails to build:
https://builds.sr.ht/~postmarketos/job/1384469
[ci:skip-build]: already built successfully in CI
2024-12-08 15:09:44 +01:00
Oliver Smith 954fee6646 main/postmarketos-base-ui-gnome: fix polkit conflict (MR 5885)
Add polkit-elogind to _pmb_recommends, to help apk resolve the polkit
depends again. Otherwise it fails with a conflict since recent changes
in apk's dependency resolving code.

Fixes: issue 3349
[ci:skip-vercheck]: pmb_recommends change doesn't need rebuild
[ci:skip-build]: already built successfully in CI
2024-12-08 14:58:13 +01:00
Oliver Smith d01b3c760a main/postmarketos-ui-sxmo-de-{dwm/sxmo}: fix conky dep (MR 5878)
Change <=…-r0 to <=…-r999 as it was just bumped to fix a build error and
might be bumped again in the future. I've also tried just removing -r0,
but that results in a conflict.
2024-12-08 12:50:30 +01:00
Oliver Smith 04d707acbf channels: update v24.12 branch_aports 2024-12-06 00:01:57 +01:00
Oliver Smith 1ba238d37e main/postmarketos-base-nofde: split from postmarketos-base (MR 5875)
Split -nofde into a separate package to resolve the cyclic depenency:
postmarketos-base -> postmarketos-initramfs -> postmarketos-base-nofde

Fixes: issue 3236
[ci:skip-build]: already built successfully in CI
2024-12-05 22:40:04 +01:00
Oliver Smith 278bdcc619 main/postmarketos-cros-common: add makedepends (MR 5876)
Fill out makedepends, so pmbootstrap and bpo know that these packages
need to be built before building postmarketos-cros-common, because it
has subpackages depending on these packages. Without this,
bootstrapping v24.12 currently fails:
https://builds.sr.ht/~postmarketos/job/1381582

This is intended behavior, abuild works the same way:
https://gitlab.alpinelinux.org/alpine/abuild/-/issues/10138

[ci:skip-build]: already built successfully in CI
2024-12-05 22:35:17 +01:00
Oliver Smith 0420dc57f2 cross/musl-*: upgrade to 1.2.5-r8 2024-12-04 22:06:13 +01:00
Oliver Smith d056729300 main/postmarketos-base: pmb_recommends: add doas-sudo-shim (MR 5867)
Fix the following error during "pmbootstrap install":

  ERROR: unable to select packages:
    sudo-1.9.16_p1-r1:
      conflicts: doas-sudo-shim-0.1.1-r1[cmd:sudo=1.9.16_p1-r1]
      breaks: doas-sudo-shim-0.1.1-r1[!sudo]
      satisfies: postmarketos-base-38-r0[sudo-virt]
                 postmarketos-base-nofde-38-r0[sudo-virt]
    doas-sudo-shim-0.1.1-r1:
      conflicts: sudo-1.9.16_p1-r1[cmd:sudo=0.1.1-r1]
      satisfies: postmarketos-base-doas-38-r0[doas-sudo-shim]
                 postmarketos-base-38-r0[sudo-virt]
                 postmarketos-base-nofde-38-r0[sudo-virt]

How the error gets triggered:
* postmarketos-base depends on sudo-virt. During "pmbootstrap install",
  pmbootstrap has to resolve this to a sudo implementation (sudo, doas,
  ...).
* pmbootstrap does this by looking at the packages that get installed
  at the same time. Before this patch we did not install doas-sudo-shim
  directly through _pmb_recommends, only indirectly through a
  postmarketos-base-doas subpackage that pulls doas-sudo-shim in via
  install_if.
* pmbootstrap cannot look at install_if as it resolves dependencies,
  so it has to pick one and goes for "sudo".
* pmbootstrap tells apk to install a list of packages including "sudo",
  and because apk also resolves install_if correctly, the solver fails
  at the conflict between "doas-sudo-shim" and "sudo". (This only fails
  since apk-tools-static 2.14.6-r0, apparently beforehand apk just
  installed "doas-sudo-shim" in this scenario.)

Teaching pmbootstrap to look at install_if while resolving packages
would be one way to fix this. But it would be a lot of effort, not
feasible to quickly stop the problem at hand that breaks "pmbootstrap
install" for all edge installs. IMHO it is not worth implementing this
at all in pmbootstrap, as it is just supposed to do some more or less
basic package resolving until apk takes over and does it properly.

Put doas-sudo-shim in _pmb_recommends so pmbootstrap knows that this is
the sudo implementation we want without looking at install_if.

Remove the now obsolete postmarketos-base-doas subpackage. This will
lead to doas-sudo-shim getting removed for old installations on upgrade,
but it can easily be installed back (doas add doas-sudo-shim). I'll make
an edge post about it and put it in the v24.12 release notes. If we
don't remove it here, we would need to keep this legacy subpackage
around forever and I'd rather avoid that to reduce maintenance effort.

Another alternative to this was removing sudo-virt from depends="". But
that would lead to sudo getting uninstalled for users upgrading from
old releases from before we had doas in pmb_recommends, so I've decided
against it.

Fixes: pmaports issue 3340
2024-12-01 15:27:05 +01:00
Oliver Smith 8423a52017 cross/busybox-static-*: upgrade to 1.37.0-r8 2024-11-24 12:08:59 +01:00
Oliver Smith 9028e0cf0c cross/musl-*: upgrade to 1.2.5-r7 2024-11-24 12:08:55 +01:00
Oliver Smith 864873e463 linux-htc-flounder: add V=1 workaround (MR 5848)
Add a workaround so the kernel compile output is not silent (which leads
to pmbootstrap aborting the build). This will be fixed once upgrading to
linux >= 6.2.

Related: pmaports issue 1990
[ci:skip-build]: already built successfully in CI
2024-11-24 12:00:56 +01:00
Oliver Smith 2602662717 linux-postmarketos-omap: enable ZRAM_BACKEND_ZSTD (MR 5846)
[ci:skip-build]: I've built it locally
2024-11-24 11:03:40 +01:00
Oliver Smith a904211cdb channels.cfg: fix mirrordir-alpine -> mirrordir_alpine 2024-11-18 20:49:07 +01:00
Oliver Smith 4343a28b69 channels.cfg: add v24.12 2024-11-18 20:44:03 +01:00
Oliver Smith 74c21ce7e0 main/mobile-config-firefox: upgrade to 4.4.0 (MR 5793)
[ci:skip-build]: already built successfully in CI
2024-11-15 00:31:41 +01:00
Oliver Smith 305a7bb18f cross/busybox-static-*: upgrade to 1.37.0-r7 2024-11-14 23:16:50 +01:00
Oliver Smith 4432b6f54d CI: build_changd_aports: fix systemd pkgs in print (MR 5684)
Fix that in the checksum / build messages for systemd packages it would
print the wrong package list.
2024-11-13 17:04:30 +01:00
Oliver Smith cda9735b36 device-google-sargo: move replaces to -openrc (MR 5771)
[ci:skip-build]: already built successfully in CI
2024-11-11 16:26:58 -08:00
Oliver Smith 5f92a24897 device-xiaomi-beryllium: move replaces to -openrc (MR 5771) 2024-11-11 16:26:58 -08:00
Oliver Smith 1e7d937044 main/postmarketos-cros-common: fix pmb_recommends (MR 5767)
The package was renamed from postmarketos-cros-keymap to
postmarketos-cros-keymap-openrc, adjust _pmb_recommends.

[ci:skip-build]: already built successfully in CI
2024-11-06 22:33:23 +01:00
Oliver Smith 2942aea548 device-oneplus-fajita: move replaces to -openrc (MR 5767) 2024-11-06 22:33:18 +01:00
Oliver Smith 51cbd7cedb cross/busybox-static-*: upgrade to 1.37.0-r6 2024-11-06 22:05:40 +01:00
Oliver Smith 817ed870e9 pmaports.cfg: set pmbootstrap_min_version=2.3.2
Require the pmbootstrap version where we added a workdir migration to
change pmaports git URLs from gitlab.com to gitlab.postmarketos.org.

pmaports at gitlab.com will be fast-forwarded to this commit once, so
users who still have this archived repository configured as upstream
will be notified of this change after next git pull and trying to use
pmbootstrap <2.3.2 with it.

Related: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/tags/2.3.2
Related: pmbootstrap issue 2471
2024-11-03 13:39:32 +01:00
Oliver Smith c45d7ec0a5 cross/crossdirect: fakeroot: add helpful error msg (MR 5744)
Alpine's abuild runs build() without fakeroot, and package() with
fakeroot. From the APKBUILD reference page in the Alpine wiki:

> Note: Building in fakeroot will reduce performance for parallel
> builds dramatically. It is for this reason that we split the build
> and package process into two separate functions.

Every now and then we see a package that tries to run a compiler (gcc,
g++, clang, ...) during package() in the APKBUILD. This is a bug in the
APKBUILD / build system of the program we are packaging. All compiling
should be done during build().

Let crossdirect print the following when this happens:

  ============================================================================================
  ERROR: crossdirect was called with: LD_PRELOAD=libfakeroot.so
  This means your package tried to run a compiler during package().
  This is not supported by crossdirect, and usually not a good idea.
  * Try to fix your APKBUILD so it does not run the compiler during package(), only in build()
    * If you're using meson install, try to add '--no-rebuild'
  * If this is not possible, you can work around it by setting options="!pmb:crossdirect"
    (compilation will be slower!)
  ============================================================================================

Instead of:

  ERROR: crossdirect: can't handle LD_PRELOAD: libfakeroot.so
  Please report this at: https://gitlab.com/postmarketOS/pmaports/issues
  As a workaround, you can compile without crossdirect.

In the past I've also tried to add 'strcmp(ldPreload, "libfakeroot.so") == 0'
(pmaports MR 2231), and today I made the same patch. The current code
looks like it would then work by just using libfakeroot.so from the
native chroot, but it does not work. And as mentioned, if we hit this
then we are compiling in package() which is something we should not do
anyway!

Fixes: pmb issue 2039
Related: pma issue 2351, pma MR 5738
2024-10-30 22:24:57 +01:00
Oliver Smith 378cbbb235 linux-purism-librem5: add pmb:kconfigcheck-librem5 (MR 5633)
Follow up to MR 5562, which introduced category:librem5. Add the related
option, so CI actually enforces this category for the Librem 5.

[ci:skip-vercheck]: no need to rebuild for this
2024-10-23 13:24:10 +02:00
Oliver Smith a6f188af10 CI: common.run_pmbootstrap: use simple check=True (MR 5633)
Use check=True instead of running check_returncode() afterwards, it has
the same effect and is shorter.
2024-10-23 13:24:10 +02:00
Oliver Smith 4ef0a4e9ad CI: apkbuild_linting: fix missing output (MR 5633)
pmbootstrap used to exit with 0 if "pmbootstrap lint" failed. This was
the case in 2.3.x too, but I assumed this was a regression and fixed it
recently in pmbootstrap MR 2398.

It turns out that the CI code relied on this assumption, it captured the
output of "pmbootstrap lint", and only after it is done it checks if the
output wasn't empty and prints it in that case followed by exit 1.

Now that pmbootstrap actually exits with 1, CI already fails at
"common.run_pmbootstrap" and doesn't get to the part where it would be
printed.

I think "exit 1" on error is actually the right thing to do in
pmbootstrap, so I'll leave that in. Adjust CI to just run "pmbootstrap
lint", removing the additional output capture logic that isn't used
anywhere besides here. This also has the advantage that we get the
output "live", without buffering it completely first.
2024-10-23 13:24:06 +02:00
Oliver Smith 303596dc73 cross/busybox-static-*: upgrade to 1.36.1-r32 2024-09-19 02:15:00 +02:00
Oliver Smith a82d863656 main/postmarketos-initramfs-minimal: adjust libz path (MR 5609)
Fix for:
  stat /lib/libz.so.1: no such file or directory
2024-09-18 21:37:50 +02:00
Oliver Smith 229e59a412 main/postmarketos-initramfs: adjust libz path (MR 5609)
Fix for:
  stat /lib/libz.so.1: no such file or directory
2024-09-18 21:37:42 +02:00
Oliver Smith a1375cd0ff gitlab/issue_templates: add Change_Kernel_Config.md (MR 5549)
Related: https://postmarketos.org/kconfig-adjust-multiple

[ci:skip-build]: already built successfully in CI
2024-09-04 18:36:48 +02:00
Oliver Smith 7720c5c767 cross/gcc-*: upgrade to 14.2.0-r2 2024-09-01 14:25:54 +02:00
Oliver Smith 69a4afc838 main/postmarketos-ui-phosh: dep on !gnome-settings-daemon-mobile (MR 5509)
Without this patch, the GNOME Shell on Mobile specific fork of
gnome-settings-daemon gets installed with Phosh, which leads to the bug
that the screen does not turn on when resuming from suspend in Phosh.

Looks like this was figured out today at FrOSCon in the bring your
problems session, thanks to all involved!

Fix: issue 3062
[ci:skip-build]: already built successfully in CI
2024-08-18 14:29:28 +02:00
Oliver Smith 699763cfb0 cross/musl-*: upgrade to 1.2.5-r2 2024-08-18 14:06:38 +02:00
Oliver Smith 9ab02ada2c CI: kconfig check: use --keep-going (MR 5491)
Use the new --keep-going parameter so the check doesn't stop on first
error. This was recently added in pmbootstrap MR 2384 to make the
default behavior more userfriendly.

[ci:skip-build]: already built successfully in CI
2024-08-13 10:02:43 +02:00
Oliver Smith 315d85a71e CI: autoupdate: build-test linux-next before push (MR 5481)
Make sure that linux-next actually builds, before pushing the change to
pmaports master. Otherwise it may block publishing other aarch64
packages in bpo.
2024-08-11 14:47:47 +02:00
Oliver Smith 729448922b gitlab/issue_template: remove v23.12 (EOL) 2024-08-11 14:23:16 +02:00