1
0
Fork 0
mirror of https://gitlab.postmarketos.org/postmarketOS/pmaports.git synced 2025-07-13 08:39:47 +03:00
Commit graph

374 commits

Author SHA1 Message Date
Clayton Craft
ed5f3dd73e
systemd: disable armhf
This is a workaround for pmb#2618, basically.

To build systemd with BPF support (so things like unpriv. nspawn work),
we have to install linux-stable-dev to get a special header(vmlinux.h).
This kernel (linux-stable) isn't build in Alpine for armhf. Normally
that's not a problem, we could just add linux-stable-dev conditionally
to the makedepends, right? No... not possible until pmb#2618 is fixed.
Given this arch is used by only 3 devices in testing (the rest are in
`downstream` or `archive`), I think it makes sense to disable systemd on
this arch until someone has the motivation to fix the pmb bug.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6637
[ci:skip-build]: already built successfully in CI
2025-06-20 12:37:11 +02:00
Clayton Craft
1c4fd97318
systemd: enable BPF support for unprivileged systemd-nspawn
Partially fixes #3746, kernel options are required for systemd to
correctly enable support for this in systemd-nsresourced at runtime.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6637
2025-06-20 12:37:07 +02:00
Clayton Craft
32b1a6d9b6
systemd/xorg-server: upgrade to 21.1.18
Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6686

[ci:skip-build]: already built successfully in CI
2025-06-20 11:25:02 +02:00
fossdd
b2f0e4f00c
systemd/xorg-server: upgrade to 21.1.17
04b13adec6

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6680
[ci:skip-build]: already built successfully in CI
2025-06-18 00:18:00 +02:00
George Brooke
2bb9bea1a6
systemd/postmarketos-base-systemd: enable tuned and tuned-ppd by default
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6585

[ci:skip-build]: already built successfully in CI
2025-06-17 19:21:52 +02:00
George Brooke
e15e22fcb8
systemd/systemd-services: add services for tuned, tuned-ppd
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6585
2025-06-17 19:21:52 +02:00
binarycraft007
060652e6f9
systemd-services: add sing-box service
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6657

[ci:skip-build]: already built successfully in CI
2025-06-17 19:08:30 +02:00
Oliver Smith
c8b5872b56
systemd/postmarketos-base-systemd: remove motd
Remove the systemd-specific MOTD that says it is still in preview.
v25.06 is about to come out, the first stable release with systemd!

Any future adjustments to make it use fancy ascii colors etc. should be
made in postmarketos-base instead.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6669
[ci:skip-build]: already built successfully in CI
2025-06-15 17:58:44 +02:00
Jane Rachinger
10b993dc30
systemd/systemd: upgrade to 257.6
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6581

[ci:skip-build]: already built successfully in CI
2025-06-14 18:48:01 -07:00
Federico Amedeo Izzo
93838311aa
community/soc-qcom: Add missing systemd unit for call_audio_idle_suspend_workaround
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6663

[ci:skip-build]: already built successfully in CI
2025-06-14 11:12:58 +02:00
Clayton Craft
34d62b85da
systemd: Always install X11 tmpfiles config
This is needed by some(all?) Xwayland implementations too, so don't make
installing it exclusive to having the actual X11 xorg-server installed.

This fixes an issue where Xwayland doesn't work on COSMIC.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6658
[ci:skip-build]: already built successfully in CI
2025-06-13 17:02:32 -07:00
fossdd
9b03326184
systemd/phosh: backport media player fixes
e376f4d57a

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6654
[ci:skip-build]: already built successfully in CI
2025-06-12 22:55:08 +02:00
Clayton Craft
7bf6a9da16
systemd/systemd-services: fix zram_swap unit
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6614

[ci:skip-build]: already built successfully in CI
2025-06-09 13:02:30 +02:00
Clayton Craft
832128c3db systemd: fix udevd symlink
On a merged /usr system, this results in a broken symlink since
sbin/udevd is really usr/sbin/udevd, and usr/sbin/../usr/lib/ is not a
real thing. This should have no effect on unmerged /usr systems, since
sbin/../../usr/lib/.... is still a correct (if ugly) path.

