mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
media-video/wireplumber: backport a fix and enable config protection
WirePlumber 0.4.8 contains a config/script change that, if not present in the user modified files, will cause startup failure. This commit backports an upstream fix to prevent a crash in addition to also implementing a solution to at least keep /etc/wireplumber up to date though the usual config_protect mechanism. This is needed because while the particular issue has been addressed, it does not solve the general problem with there potentially being outdated files in /etc/wireplumber directory. The same is true for $HOME/.config/wireplumber, too, however there's no reasonable way to help users who decide to copy config files to there and then never update them against newer versions. Closes: https://bugs.gentoo.org/832952 Signed-off-by: Niklāvs Koļesņikovs <89q1r14hd@relay.firefox.com> Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
https://gitlab.freedesktop.org/pipewire/wireplumber/-/commit/5f96f69218273573e625475846269b3914cfcecf
|
||||
|
||||
From 5f96f69218273573e625475846269b3914cfcecf Mon Sep 17 00:00:00 2001
|
||||
From: George Kiagiadakis <george.kiagiadakis@collabora.com>
|
||||
Date: Wed, 9 Feb 2022 13:35:13 +0200
|
||||
Subject: [PATCH] restore-stream: do not crash if config.properties is nil
|
||||
|
||||
Fixes #190
|
||||
---
|
||||
src/scripts/restore-stream.lua | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/scripts/restore-stream.lua b/src/scripts/restore-stream.lua
|
||||
index 404eede5..0c17bdd7 100644
|
||||
--- a/src/scripts/restore-stream.lua
|
||||
+++ b/src/scripts/restore-stream.lua
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
-- Receive script arguments from config.lua
|
||||
local config = ... or {}
|
||||
+config.properties = config.properties or {}
|
||||
config_restore_props = config.properties["restore-props"] or false
|
||||
config_restore_target = config.properties["restore-target"] or false
|
||||
|
||||
--
|
||||
GitLab
|
||||
|
||||
+11
@@ -82,6 +82,17 @@ src_configure() {
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
# We copy the default config, so that Gentoo tools can pick up on any
|
||||
# updates and /etc does not end up with stale overrides.
|
||||
# If a reflinking CoW filesystem is used (e.g. Btrfs), then the files
|
||||
# will not actually get stored twice until modified.
|
||||
insinto /etc
|
||||
doins -r ${ED}/usr/share/wireplumber
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if systemd_is_booted ; then
|
||||
ewarn "pipewire-media-session.service is no longer installed. You must switch"
|
||||
+15
@@ -60,6 +60,10 @@ RDEPEND="${DEPEND}
|
||||
|
||||
DOCS=( {NEWS,README}.rst )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-restore-stream-do-not-crash-if-config.properties-is-.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
-Ddoc=disabled # Ebuild not wired up yet (Sphinx, Doxygen?)
|
||||
@@ -78,6 +82,17 @@ src_configure() {
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
# We copy the default config, so that Gentoo tools can pick up on any
|
||||
# updates and /etc does not end up with stale overrides.
|
||||
# If a reflinking CoW filesystem is used (e.g. Btrfs), then the files
|
||||
# will not actually get stored twice until modified.
|
||||
insinto /etc
|
||||
doins -r ${ED}/usr/share/wireplumber
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if systemd_is_booted ; then
|
||||
ewarn "pipewire-media-session.service is no longer installed. You must switch"
|
||||
@@ -78,6 +78,17 @@ src_configure() {
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
# We copy the default config, so that Gentoo tools can pick up on any
|
||||
# updates and /etc does not end up with stale overrides.
|
||||
# If a reflinking CoW filesystem is used (e.g. Btrfs), then the files
|
||||
# will not actually get stored twice until modified.
|
||||
insinto /etc
|
||||
doins -r ${ED}/usr/share/wireplumber
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if systemd_is_booted ; then
|
||||
ewarn "pipewire-media-session.service is no longer installed. You must switch"
|
||||
|
||||
Reference in New Issue
Block a user