Commit Graph
11692 Commits
Author SHA1 Message Date
Jens Reidel a42bce2407 cross/busybox-static-*: upgrade to 1.37.0-r23
Signed-off-by: Jens Reidel <adrian@postmarketos.org>
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7019

[ci:skip-build]: already built successfully in CI
2025-09-08 20:41:46 +02:00
postmarketOS CI a012a36ccc linux-next: upgrade to next-20250908 2025-09-08 15:50:32 +00:00
Clayton Craft 2c9a5d2d1c main/boot-deploy: upgade to 0.20.0
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7014

[ci:skip-build]: already built successfully in CI
2025-09-08 08:09:02 -07:00
Clayton Craft ef97fd8c60 systemd/cups: disable examples on riscv64
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6892

[ci:skip-build]: already built successfully in CI
2025-09-08 07:33:54 -07:00
Clayton Craft 39922de34e ci/shellcheck: run on pmos-base-systemd's apk trigger
This trigger has a lot going on, so let's make sure it always passes
shellcheck. It's not picked up by the normal search for triggers in this
script because the actual logic for the trigger is broken out from the
.trigger file.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6892
2025-09-08 07:33:54 -07:00
Clayton Craft 469aae3436 postmarketos-base-systemd: rework unit preset, reload/restart, and cleanup handling
This reworks the preset, reload/restart, and cleanup handling and moves
it from a (proposed [1]) abuild patch that would generate install
scripts for every -systemd package to a series of commit hooks and
a trigger that would exist in this package. This was made
possible by using `treescan`, which quickly[2] recursively scans
/usr/lib/systemd and allows the commit hook and trigger to diff units
before and after an install or uninstall transaction.

I chose to put the trigger and commit hook in pmos-base-systemd instead
of the systemd package because:

1) It's annoying to have to rebuild systemd just to update the logic in
   this script. Rebuilding this package is MUCH faster (nothing to
   compile)

2) IF the systemd package moves elsewhere (i.e. out of pmaports), it's
   unclear if this preset stuff would follow it, and it's safer for us to
   keep it separate so know it's always being included in pmOS+systemd
   installs. It can always be moved later if we decide to.

More info on how the three situations are handled by this patch:

Presets: Pre-commit hook captures current unit file list (using
treescan) before changes, then the trigger on /usr/lib/systemd/system
captures (using treescan) the state after changes and diffs them. It
picks out only unit files that were added, and runs systemctl preset to
apply any preset config that might exist for them.

Reload/restart: This relies on manual post-upgrade scripts in packages
that need it. post-upgrade scripts should mark units with systemctl
set-property ... Markers=+needs-reload/restart. Actual reload/restart
handled by the existing systemd.trigger that queries these markers...
This is going to be a bit annoying for package maintainers[3], but I
don't think many packages will *need* this. As of today, there are 0
packages explicitly requesting reload/restart on upgrade. This also
means there will be no automatic detection of whether a unit should be
reloaded/restarted. AFAIK Fedora doesn't support this, packages have to
explicitly request a reload or restart.

Cleanup: The pre-commit hook uses treescan to capture systemd unit
directory state before transactions and the trigger identifies removed
units (using treescan + diff). It then finds broken symlinks in
/etc/systemd/ that point to any newly removed unit files from the
transaction, and removes only them.

Benefits:

- Simple abuild patch for -systemd split func

- Uses existing APK mechanisms (commit hooks, triggers). Hooks can see
  before/after transaction state for cleanup.

- Logic updates don't require rebuilding all packages.

Tradeoffs:

- Requires additional per-package complexity to support
  reload/restart functionality.

- Moves unit discovery/parsing for preset and cleanup from build-time to
  runtime (every device does this work vs. once at build)

- Package behavior varies based on installed trigger/hook
  versions rather than being deterministic per package version.

- There's a (tiny) risk of some operations being race-y, e.g. if the
  user is actively enabling/disabling/adding unit files between apk
  running the pre-commit hook and the trigger firing... It seems
  unlikely this will cause issues, but 🤷‍♂️

1. https://gitlab.alpinelinux.org/alpine/abuild/-/merge_requests/394

2. I used hyperfine to measure performance of treescan on my laptop,
with lots of units installed, and it was ~20ms without disk caching

3. A post-upgrade that would mark a unit for reload might look like
this:

```
if [ -d "/run/systemd/system" ]; then
	echo "Marking sshd.service for reload..."
	systemctl set-property sshd.service Markers=+needs-reload
fi
```

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6892
2025-09-08 07:33:54 -07:00
Clayton Craft 75d8dc9bd2 ci/testlib: add asserts for string contains/doesn't contain substring
For testing if a given string contains a given subtring, for example
`assert_contains "foo bar bazz" "bar"` would pass,
but `assert_contains "foobar bazz" "bar"` would fail.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6892
2025-09-08 07:33:54 -07:00
Clayton Craft 7d84c11c52 ci/testlib: add asserts for file exists/not exists
For testing whether a given file exists or not exists

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6892
2025-09-08 07:33:54 -07:00
Clayton Craft 0fab76b942 ci/testlib: add test root dir support
Allows creating (and cleaning up) a new root dir for tests, for tests
that deal with files on disk

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6892
2025-09-08 07:33:54 -07:00
Clayton Craft 00a242b4e8 systemd/systemd: don't use old systemd_install_script logic
This also removes an old macro file that was left over from one of the
many previous attempts to integrate preset support...

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6892
2025-09-08 07:33:53 -07:00
Clayton Craft e63c70b6e8 Rebuild -systemd subpkgs
These packages were previously built by a WIP abuild patch that added
install scripts to each -systemd subpkg for handling preset application
on install and symlink cleanup on uninstall. This functionality has been
replaced by a trigger/commit hook, so we need to rebuild these packages
to drop the install scripts that were previously generated.