It's quite difficult to create a relative symlink for these things
that works reliably on a merged AND unmerged /usr install, so for now
I'm going to make the symlink source path absolute so that we can be
confident it'll work on either type of installation, and we can revisit
making them relative after usr merge is done/deployed on all installs.

Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6598
2025-06-05 15:44:30 +02:00
Oliver Smith
06134a113f
systemd/mutter: upgrade to 48.3.1
cef0305479

Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6607
[ci:skip-build]: already built successfully in CI
2025-06-05 15:04:19 +02:00
fossdd
25d47fa572
systemd/gnome-desktop: upgrade to 44.3
e611a2686d

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6606
[ci:skip-build]: already built successfully in CI
2025-06-05 09:25:11 +02:00
fossdd
568af58e84
systemd/pipewire: upgrade to 1.4.5
ca3448da95

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6606
2025-06-05 09:25:07 +02:00
Oliver Smith
f9601f1502
systemd: remove previous bootstrap logic
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6440
2025-06-04 20:34:23 +02:00
Oliver Smith
6f5d86f3c1
systemd/polkit: build with systemd-stage0
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6440
2025-06-04 20:34:22 +02:00
Oliver Smith
b34ad51f0e
systemd/dbus: build with systemd-stage0
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6440
2025-06-04 20:34:22 +02:00
Oliver Smith
e27fce7e65
systemd/systemd-stage0: new package
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6440
2025-06-04 20:34:22 +02:00
Clayton Craft
d0e480eda1
systemd/systemd-services: add sshd@.service unit
This is inspired by the units shipped by Fedora and Debian:
https://salsa.debian.org/ssh-team/openssh/-/blob/master/debian/systemd/sshd@.service
https://src.fedoraproject.org/rpms/openssh/blob/rawhide/f/sshd%40.service

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6566
[ci:skip-build]: already built successfully in CI
2025-06-04 20:24:35 +02:00
Clayton Craft
a3e5f4cda7
systemd/systemd-services: Fix zram_swap unit
This change makes the zram_swap service depend on a deviceinfo being
present in the rootfs (which may not always be the case, e.g. when
building an image with mkosi), and it replaces the ExecStartPre with
a dependency on modprobe@zram.service so that modprobe is only called
once if other services happen to also depend on this module (which is
unlikely, but a nicer way to handle this)

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6566
2025-06-04 20:24:31 +02:00
Clayton Craft
0dabd564d1
systemd/postmarketos-base-systemd: replace pmos-baselayout
Some files overwritten by this package are in pmos-baselayout now

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6565
[ci:skip-build]: already built successfully in CI
2025-06-04 09:09:37 -07:00
Oliver Smith
3aaaad17cb
systemd/abuild: remove
The abuild package has been forked to temp/abuild and
extra-repos/systemd/abuild in the past. The systemd one is legacy from
the initial systemd repo bootstrap method that is currently broken and
will be replaced soon (see MR 6440). While the new one is not ready yet,
this package is currently not useful so remove it to fix the failing
upstream-compat check (currently it is on a different version than
temp/abuild).

[ci:skip-vercheck]: just removing a comment in temp/abuild

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6573
[ci:skip-build]: already built successfully in CI
2025-06-01 12:47:53 +02:00
Alistair Francis
070f069ebb
postmarketos-systemd-base: add preset for Librem5
Signed-off-by: Alistair Francis <alistair@alistair23.me>
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6563

[ci:skip-build]: already built successfully in CI
2025-05-30 14:43:25 -07:00
fossdd
8ab80c017a
systemd/pipewire: upgrade to 1.4.4
Upstream: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/84674

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6575
[ci:skip-build]: already built successfully in CI
2025-05-30 10:25:34 +02:00
fossdd
00bbca5738
systemd: move systemd-network-generator into origin package
Closes https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/3730

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6568
[ci:skip-build]: already built successfully in CI
2025-05-29 21:41:36 +02:00
fossdd
2a480d1a58
systemd/mutter: upgrade to 48.2
https://gitlab.gnome.org/GNOME/mutter/-/blob/48.3/NEWS

https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/84809

Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6559
2025-05-28 16:36:15 +02:00
fossdd
3965addf72
systemd/gnome-shell: upgrade to 48.2
https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/48.2/NEWS

