Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/pipewire/
Date: Thu, 23 Sep 2021 23:04:53
Message-Id: 1632438142.ff521b5b8ddc11fe0fe516cf3764f1b93592ad2f.sam@gentoo
1 commit: ff521b5b8ddc11fe0fe516cf3764f1b93592ad2f
2 Author: Niklāvs Koļesņikovs <89q1r14hd <AT> relay <DOT> firefox <DOT> com>
3 AuthorDate: Thu Sep 23 22:10:26 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 23 23:02:22 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff521b5b
7
8 media-video/pipewire: instruct users to disable oFono
9
10 Upstream has changed the logic to no longer automatically use oFono
11 if it's found running. This is because other Linux distributions had
12 it running by default but not properly configured, which would also
13 break PipeWire's Bluetooth support. Unfortunately, this means that now
14 a running oFono is at risk of conflicting with the native backend,
15 which is the new default behavior.
16
17 Since most use cases are expected to work with the native backend, the
18 easiest solution is to advise users to disable oFono service, and that
19 is what this PR does.
20
21 Thanks-to: Jannik Glückert <jannik.glueckert <AT> gmail.com> (systemd inst.)
22 Thanks-to: Sam James <sam <AT> gentoo.org> (OpenRC instructions)
23 Signed-off-by: Niklāvs Koļesņikovs <89q1r14hd <AT> relay.firefox.com>
24 Closes: https://github.com/gentoo/gentoo/pull/22380
25 Signed-off-by: Sam James <sam <AT> gentoo.org>
26
27 media-video/pipewire/pipewire-9999.ebuild | 14 +++++++++-----
28 1 file changed, 9 insertions(+), 5 deletions(-)
29
30 diff --git a/media-video/pipewire/pipewire-9999.ebuild b/media-video/pipewire/pipewire-9999.ebuild
31 index c601ceab253..7725dfa300f 100644
32 --- a/media-video/pipewire/pipewire-9999.ebuild
33 +++ b/media-video/pipewire/pipewire-9999.ebuild
34 @@ -5,7 +5,7 @@ EAPI="7"
35
36 PYTHON_COMPAT=( python3_{8..10} )
37
38 -inherit meson-multilib optfeature python-any-r1 udev
39 +inherit meson-multilib optfeature python-any-r1 systemd udev
40
41 if [[ ${PV} == 9999 ]]; then
42 EGIT_REPO_URI="https://gitlab.freedesktop.org/${PN}/${PN}.git"
43 @@ -273,9 +273,13 @@ pkg_postinst() {
44 optfeature_header "The following can be installed for optional runtime features:"
45 optfeature "restricted realtime capabilities via D-Bus" sys-auth/rtkit
46
47 - # Once hsphfpd lands in tree, both it and ofono will need to be checked for presence here!
48 - if use bluetooth; then
49 - optfeature "better BT headset support (daemon startup required)" net-misc/ofono
50 - #optfeature "an oFono alternative (not packaged)" foo-bar/hsphfpd
51 + if has_version 'net-misc/ofono' ; then
52 + ewarn "Native backend has become default. Please disable oFono via:"
53 + if systemd_is_booted ; then
54 + ewarn "systemctl disable --now ofono"
55 + else
56 + ewarn "rc-update delete ofono"
57 + fi
58 + ewarn
59 fi
60 }