From: Pacho Ramos Date: Thu, 10 Sep 2015 20:50:02 +0000 (+0200) Subject: media-sound/pulseaudio: HDMI sound can get lost if people doesn't reboot because... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f47585cb5b58f4e7aebebe93ca3a33fd83e4a3f8;p=gentoo.git media-sound/pulseaudio: HDMI sound can get lost if people doesn't reboot because we need to run udevadm control --reload when updating (freedesktop.org/wiki/Software/PulseAudio/Notes/6.0/) Package-Manager: portage-2.2.20.1 --- 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 }