[ci:ignore-count]

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6892
2025-09-08 07:33:53 -07:00
Clayton Craft 0318e81fde temp/abuild: build with simple systemd split func patch
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6892
2025-09-08 07:33:53 -07:00
Achill Gilgenast e9287975cb systemd/wireplumber: upgrade to 0.5.11
https://gitlab.alpinelinux.org/alpine/aports/-/commit/71031e8a344b98717fa73d02c6b9aa0026120fe7

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7013>
2025-09-08 01:54:28 +00:00
Achill Gilgenast 98c29cb62c systemd/upower: upgrade to 1.90.10
https://gitlab.alpinelinux.org/alpine/aports/-/commit/b8086774af77dd3e1ab509ff0485676a124c17a7

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7013>
2025-09-08 01:54:28 +00:00
Achill Gilgenast 6d7abb22e1 systemd/sddm: fix license
https://gitlab.alpinelinux.org/alpine/aports/-/commit/1cfd94a70fea7a2edf6fbe23a073a99305add7a0

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7013>
2025-09-08 01:54:28 +00:00
Achill Gilgenast 3a50ffa5d4 systemd/gnome-desktop: upgrade to 44.4
https://gitlab.alpinelinux.org/alpine/aports/-/commit/8bb7b7b7bb981ee0e0a3b52d1291ecb245915602

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7013>
2025-09-08 01:54:28 +00:00
Achill Gilgenast d8be95c138 cross/systemd-boot-x86: upgrade to 257.9
https://gitlab.alpinelinux.org/alpine/aports/-/commit/baef68076879beea57f864db4d69a61e6ee0c476

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7013>
2025-09-08 01:54:28 +00:00
Dylan Van Assche 15dbb835b0 systemd/systemd-services: add RuntimeDirectory and StateDirectory for nginx
RuntimeDirectory and StateDirectory are required for NGINX to operate out-of-the-box.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7008>
2025-09-07 18:02:26 +00:00
dabao1955 5564f33c6b linux-xiaomi-raphael: Fix wrong firmware path in dts for xiaomi-raphael
ref: https://github.com/NekoSekaiMoe/linux/commit/2447484c8665f0b6fc4fbc8b3208dfa0250bf35f

Signed-off-by: dabao1955 <dabao1955@163.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7012>
2025-09-08 01:33:09 +08:00
Luca Weiss 8caae63c7f main/postmarketos-ui-lomiri: fix wallpaper and launcher icon
Fix the paths at least, for some reason the launcher icon still doesn't
show up in the latest versions.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6726>
2025-09-07 17:10:56 +00:00
Luca Weiss 60d40dcda0 main/postmarketos-ui-lomiri: clean up polkit config
Apk is unhappy about depending on both polkit and polkit-elogind. Align
with other UI packages by only depending on polkit-elogind directly, and
remove the rc-update call since also no other UI is doing this.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6726>
2025-09-07 17:10:56 +00:00
Willow Barraco bca4cfc74f linux-postmarketos-allwinner: Enable leds_group_multicolor
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6924>
2025-09-07 17:08:26 +00:00
dabao1955 59ab663fb4 linux-xiaomi-raphael: upgrade to 6.12.0
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7004>
2025-09-07 17:00:49 +00:00
dabao1955 3365752926 firmware-xiaomi-raphael: Fix wrong firmware path
This commit fixes some firmware not found by kernel requests.

before:
```
[    0.552689] goodix firmware update module init start
[    0.801269] goodix_i2c 2-005d: Direct firmware load for qcom/sm8150/Xiaomi/raphael/good failed with error -2
```

after:
```
[    0.152816] goodix firmware update module init start
[    0.597937] input: goodix_ts as /devices/platform/goodix_ts.0/input/input2
```

Signed-off-by: dabao1955 <dabao1955@163.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7011>
2025-09-07 16:59:47 +00:00
Stefan Hansson 8321019c7f CI: Stop using 'pmbootstrap lint' for lint job
Needs https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2679

Closes https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/3665

Closes https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/issues/2566

Closes https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/3274