https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/84809

Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6559
2025-05-28 16:36:15 +02:00
fossdd
6d05b512a0
systemd/phosh: update force-adaptive list
https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/84748

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6554
[ci:skip-build]: already built successfully in CI
2025-05-26 09:49:55 +02:00
George Brooke
31014f740c
systemd/postmarketos-base-systemd: enable cros-keyboard-systemd.service in base preset
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6529

[ci:skip-build]: already built successfully in CI
2025-05-25 11:14:57 +02:00
fossdd
2c8c7c8fee
systemd/wireplumber: upgrade to 0.5.10
https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/84654

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6546
[ci:skip-build]: already built successfully in CI
2025-05-25 10:26:33 +02:00
fossdd
8f762fa7a3
systemd/pipewire: upgrade to 1.4.3
https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/84674

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6546
2025-05-25 10:26:29 +02:00
Alistair Francis
3bf8208abe
postmarketos-systemd-base: add preset for 81voltd
Signed-off-by: Alistair Francis <alistair@alistair23.me>
Co-authored-by: Clayton Craft <clayton@craftyguy.net>
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6494

[ci:skip-build]: already built successfully in CI
2025-05-23 16:07:09 -07:00
Clayton Craft
3b0f9a1b82
systemd/postmarketos-base-systemd: fix issue with locale.conf being ignored
Shells (and DEs!) that set environment from /etc/profile.d will end
up sourcing 20locale.sh from alpine-baselayout. This file will set
`LANG=C.UTF8`, and this will override whatever systemd-localed/systemd
sets LANG to. In other words, locale.conf is effectively ignored. I
hit this issue when debugging why the date in COSMIC was always `M05`
instead of `May`, and why various COSMIC components failed to detect the
locale (because it was set to C.UTF8)

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6535
[ci:skip-build]: already built successfully in CI
2025-05-22 17:10:47 -07:00
fossdd
fa915e5c3a
systemd/phosh: upgrade to 0.47.0
https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/84018

Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6532
[ci:skip-build]: already built successfully in CI
2025-05-18 20:24:24 +02:00
fossdd
83b5d2271f
systemd/gnome-session: remove dependency of _shell subpkg
Fixes https://builds.sr.ht/~postmarketos/job/1490862

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6524
[ci:skip-build]: build tested locally
2025-05-16 16:55:19 +02:00
Bhushan Shah
4907fec033
systemd/systemd-services: add CAP_WAKE_ALARM to powerdevil
With systemd 275.x merged, this works as expected and also upstream
changes for this is merged. So, let's enable this here to allow Alarm
clock in Plasma Mobile e.g. to wake up device from suspend.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6509
2025-05-16 11:38:04 +05:30
fossdd
49d5416123
*/*: remove --no-rebuild from meson test
meson 1.7.0 and later don't include test build targets in the default
build target. With --no-rebuild the test targets aren't build at all.
Removing --no-rebuild shouldn't cause any false rebuilds since the files
aren't changed between the build() and check() step.

See upstream https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/83218
and https://gitlab.alpinelinux.org/alpine/aports/-/issues/16891

[ci:skip-vercheck]
[ci:ignore-count]
[ci:skip-build]

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6515
2025-05-15 19:25:15 +02:00
fossdd
9a8fce58a4
systemd/gnome-session: move gnome-shell session files into subpackage
Just some change we already have upstream for a while but forgot to copy
over here downstream

Ref: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/79185

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6520
[ci:skip-build]: already built successfully in CI
2025-05-15 19:23:17 +02:00
Pablo Correa Gómez
3fa97cac3e
extra-repos/systemd/alpine-base: remove
Since last commit, we no longer depend on it in postmarketos-base, and
this fork is not necessary

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6475
2025-05-15 10:22:04 +02:00
Pablo Correa Gómez
a00d027b40
postmarketos-base{-systemd}: provide postmarketos-base-init
Why is this needed?

To be able to test the usr-merge downstream we need to stop
depending on alpine-baselayout. For that, we need to stop depending on
alpine-base. This is a first step to create a "provides" solution
downstream between openrc and systemd systems, so that in a follow-up
commit we can recreate alpine-base downstream without the hard-coded
openrc dependency. The virtual instead of a versioned dependency means
that:
* In theory systemd and openrc could be installed in parallel. In
  practice we avoid that with !openrc in the systemd package and
  !systemd in the postmarketos-base-openrc one. There is a lot more
  work required with provides (both upstream and downstream) regarding
  things like elogind and eudev to be able to even have them
  package-wise ready to be installed in parallel
* There must always be one installed. Here we have 3 scenarios:
  * pmbootstrap install where pmbootstrap will decide which one
  * update from existing install. The virtual makes sure that APK
    won't remove the local package because versions changed
  * Manual APK work, where the provider_priority or the user will
    choose

How does this work? Hypothesis:
* openrc upgrades: the postmarketos-base-openrc remains installed,
  moves from being an "install_if", to be there because it fulfills
  the postmarketos-base-init requirements.
* systemd upgrades: postmarketos-base-systemd is still in
  /etc/apk/world, and it fulfills the new dependency in
  postmarketos-base. Nothing happens.
* openrc installs: pmbootstrap will choose one of
  postmarketos-base-openrc and postmarketos-base-systemd... But which?
  The one with the higher version?
* systemd installs: postmarketos-base-systemd is installed before
  anything else is. That means, postmarketos-base-init will already
  be satisfied when postmarketos-base gets installed, and openrc will
  not be installed

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6475
2025-05-15 10:22:03 +02:00
George Brooke
a467bfd1b1
systemd/postmarketos-base-systemd: enable keyd.service in base preset
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6499

[ci:skip-build]: already built successfully in CI, except unrelated qemu
runner failures
2025-05-14 14:15:01 -07:00
George Brooke
59f47ddc1e
systemd/systemd-services: add keyd service file
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6499
2025-05-14 20:39:34 +01:00
Alistair Francis
260c54a893
systemd/networkmanager: Support Librem5 WiFi Hotspot
This applies a patch from the Purism tree [1] to ensure that the Librem5
can create a WiFi Hotspot.

Adding a hacky patch to NetworkManager is less then ideal, but there
currently isn't a better way to get WiFi Hotspot working. pmOS already
has a fork of NetworkManager so adding one more patch isn't too much
worse. If the NetworkManager fork disapears I think this patch can also
just be dropped, but while we are maintaing NetworkManager we may as
well support the Librem5.

Hopefully Purism develop a cleaner fix for this in the future, as
Librem5 development seems to have started up again.

1: https://source.puri.sm/pureos/packages/network-manager/-/blob/pureos/latest/debian/patches/pureos/wifi-Disable-WPA-PSK-SHA256-in-AP-mode.patch

Resolves: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/2508
Signed-off-by: Alistair Francis <alistair@alistair23.me>
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6421
[ci:skip-build]: already built successfully in CI
2025-05-14 11:11:20 +02:00
Jane Rachinger
655ac6716d
systemd/systemd: upgrade to 257.5
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6441

[ci:skip-build]: already built successfully in CI
2025-05-12 14:53:10 -07:00
Clayton Craft
ee13367e22
systemd/systemd-services: add docker-engine/dockerd and containerd unit files
fixes #3679

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6450
[ci:skip-build]: already built successfully in CI
2025-05-12 19:07:27 +02:00
Jane Rachinger
7bf33125d4
systemd/systemd-services: install tmpfiles into right directory
previously tmpfiles got installed under /usr/lib/tmpfiles.d/tmpfiles.d/.
This omits the tmpfiles.d in the prefix to install files under
/usr/lib/tmpfiles.d/.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6502
[ci:skip-build]: already built successfully in CI
2025-05-12 18:49:34 +02:00
Bart Ribbers
982e207f85
systemd/systemd-services: disable ddcutil integration of PowerDevil
As mentioned in https://blog.bshah.in/2025/05/07/plasma-sprint-in-graz-2025/ it's
currently broken and causes issues when kwin_wayland restarts for some reason. Better to just disable it until upstream has figured out a proper solution.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6487
[ci:skip-build]: already built successfully in CI
2025-05-12 17:15:15 +02:00