1 |
commit: d5453db8eeeee7aec0b61f772a7b76e3400f1d8b |
2 |
Author: Igor V. Kovalenko <igor.v.kovalenko <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Apr 26 21:55:30 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 28 15:59:52 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5453db8 |
7 |
|
8 |
media-sound/pulseaudio-daemon: Daemon part of split autospawn implementation |
9 |
|
10 |
Now that libpulse has daemon autospawn disabled, enable it back |
11 |
for systems without systemd when pulseaudio-daemon is installed. |
12 |
|
13 |
Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko <AT> gmail.com> |
14 |
Closes: https://github.com/gentoo/gentoo/pull/25207 |
15 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
16 |
|
17 |
media-sound/pulseaudio-daemon/files/enable-autospawn.conf | 2 ++ |
18 |
...io-daemon-15.99.1.ebuild => pulseaudio-daemon-15.99.1-r1.ebuild} | 6 ++++++ |
19 |
2 files changed, 8 insertions(+) |
20 |
|
21 |
diff --git a/media-sound/pulseaudio-daemon/files/enable-autospawn.conf b/media-sound/pulseaudio-daemon/files/enable-autospawn.conf |
22 |
new file mode 100644 |
23 |
index 000000000000..5681459a32cd |
24 |
--- /dev/null |
25 |
+++ b/media-sound/pulseaudio-daemon/files/enable-autospawn.conf |
26 |
@@ -0,0 +1,2 @@ |
27 |
+# Enable automatic spawning of pulseaudio daemon |
28 |
+autospawn = yes |
29 |
|
30 |
diff --git a/media-sound/pulseaudio-daemon/pulseaudio-daemon-15.99.1.ebuild b/media-sound/pulseaudio-daemon/pulseaudio-daemon-15.99.1-r1.ebuild |
31 |
similarity index 97% |
32 |
rename from media-sound/pulseaudio-daemon/pulseaudio-daemon-15.99.1.ebuild |
33 |
rename to media-sound/pulseaudio-daemon/pulseaudio-daemon-15.99.1-r1.ebuild |
34 |
index 71655e65efbd..19134e3b2752 100644 |
35 |
--- a/media-sound/pulseaudio-daemon/pulseaudio-daemon-15.99.1.ebuild |
36 |
+++ b/media-sound/pulseaudio-daemon/pulseaudio-daemon-15.99.1-r1.ebuild |
37 |
@@ -272,6 +272,12 @@ src_install() { |
38 |
|| die |
39 |
fi |
40 |
|
41 |
+ # Only enable autospawning pulseaudio daemon on systems without systemd |
42 |
+ if ! use systemd; then |
43 |
+ insinto /etc/pulse/client.conf.d |
44 |
+ newins "${FILESDIR}/enable-autospawn.conf" "enable-autospawn.conf" |
45 |
+ fi |
46 |
+ |
47 |
find "${ED}" \( -name '*.a' -o -name '*.la' \) -delete || die |
48 |
} |