diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2021-05-08 16:07:53 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-05-08 20:27:45 +0200 |
commit | 274f08964197fac2907863311e36c0afbb58d381 (patch) | |
tree | d8da8d06f643135cfa80ffaf2a9c0e5e7895c698 /media-video/pipewire | |
parent | media-video/pipewire: minor fixes (diff) | |
download | gentoo-274f08964197fac2907863311e36c0afbb58d381.tar.gz gentoo-274f08964197fac2907863311e36c0afbb58d381.tar.bz2 gentoo-274f08964197fac2907863311e36c0afbb58d381.zip |
media-video/pipewire: raise RLIMIT_MEMLOCK to 256 by default for audio group
Closes: https://bugs.gentoo.org/785778
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'media-video/pipewire')
-rw-r--r-- | media-video/pipewire/pipewire-9999.ebuild | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/media-video/pipewire/pipewire-9999.ebuild b/media-video/pipewire/pipewire-9999.ebuild index 98c6d6dc15f3..3412a2825be1 100644 --- a/media-video/pipewire/pipewire-9999.ebuild +++ b/media-video/pipewire/pipewire-9999.ebuild @@ -43,6 +43,7 @@ BDEPEND=" ) " RDEPEND=" + acct-group/audio media-libs/alsa-lib sys-apps/dbus[${MULTILIB_USEDEP}] sys-libs/ncurses[unicode] @@ -122,6 +123,15 @@ src_prepare() { # significantly worse user experience on systemd then. eapply "${FILESDIR}"/${PN}-0.3.25-non-systemd-integration.patch fi + + einfo "Generating ${limitsdfile}" + cat > ${limitsdfile} <<- EOF || die + # Start of ${limitsdfile} from ${P} + + @audio - memlock 256 + + # End of ${limitsdfile} from ${P} + EOF } multilib_src_configure() { @@ -178,17 +188,6 @@ multilib_src_configure() { multilib_src_compile() { meson_src_compile - - if multilib_is_native_abi; then - einfo "Generating ${limitsdfile}" - cat > ${limitsdfile} <<- EOF || die - # Start of ${limitsdfile} from ${P} - - 1000:60000 - memlock 256 - - # End of ${limitsdfile} from ${P} - EOF - fi } multilib_src_install() { @@ -221,6 +220,11 @@ multilib_src_install_all() { pkg_postinst() { if ! use pipewire-alsa; then + elog "It is recommended to raise RLIMIT_MEMLOCK to 256 for user" + elog "using PipeWire. Do it either manually or add yourself" + elog "to the 'audio' group:" + elog " usermod -aG audio <youruser>" + elog elog "Contrary to what some online resources may suggest, avoid setting" elog "PULSE_LATENCY_MSEC environment variable since it may break ALSA clients." elog |