main/postmarketos-base-ui: add tmpfiles.d config for alsa-utils
alsa-utils tries creating /run/lock/asound.state.lock, but, since /run/ is a tmpfs, that path does not exist in packaging. It is expected that this path is created at runtime, but systemd does not because systemd considers /run/lock/ to be a legacy path and locks creating it behind its legacy sysv compat. Because we cannot enable sysv compat and cannot patch systemd to still allow /run/lock/ in its regular tmpfiles.d config, creating a custom config is the best solution. This is not in a systemd subpackage because OpenRC installs can also use tmpfiles.d and discussion in abuild came to the conclusion that tmpfiles.d configs should stay in the regular packaging and not go into a subpackage. Signed-off-by: Aster Boese <asterboese@mailbox.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9047>
This commit is contained in:
parent
2bab6556d1
commit
28962d7fdf
2 changed files with 15 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
maintainer="Clayton Craft <clayton@craftyguy.net>"
|
||||
pkgname=postmarketos-base-ui
|
||||
pkgver=55
|
||||
pkgver=56
|
||||
pkgrel=0
|
||||
pkgdesc="Meta package for minimal postmarketOS UI base"
|
||||
url="https://postmarketos.org"
|
||||
|
|
@ -29,6 +29,7 @@ subpackages="
|
|||
$pkgname-audio
|
||||
$pkgname-audio-backend-pipewire:audio_pipewire
|
||||
$pkgname-audio-backend-pulseaudio:audio_pulseaudio
|
||||
$pkgname-alsa-utils:alsa_utils
|
||||
$pkgname-bluez-openrc:bluez_openrc
|
||||
$pkgname-bluez-obexd:obexd
|
||||
$pkgname-elogind
|
||||
|
|
@ -97,6 +98,7 @@ _source644="
|
|||
usr/lib/NetworkManager/conf.d/50-use-dnsmasq.conf
|
||||
usr/lib/systemd/system/ModemManager.service.d/quick-suspend-resume.conf
|
||||
usr/lib/systemd/system/iio-sensor-proxy.service.d/shutdown.conf
|
||||
usr/lib/tmpfiles.d/alsa-utils.conf
|
||||
usr/lib/udev/rules.d/50-udmabuf.rules
|
||||
usr/lib/udev/rules.d/90-iio-sensor-proxy-proximity-sensor-enable.rules
|
||||
usr/share/flatpak/remotes.d/flathub.flatpakrepo
|
||||
|
|
@ -138,6 +140,12 @@ package() {
|
|||
done
|
||||
}
|
||||
|
||||
alsa_utils() {
|
||||
install_if="$pkgname=$pkgver-r$pkgrel alsa-utils"
|
||||
|
||||
amove usr/lib/tmpfiles.d/alsa-utils.conf
|
||||
}
|
||||
|
||||
wayland() {
|
||||
install_if="$pkgname=$pkgver-r$pkgrel wayland-server-libs"
|
||||
|
||||
|
|
@ -356,6 +364,7 @@ d4b4c4fed2dee7266f6a87ae266691377593014943e2953e4cd87a59f3110f25bfb5f3f866cc8435
|
|||
900554534191fa0797064d35350934cdd8af59f30f0ae7d8ec63c2e11c44a16c643d3024b6543940488cd590fec1d392548bcaacc3be88cddff90f69b17ece07 rootfs-usr-lib-NetworkManager-conf.d-50-use-dnsmasq.conf
|
||||
cc86775a7820eb683e67df7d23ebae9d72699a643ff1452c71daf38ac6c39a84fd1686e67351ab0a2c582f9fc0374410383e3a32bd378cf11a8fb6033fde35ac rootfs-usr-lib-systemd-system-ModemManager.service.d-quick-suspend-resume.conf
|
||||
087b9e967f6ffeaeb1fd6c5860bb07d0b8c2ce2c1b636d73e989cc9f3c8c6a60dc9552ec5ff13a2bce6804c3f5e8876d4b41a07770f06f6cee0fa37a54f996b4 rootfs-usr-lib-systemd-system-iio-sensor-proxy.service.d-shutdown.conf
|
||||
1f0e33cc8d435d2d97863a8080eb5b6d476b6515b29707bd2f86fafa8af6c3bbdacc7cd0eeb9ed4735d31baa760846e734e33c0238165e9b1e8fee666323096d rootfs-usr-lib-tmpfiles.d-alsa-utils.conf
|
||||
9431dd37801261002f2ac8a0c30483994897adaf7cb31e80fcb99b7354dbe3e10d79162a2f2baefc5d091bb192ff680f274d6481bb198958d08918529c64e26f rootfs-usr-lib-udev-rules.d-50-udmabuf.rules
|
||||
178a8b584eb4d60eff084328713924f20414892e558559002fc753011ef4b0aa73c8abceb943f842c702ce31525a28c3e1cbdaac0392da557e9a034a6e7be7ae rootfs-usr-lib-udev-rules.d-90-iio-sensor-proxy-proximity-sensor-enable.rules
|
||||
54620e508a5070ec8819e3661e592acfcfd26c52170b0ecc4dbbc1c61998963ce20bf9d9b051a608b76d6fc17e61c65decc16602b7d58061b9149667a968d258 rootfs-usr-share-flatpak-remotes.d-flathub.flatpakrepo
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
# systemd considers /run/lock a legacy path, with its tmpfiles config locked
|
||||
# behind enabling sysv compat, which we don't want. Thus, create the path in
|
||||
# a custom distro config for alsa-utils, which needs it
|
||||
|
||||
d /run/lock 0755 root root -
|
||||
Loading…
Add table
Add a link
Reference in a new issue