summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2015-09-10 22:50:02 +0200
committerPacho Ramos <pacho@gentoo.org>2015-09-10 22:51:35 +0200
commitf47585cb5b58f4e7aebebe93ca3a33fd83e4a3f8 (patch)
tree9eb6c8ef4c9d3e44a22d5ad2165e0b9cd1c26854 /media-sound/pulseaudio
parentdev-python/yappi: fixup previous commit (diff)
downloadgentoo-f47585cb5b58f4e7aebebe93ca3a33fd83e4a3f8.tar.gz
gentoo-f47585cb5b58f4e7aebebe93ca3a33fd83e4a3f8.tar.bz2
gentoo-f47585cb5b58f4e7aebebe93ca3a33fd83e4a3f8.zip
media-sound/pulseaudio: HDMI sound can get lost if people doesn't reboot because we need to run udevadm control --reload when updating (http://www.freedesktop.org/wiki/Software/PulseAudio/Notes/6.0/)
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'media-sound/pulseaudio')
-rw-r--r--media-sound/pulseaudio/pulseaudio-6.0.ebuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/media-sound/pulseaudio/pulseaudio-6.0.ebuild b/media-sound/pulseaudio/pulseaudio-6.0.ebuild
index 81de57209e7e..8ae760eafdae 100644
--- a/media-sound/pulseaudio/pulseaudio-6.0.ebuild
+++ b/media-sound/pulseaudio/pulseaudio-6.0.ebuild
@@ -379,4 +379,11 @@ pkg_postinst() {
elog "The libsamplerate based resamplers are now deprecated, because they offer no"
elog "particular advantage over speex. Upstream suggests disabling them."
fi
+
+ # Needed for pulseaudio-6.0 update from older versions
+ if use udev; then
+ if ! version_is_at_least 6.0 ${REPLACING_VERSIONS}; then
+ udevadm control --reload && udevadm trigger
+ fi
+ fi
}