1 |
commit: 32ec7fdb85868895de063139a277b4c50e5b69b3 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 6 03:47:04 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 6 03:47:12 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32ec7fdb |
7 |
|
8 |
media-video/pipewire: add 0.3.53_p20220705 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/856544 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
media-video/pipewire/Manifest | 1 + |
14 |
.../pipewire/pipewire-0.3.53_p20220705.ebuild | 407 +++++++++++++++++++++ |
15 |
2 files changed, 408 insertions(+) |
16 |
|
17 |
diff --git a/media-video/pipewire/Manifest b/media-video/pipewire/Manifest |
18 |
index de58b4a0f18d..18ff21b93d7c 100644 |
19 |
--- a/media-video/pipewire/Manifest |
20 |
+++ b/media-video/pipewire/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST pipewire-0.3.51.tar.gz 1789070 BLAKE2B 8538eb9f2178efa26365f30b324b707826e5 |
22 |
DIST pipewire-0.3.52.tar.gz 1810238 BLAKE2B bb75eff5fe7700d0a303fbfed7910aebd82346a5a21c4a0d17c06e6991bc90bb6d4f6b9559c25788494cb11faff957523dcd7f0c4c8a40be11b81c63a5a9e5ef SHA512 30e9cf74c92babafe386f02a03bb5c41a8ee5591a02f15845cca1ee44f091ce68eb14d48943d43b680cb525026a19e0290997670f9a82156eaa72e974fe6d01a |
23 |
DIST pipewire-0.3.53.tar.gz 1783505 BLAKE2B 269466c6ba78cb85516dc714f3aa5d71cdf72a859b6e1a11c60062da6dcd56eefc78958fe026b9fd11d61fd6fbe6f2aac54a2a9fd77d4ee474687f5d54628c38 SHA512 50f23a7b71f3eb20657ff75de54a9f3056270bf05a5472ec9c7dea1c9d0ed391b6b09496d58b065c3cbc40f9be8088b6737cbf0731973498bcd5a8176c42d443 |
24 |
DIST pipewire-0.3.53_p20220704.tar.bz2 1351516 BLAKE2B 3d4e4859c66e9cbe47adc0f1c0e2e512632793d70853e0105984c06d2e66744b68d1c01dc7a85784ca2007a96aa5fd1c62c7f47ea6360df58ff76b87de4d3ee2 SHA512 87819aa5bdd3caa685c0fc93b0ddcf8212f115cecc130155918876c10883bd98ce923fef3f9716b2562ef5ae2b5465d9e39816f4b6e0c48cf9f28303755584b6 |
25 |
+DIST pipewire-0.3.53_p20220705.tar.bz2 1358645 BLAKE2B 365e81ab114fb9b4abbd5351145d0558c7c00bdbccefc2f7bacb965018c1e7009b7b26b8e95baf35534b74cf9ce49483604841aa7ba949d6a94e720e8ec4233c SHA512 631e737e3517cb4d4c3f84e9540acde2cf94bde472626c61e0223ff4ac5cc2118a35dae79d009558384e24b955cf002d209db1bcf1465056757234725213f152 |
26 |
|
27 |
diff --git a/media-video/pipewire/pipewire-0.3.53_p20220705.ebuild b/media-video/pipewire/pipewire-0.3.53_p20220705.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..51c7a334c1f1 |
30 |
--- /dev/null |
31 |
+++ b/media-video/pipewire/pipewire-0.3.53_p20220705.ebuild |
32 |
@@ -0,0 +1,407 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{8..11} ) |
39 |
+ |
40 |
+inherit flag-o-matic meson-multilib optfeature prefix python-any-r1 systemd udev |
41 |
+ |
42 |
+if [[ ${PV} == 9999 ]]; then |
43 |
+ EGIT_REPO_URI="https://gitlab.freedesktop.org/${PN}/${PN}.git" |
44 |
+ inherit git-r3 |
45 |
+else |
46 |
+ if [[ ${PV} == *_p* ]] ; then |
47 |
+ MY_COMMIT="76350cebefe9bdabe24e9d043b83737547c225d8" |
48 |
+ SRC_URI="https://gitlab.freedesktop.org/pipewire/pipewire/-/archive/${MY_COMMIT}/pipewire-${MY_COMMIT}.tar.bz2 -> ${P}.tar.bz2" |
49 |
+ S="${WORKDIR}"/${PN}-${MY_COMMIT} |
50 |
+ else |
51 |
+ SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/${PV}/${P}.tar.gz" |
52 |
+ fi |
53 |
+ |
54 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" |
55 |
+fi |
56 |
+ |
57 |
+DESCRIPTION="Multimedia processing graphs" |
58 |
+HOMEPAGE="https://pipewire.org/" |
59 |
+ |
60 |
+LICENSE="MIT LGPL-2.1+ GPL-2" |
61 |
+# ABI was broken in 0.3.42 for https://gitlab.freedesktop.org/pipewire/wireplumber/-/issues/49 |
62 |
+SLOT="0/0.4" |
63 |
+IUSE="bluetooth doc echo-cancel extra gstreamer jack-client jack-sdk lv2 pipewire-alsa |
64 |
+sound-server ssl system-service systemd test udev v4l X zeroconf" |
65 |
+ |
66 |
+# Once replacing system JACK libraries is possible, it's likely that |
67 |
+# jack-client IUSE will need blocking to avoid users accidentally |
68 |
+# configuring their systems to send PW sink output to the emulated |
69 |
+# JACK's sink - doing so is likely to yield no audio, cause a CPU |
70 |
+# cycles consuming loop (and may even cause GUI crashes)! |
71 |
+ |
72 |
+# TODO: There should be "sound-server? ( || ( alsa bluetooth ) )" here, but ALSA is always enabled |
73 |
+# TODO: Pulseaudio alsa plugin performs runtime check that pulseaudio server connection will work |
74 |
+# which provides adequate guarantee that alsa-lib will be able to provide audio services. |
75 |
+# If that works, pulseaudio defaults are loaded into alsa-lib runtime replacing default PCM and CTL. |
76 |
+# When pipewire-alsa will be able to perform similar check, pipewire-alsa can be enabled unconditionally. |
77 |
+REQUIRED_USE=" |
78 |
+ jack-sdk? ( !jack-client ) |
79 |
+ system-service? ( systemd ) |
80 |
+ !sound-server? ( !pipewire-alsa ) |
81 |
+" |
82 |
+ |
83 |
+RESTRICT="!test? ( test )" |
84 |
+ |
85 |
+BDEPEND=" |
86 |
+ >=dev-util/meson-0.59 |
87 |
+ virtual/pkgconfig |
88 |
+ ${PYTHON_DEPS} |
89 |
+ $(python_gen_any_dep 'dev-python/docutils[${PYTHON_USEDEP}]') |
90 |
+ doc? ( |
91 |
+ app-doc/doxygen |
92 |
+ media-gfx/graphviz |
93 |
+ ) |
94 |
+" |
95 |
+RDEPEND=" |
96 |
+ acct-group/audio |
97 |
+ media-libs/alsa-lib |
98 |
+ sys-apps/dbus[${MULTILIB_USEDEP}] |
99 |
+ sys-libs/readline:= |
100 |
+ sys-libs/ncurses:=[unicode(+)] |
101 |
+ virtual/libintl[${MULTILIB_USEDEP}] |
102 |
+ bluetooth? ( |
103 |
+ media-libs/fdk-aac |
104 |
+ media-libs/libldac |
105 |
+ media-libs/libfreeaptx |
106 |
+ media-libs/sbc |
107 |
+ >=net-wireless/bluez-4.101:= |
108 |
+ virtual/libusb:1 |
109 |
+ ) |
110 |
+ echo-cancel? ( media-libs/webrtc-audio-processing:0 ) |
111 |
+ extra? ( |
112 |
+ >=media-libs/libsndfile-1.0.20 |
113 |
+ ) |
114 |
+ gstreamer? ( |
115 |
+ >=dev-libs/glib-2.32.0:2 |
116 |
+ >=media-libs/gstreamer-1.10.0:1.0 |
117 |
+ media-libs/gst-plugins-base:1.0 |
118 |
+ ) |
119 |
+ jack-client? ( >=media-sound/jack2-1.9.10:2[dbus] ) |
120 |
+ jack-sdk? ( |
121 |
+ !media-sound/jack-audio-connection-kit |
122 |
+ !media-sound/jack2 |
123 |
+ ) |
124 |
+ lv2? ( media-libs/lilv ) |
125 |
+ pipewire-alsa? ( |
126 |
+ >=media-libs/alsa-lib-1.1.7[${MULTILIB_USEDEP}] |
127 |
+ ) |
128 |
+ sound-server? ( |
129 |
+ !media-sound/pulseaudio[daemon(+)] |
130 |
+ !media-sound/pulseaudio-daemon |
131 |
+ ) |
132 |
+ ssl? ( dev-libs/openssl:= ) |
133 |
+ systemd? ( sys-apps/systemd ) |
134 |
+ system-service? ( |
135 |
+ acct-user/pipewire |
136 |
+ acct-group/pipewire |
137 |
+ ) |
138 |
+ udev? ( virtual/libudev[${MULTILIB_USEDEP}] ) |
139 |
+ v4l? ( media-libs/libv4l ) |
140 |
+ X? ( |
141 |
+ media-libs/libcanberra |
142 |
+ x11-libs/libX11 |
143 |
+ x11-libs/libXfixes |
144 |
+ ) |
145 |
+ zeroconf? ( net-dns/avahi ) |
146 |
+" |
147 |
+ |
148 |
+DEPEND="${RDEPEND}" |
149 |
+ |
150 |
+# TODO: Consider use cases where pipewire is not used for driving audio |
151 |
+# Doing so with WirePlumber currently involves editing Lua scripts |
152 |
+PDEPEND=">=media-video/wireplumber-0.4.8-r3" |
153 |
+ |
154 |
+# Present RDEPEND that are currently always disabled due to the PW |
155 |
+# code using them being required to be disabled by Gentoo guidelines |
156 |
+# (i.e. developer binaries not meant for users) and unready code |
157 |
+# media-video/ffmpeg:= |
158 |
+# media-libs/libsdl2 |
159 |
+# >=media-libs/vulkan-loader-1.1.69 |
160 |
+# |
161 |
+# Ditto for DEPEND |
162 |
+# >=dev-util/vulkan-headers-1.1.69 |
163 |
+ |
164 |
+DOCS=( {README,INSTALL}.md NEWS ) |
165 |
+ |
166 |
+PATCHES=( |
167 |
+ "${FILESDIR}"/${PN}-0.3.25-enable-failed-mlock-warning.patch |
168 |
+) |
169 |
+ |
170 |
+# limitsdfile related code taken from =sys-auth/realtime-base-0.1 |
171 |
+# with changes as necessary. |
172 |
+limitsdfile=40-${PN}.conf |
173 |
+ |
174 |
+python_check_deps() { |
175 |
+ has_version -b "dev-python/docutils[${PYTHON_USEDEP}]" |
176 |
+} |
177 |
+ |
178 |
+src_prepare() { |
179 |
+ default |
180 |
+ |
181 |
+ einfo "Generating ${limitsdfile}" |
182 |
+ cat > ${limitsdfile} <<- EOF || die |
183 |
+ # Start of ${limitsdfile} from ${P} |
184 |
+ |
185 |
+ @audio - memlock 256 |
186 |
+ |
187 |
+ $(use system-service && { |
188 |
+ echo @pipewire - rtprio 95 |
189 |
+ echo @pipewire - nice -19 |
190 |
+ echo @pipewire - memlock 4194304 |
191 |
+ }) |
192 |
+ |
193 |
+ # End of ${limitsdfile} from ${P} |
194 |
+ EOF |
195 |
+} |
196 |
+ |
197 |
+multilib_src_configure() { |
198 |
+ # https://bugs.gentoo.org/838301 |
199 |
+ filter-flags -fno-semantic-interposition |
200 |
+ |
201 |
+ local emesonargs=( |
202 |
+ -Ddocdir="${EPREFIX}"/usr/share/doc/${PF} |
203 |
+ |
204 |
+ $(meson_native_use_feature zeroconf avahi) |
205 |
+ $(meson_native_use_feature doc docs) |
206 |
+ $(meson_native_enabled examples) # TODO: Figure out if this is still important now that media-session gone |
207 |
+ $(meson_native_enabled man) |
208 |
+ $(meson_feature test tests) |
209 |
+ -Dinstalled_tests=disabled # Matches upstream; Gentoo never installs tests |
210 |
+ $(meson_native_use_feature gstreamer) |
211 |
+ $(meson_native_use_feature gstreamer gstreamer-device-provider) |
212 |
+ $(meson_native_use_feature systemd) |
213 |
+ |
214 |
+ $(meson_native_use_feature system-service systemd-system-service) |
215 |
+ -Dsystemd-system-unit-dir="$(systemd_get_systemunitdir)" |
216 |
+ -Dsystemd-user-unit-dir="$(systemd_get_userunitdir)" |
217 |
+ |
218 |
+ $(meson_native_use_feature systemd systemd-user-service) |
219 |
+ $(meson_feature pipewire-alsa) # Allows integrating ALSA apps into PW graph |
220 |
+ -Dspa-plugins=enabled |
221 |
+ -Dalsa=enabled # Allows using kernel ALSA for sound I/O (NOTE: media-session is gone so IUSE=alsa/spa_alsa/alsa-backend might be possible) |
222 |
+ -Daudiomixer=enabled # Matches upstream |
223 |
+ -Daudioconvert=enabled # Matches upstream |
224 |
+ $(meson_native_use_feature bluetooth bluez5) |
225 |
+ $(meson_native_use_feature bluetooth bluez5-backend-hsp-native) |
226 |
+ $(meson_native_use_feature bluetooth bluez5-backend-hfp-native) |
227 |
+ $(meson_native_use_feature bluetooth bluez5-backend-ofono) |
228 |
+ $(meson_native_use_feature bluetooth bluez5-backend-hsphfpd) |
229 |
+ $(meson_native_use_feature bluetooth bluez5-codec-aac) |
230 |
+ $(meson_native_use_feature bluetooth bluez5-codec-aptx) |
231 |
+ $(meson_native_use_feature bluetooth bluez5-codec-ldac) |
232 |
+ $(meson_native_use_feature bluetooth libusb) # At least for now only used by bluez5 native (quirk detection of adapters) |
233 |
+ $(meson_native_use_feature echo-cancel echo-cancel-webrtc) #807889 |
234 |
+ # Not yet packaged. |
235 |
+ -Dbluez5-codec-lc3plus=disabled |
236 |
+ -Dcontrol=enabled # Matches upstream |
237 |
+ -Daudiotestsrc=enabled # Matches upstream |
238 |
+ -Dffmpeg=disabled # Disabled by upstream and no major developments to spa/plugins/ffmpeg/ since May 2020 |
239 |
+ -Dpipewire-jack=enabled # Allows integrating JACK apps into PW graph |
240 |
+ $(meson_native_use_feature jack-client jack) # Allows PW to act as a JACK client |
241 |
+ $(meson_use jack-sdk jack-devel) |
242 |
+ $(usex jack-sdk "-Dlibjack-path=${EPREFIX}/usr/$(get_libdir)" '') |
243 |
+ -Dsupport=enabled # Miscellaneous/common plugins, such as null sink |
244 |
+ -Devl=disabled # Matches upstream |
245 |
+ -Dtest=disabled # fakesink and fakesource plugins |
246 |
+ $(meson_native_use_feature lv2) |
247 |
+ $(meson_native_use_feature v4l v4l2) |
248 |
+ -Dlibcamera=disabled # libcamera is not in Portage tree |
249 |
+ $(meson_native_use_feature ssl raop) |
250 |
+ -Dvideoconvert=enabled # Matches upstream |
251 |
+ -Dvideotestsrc=enabled # Matches upstream |
252 |
+ -Dvolume=enabled # Matches upstream |
253 |
+ -Dvulkan=disabled # Uses pre-compiled Vulkan compute shader to provide a CGI video source (dev thing; disabled by upstream) |
254 |
+ $(meson_native_use_feature extra pw-cat) |
255 |
+ $(meson_feature udev) |
256 |
+ -Dudevrulesdir="${EPREFIX}$(get_udevdir)/rules.d" |
257 |
+ -Dsdl2=disabled # Controls SDL2 dependent code (currently only examples when -Dinstalled_tests=enabled which we never install) |
258 |
+ $(meson_native_use_feature extra sndfile) # Enables libsndfile dependent code (currently only pw-cat) |
259 |
+ -Dsession-managers="[]" # All available session managers are now their own projects, so there's nothing to build |
260 |
+ |
261 |
+ # Just for bell sounds in X11 right now. |
262 |
+ $(meson_native_use_feature X x11) |
263 |
+ $(meson_native_use_feature X x11-xfixes) |
264 |
+ $(meson_native_use_feature X libcanberra) |
265 |
+ ) |
266 |
+ |
267 |
+ meson_src_configure |
268 |
+} |
269 |
+ |
270 |
+multilib_src_install() { |
271 |
+ # Our custom DOCS do not exist in multilib source directory |
272 |
+ DOCS= meson_src_install |
273 |
+} |
274 |
+ |
275 |
+multilib_src_install_all() { |
276 |
+ einstalldocs |
277 |
+ |
278 |
+ insinto /etc/security/limits.d |
279 |
+ doins ${limitsdfile} |
280 |
+ |
281 |
+ if use pipewire-alsa; then |
282 |
+ dodir /etc/alsa/conf.d |
283 |
+ |
284 |
+ # Install pipewire conf loader hook |
285 |
+ insinto /usr/share/alsa/alsa.conf.d |
286 |
+ doins "${FILESDIR}"/99-pipewire-default-hook.conf |
287 |
+ eprefixify "${ED}"/usr/share/alsa/alsa.conf.d/99-pipewire-default-hook.conf |
288 |
+ |
289 |
+ # These will break if someone has /etc that is a symbolic link to a subfolder! See #724222 |
290 |
+ # And the current dosym8 -r implementation is likely affected by the same issue, too. |
291 |
+ dosym ../../../usr/share/alsa/alsa.conf.d/50-pipewire.conf /etc/alsa/conf.d/50-pipewire.conf |
292 |
+ dosym ../../../usr/share/alsa/alsa.conf.d/99-pipewire-default-hook.conf /etc/alsa/conf.d/99-pipewire-default-hook.conf |
293 |
+ fi |
294 |
+ |
295 |
+ # Enable required wireplumber alsa and bluez monitors |
296 |
+ if use sound-server; then |
297 |
+ dodir /etc/wireplumber/main.lua.d |
298 |
+ echo "alsa_monitor.enabled = true" > "${ED}"/etc/wireplumber/main.lua.d/89-gentoo-sound-server-enable-alsa-monitor.lua || die |
299 |
+ |
300 |
+ dodir /etc/wireplumber/bluetooth.lua.d |
301 |
+ echo "bluez_monitor.enabled = true" > "${ED}"/etc/wireplumber/bluetooth.lua.d/89-gentoo-sound-server-enable-bluez-monitor.lua || die |
302 |
+ fi |
303 |
+ |
304 |
+ if ! use systemd; then |
305 |
+ insinto /etc/xdg/autostart |
306 |
+ newins "${FILESDIR}"/pipewire.desktop-r1 pipewire.desktop |
307 |
+ |
308 |
+ exeinto /usr/bin |
309 |
+ newexe "${FILESDIR}"/gentoo-pipewire-launcher.in gentoo-pipewire-launcher |
310 |
+ |
311 |
+ # Disable pipewire-pulse if sound-server is disabled. |
312 |
+ if ! use sound-server ; then |
313 |
+ sed -i -s '/pipewire -c pipewire-pulse.conf/s/^/#/' "${ED}"/usr/bin/gentoo-pipewire-launcher || die |
314 |
+ fi |
315 |
+ |
316 |
+ eprefixify "${ED}"/usr/bin/gentoo-pipewire-launcher |
317 |
+ fi |
318 |
+} |
319 |
+ |
320 |
+pkg_postinst() { |
321 |
+ use udev && udev_reload |
322 |
+ |
323 |
+ elog "It is recommended to raise RLIMIT_MEMLOCK to 256 for users" |
324 |
+ elog "using PipeWire. Do it either manually or add yourself" |
325 |
+ elog "to the 'audio' group:" |
326 |
+ elog |
327 |
+ elog " usermod -aG audio <youruser>" |
328 |
+ elog |
329 |
+ |
330 |
+ local ver |
331 |
+ for ver in ${REPLACING_VERSIONS} ; do |
332 |
+ if ver_test ${ver} -le 0.3.53-r1 && ! use sound-server ; then |
333 |
+ ewarn "USE=sound-server is disabled! If you want PipeWire to provide" |
334 |
+ ewarn "your sound, please enable it. See the wiki at" |
335 |
+ ewarn "https://wiki.gentoo.org/wiki/PipeWire#Replacing_PulseAudio" |
336 |
+ ewarn "for more details." |
337 |
+ |
338 |
+ break |
339 |
+ fi |
340 |
+ done |
341 |
+ |
342 |
+ if ! use jack-sdk; then |
343 |
+ elog "JACK emulation is incomplete and not all programs will work. PipeWire's" |
344 |
+ elog "alternative libraries have been installed to a non-default location." |
345 |
+ elog "To use them, put pw-jack <application> before every JACK application." |
346 |
+ elog "When using pw-jack, do not run jackd/jackdbus. However, a virtual/jack" |
347 |
+ elog "provider is still needed to compile the JACK applications themselves." |
348 |
+ elog |
349 |
+ fi |
350 |
+ |
351 |
+ if use systemd; then |
352 |
+ elog "When switching from PulseAudio, you may need to disable PulseAudio:" |
353 |
+ elog |
354 |
+ elog " systemctl --user disable pulseaudio.service pulseaudio.socket" |
355 |
+ elog |
356 |
+ elog "To use PipeWire, the user units must be manually enabled" |
357 |
+ elog "by running this command as each user you use for desktop activities:" |
358 |
+ elog |
359 |
+ elog " systemctl --user enable pipewire.socket pipewire-pulse.socket" |
360 |
+ elog |
361 |
+ elog "A reboot is recommended to avoid interferences from still running" |
362 |
+ elog "PulseAudio daemon." |
363 |
+ elog |
364 |
+ elog "Both new users and those upgrading need to enable WirePlumber" |
365 |
+ elog "for relevant users:" |
366 |
+ elog |
367 |
+ elog " systemctl --user disable pipewire-media-session.service" |
368 |
+ elog " systemctl --user --force enable wireplumber.service" |
369 |
+ elog |
370 |
+ elog "Root user may replace --user with --global to change system default" |
371 |
+ elog "configuration for all of the above commands." |
372 |
+ else |
373 |
+ ewarn "PipeWire daemon startup has been moved to a launcher script!" |
374 |
+ ewarn "Make sure that ${EROOT}/etc/pipewire/pipewire.conf either does not exist or no" |
375 |
+ ewarn "longer is set to start a session manager or PulseAudio compatibility daemon (all" |
376 |
+ ewarn "lines similar to '{ path = /usr/bin/pipewire*' should be commented out)" |
377 |
+ ewarn |
378 |
+ ewarn "Those manually starting /usr/bin/pipewire via .xinitrc or similar _must_ from" |
379 |
+ ewarn "now on start ${EROOT}/usr/bin/gentoo-pipewire-launcher instead! It is highly" |
380 |
+ ewarn "advised that a D-Bus user session is set up before starting the script." |
381 |
+ ewarn |
382 |
+ |
383 |
+ if use sound-server && ( has_version 'media-sound/pulseaudio[daemon]' || has_version 'media-sound/pulseaudio-daemon' ) ; then |
384 |
+ elog "This ebuild auto-enables PulseAudio replacement. Because of that, users" |
385 |
+ elog "are recommended to edit pulseaudio client configuration files:" |
386 |
+ elog "${EROOT}/etc/pulse/client.conf and ${EROOT}/etc/pulse/client.conf.d/enable-autospawn.conf" |
387 |
+ elog "if it exists, and disable autospawning of the original daemon by setting:" |
388 |
+ elog |
389 |
+ elog " autospawn = no" |
390 |
+ elog |
391 |
+ elog "Please note that the semicolon (;) must _NOT_ be at the beginning of the line!" |
392 |
+ elog |
393 |
+ elog "Alternatively, if replacing PulseAudio daemon is not desired, edit" |
394 |
+ elog "${EROOT}/usr/bin/gentoo-pipewire-launcher by commenting out the relevant" |
395 |
+ elog "command:" |
396 |
+ elog |
397 |
+ elog "#${EROOT}/usr/bin/pipewire -c pipewire-pulse.conf &" |
398 |
+ elog |
399 |
+ fi |
400 |
+ elog "NOTE:" |
401 |
+ elog "Starting with PipeWire-0.3.30, this package is no longer installing its config" |
402 |
+ elog "into ${EROOT}/etc/pipewire by default. In case you need to change" |
403 |
+ elog "its config, please start by copying default config from ${EROOT}/usr/share/pipewire" |
404 |
+ elog "and just override the sections you want to change." |
405 |
+ fi |
406 |
+ elog |
407 |
+ |
408 |
+ elog "For latest tips and tricks, troubleshooting information and documentation" |
409 |
+ elog "in general, please refer to https://wiki.gentoo.org/wiki/PipeWire" |
410 |
+ elog |
411 |
+ |
412 |
+ optfeature_header "The following can be installed for optional runtime features:" |
413 |
+ optfeature "restricted realtime capabilities via D-Bus" sys-auth/rtkit |
414 |
+ |
415 |
+ if use sound-server && ! use pipewire-alsa; then |
416 |
+ optfeature "ALSA plugin to use PulseAudio interface for output" "media-plugins/alsa-plugins[pulseaudio]" |
417 |
+ fi |
418 |
+ |
419 |
+ if has_version 'net-misc/ofono' ; then |
420 |
+ ewarn "Native backend has become default. Please disable oFono via:" |
421 |
+ if systemd_is_booted ; then |
422 |
+ ewarn "systemctl disable ofono" |
423 |
+ else |
424 |
+ ewarn "rc-update delete ofono" |
425 |
+ fi |
426 |
+ ewarn |
427 |
+ fi |
428 |
+ |
429 |
+ if use system-service; then |
430 |
+ ewarn |
431 |
+ ewarn "WARNING: you have enabled the system-service USE flag, which installs" |
432 |
+ ewarn "the system-wide systemd units that enable PipeWire to run as a system" |
433 |
+ ewarn "service. This is more than likely NOT what you want. You are strongly" |
434 |
+ ewarn "advised not to enable this mode and instead stick with systemd user" |
435 |
+ ewarn "units. The default configuration files will likely not work out of" |
436 |
+ ewarn "box, and you are on your own with configuration." |
437 |
+ ewarn |
438 |
+ fi |
439 |
+} |