Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

media-video/wireplumber: add fix for remote clients and cleanup #23599

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -0,0 +1,36 @@
https://gitlab.freedesktop.org/pipewire/wireplumber/-/commit/703c35cfd44265e81595db29eed081c8785cda87

From 703c35cfd44265e81595db29eed081c8785cda87 Mon Sep 17 00:00:00 2001
From: Wim Taymans <wtaymans@redhat.com>
Date: Mon, 29 Nov 2021 09:25:18 +0100
Subject: [PATCH] access-config: add restricted access permissions

When a pulse client connects with TCP, it is given the 'restricted'
access policy. Assign 'rx' permissions for those clients instead of
blocking forever.

See pipewire#1863
---
src/config/main.lua.d/50-default-access-config.lua | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/src/config/main.lua.d/50-default-access-config.lua b/src/config/main.lua.d/50-default-access-config.lua
index 0282d4aa..6cf18bed 100644
--- a/src/config/main.lua.d/50-default-access-config.lua
+++ b/src/config/main.lua.d/50-default-access-config.lua
@@ -20,4 +20,12 @@ default_access.rules = {
},
default_permissions = "rx",
},
+ {
+ matches = {
+ {
+ { "pipewire.access", "=", "restricted" },
+ },
+ },
+ default_permissions = "rx",
+ },
}
--
GitLab

Expand Up @@ -13,7 +13,11 @@ if [[ ${PV} == 9999 ]]; then
inherit git-r3
else
SRC_URI="https://gitlab.freedesktop.org/pipewire/${PN}/-/archive/${PV}/${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"

# One commit is in git, the rest are in a PR which should be merged soon
# bug #817881
SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-0.4.5-endianness-fixes.patch.bz2"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
fi

DESCRIPTION="Replacement for pipewire-media-session"
Expand All @@ -40,7 +44,7 @@ BDEPEND="
DEPEND="
${LUA_DEPS}
>=dev-libs/glib-2.62
>=media-video/pipewire-0.3.39
>=media-video/pipewire-0.3.42:=
virtual/libc
elogind? ( sys-auth/elogind )
systemd? ( sys-apps/systemd )
Expand All @@ -55,10 +59,12 @@ RDEPEND="${DEPEND}"
DOCS=( {NEWS,README}.rst )

PATCHES=(
"${FILESDIR}"/${PN}-0.4.5-m-reserve-device-replace-the-hash-table-key-on-new-i.patch
"${FILESDIR}"/${PN}-0.4.5-policy-node-wait-for-nodes-when-we-become-unlinked.patch
"${FILESDIR}"/${PN}-0.4.5-lib-don-t-read-hidden-files-from-the-config-director.patch
"${FILESDIR}"/${PN}-0.4.5-alsa-handle-the-release-requested-signal.patch
"${FILESDIR}"/${P}-m-reserve-device-replace-the-hash-table-key-on-new-i.patch
"${FILESDIR}"/${P}-policy-node-wait-for-nodes-when-we-become-unlinked.patch
"${FILESDIR}"/${P}-lib-don-t-read-hidden-files-from-the-config-director.patch
"${FILESDIR}"/${P}-alsa-handle-the-release-requested-signal.patch
"${FILESDIR}"/${P}-access-config-add-restricted-access-permissions.patch
"${WORKDIR}"/${P}-endianness-fixes.patch
)

src_configure() {
Expand Down
89 changes: 0 additions & 89 deletions media-video/wireplumber/wireplumber-0.4.5.ebuild

This file was deleted.