Closes https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/issues/2591

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6979>
2025-09-07 16:14:57 +00:00
leap123 35ee13f094 device-rockchip-rk322x: fix checksum
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7003>
2025-09-07 01:28:05 +00:00
leap123 5675c834a1 rockchip-rk322x: update kernel to 6.16.5
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7003>
2025-09-07 01:28:05 +00:00
Sicelo A. Mhlongo aa0879310e */: sicelo: drop and transfer maintainership
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6993>
2025-09-06 23:44:49 +02:00
Dylan Van Assche a8229a6ad7 main/postmarketos-ui-os-installer: add Console UI
Installing pmOS on servers has never been more easy with the OS Installer when the Console UI is supported. Tested on my own homeserver.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7000>
2025-09-06 18:33:14 +02:00
Daniel Kulesz d614b2c4b0 linux-purism-librem5: upgrade to 6.6.92pureos1
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6970>
2025-09-06 12:56:57 +02:00
Casey Connolly cfc28d4fb9 linux-next: enable XBOX controller support
Enable joystick devices as per kconfigcheck

Signed-off-by: Casey Connolly <kcxt@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7005>
2025-09-06 08:02:48 +00:00
postmarketOS CI b0b2d89485 linux-next: upgrade to next-20250905 2025-09-06 04:50:29 +00:00
Hugo Osvaldo Barrera ec17f2118c qemu-*: enable PSI
PSI is necessary (but not sufficient) to run Waydroid on this device
target:

- linux-virt is built without binder and unusable for Waydroid.
- linux-stable is build with CONFIG_PSI_DEFAULT_DISABLED.
- linux-lts is build with CONFIG_PSI_DEFAULT_DISABLED.

The performance difference is negligible for this device; less that 1%.

Fixes: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/1884
See: https://gitlab.alpinelinux.org/alpine/aports/-/issues/17465
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6995>
2025-09-05 21:54:00 +02:00
Jami Kettunen b8c64a14f7 device/*: drop my "maintainership" of msm8998/mt6763/mt6768 stuff
I've not touched anything in pmaports (or mainline aarch64 stuff in
general besides my Snapdragon X Elite laptop which I thankfully didn't
have to bringup myself) for about 3 years at this point so I think that
ship has sailed by now.

[ci:skip-build]: orphaning the packages
[ci:skip-vercheck]

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6971
2025-09-05 18:03:42 +02:00
Dinolek 9c8c46f803 device-xiaomi-begonia: new aport
Based on the linux-postmarketos-mediatek-mt6785 kernel.

Signed-off-by: Dinolek <git@dinolek.me>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6975>
2025-09-05 15:43:23 +00:00
Dinolek da0d53f27a firmware-xiaomi-begonia: new aport
Signed-off-by: Dinolek <git@dinolek.me>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6975>
2025-09-05 15:43:23 +00:00
Dinolek 99b95928e6 linux-postmarketos-mediatek-mt6785: new aport
Mainline port for the MediaTek MT6785 Helio G90/G90T/G95.

Signed-off-by: Dinolek <git@dinolek.me>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6975>
2025-09-05 15:43:23 +00:00
Dinolek d869b99210 xiaomi-begonia: add -downstream suffix and archive downstream port
Signed-off-by: Dinolek <git@dinolek.me>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6975>
2025-09-05 15:43:23 +00:00
Dinolek 22a9c72680 linux-xiaomi-begonia: fix build
Signed-off-by: Dinolek <git@dinolek.me>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6975>
2025-09-05 15:43:23 +00:00
adamthiede 8cf57dfdfb linux-postmarketos-mediatek-mt8173: upgrade to 6.16.5
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6997>
2025-09-05 08:08:33 +00:00
BotchedRPR d130e6990d device-nothing-tetris: new package
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6985>
2025-09-04 20:30:07 +00:00
BotchedRPR 6f63a440ab linux-postmarketos-mediatek-mt6878: new package
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6985>
2025-09-04 20:30:07 +00:00
Stefan Hansson 6c98a4d742 main/dint: new aport
This could later be used to add deviceinfo linting CI to pmaports. I'm
putting this in pmaports rather than aports as I would think there is
little purpose to having a deviceinfo linter in Alpine when this format
isn't used there.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6999>
2025-09-04 20:21:34 +00:00
postmarketOS CI 9d7a05983f linux-next: upgrade to next-20250904 2025-09-04 15:50:57 +00:00
postmarketOS CI 021044ac78 linux-next: upgrade to next-20250903 2025-09-03 15:49:39 +00:00
Henrik Grimler 436d44c8e6 systemd/systemd-services: add apache service
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6996>
2025-09-03 13:53:00 +00:00
Henrik Grimler 4a2a2acaf6 device-samsung-i9100: set generate_extlinux_config=true
Was missed when device was migrated over to use u-boot.

Fixes: e74d7fdd69 ("device-samsung-i9100: use u-boot as intermediate bootloader")
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6998>
2025-09-03 13:52:03 +00:00
Pablo Correa Gómez 7273e83141 README: improve wording for commit style
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6992>
2025-09-03 13:51:05 +00:00
Pablo Correa Gómez 6d6fcd0340 README: add review and merging guidelines
As agreed in
https://wiki.postmarketos.org/wiki/Team_Meetings#2025-09-01

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6992>
2025-09-03 13:51:05 +00:00
Aster Boese 3f405ace7d apple-idevice: change rootfs_image_sector_size to 4096
Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6944>
2025-09-03 09:55:42 +00:00