media-sound/pulseaudio: HDMI sound can get lost if people doesn't reboot because...
authorPacho Ramos <pacho@gentoo.org>
Thu, 10 Sep 2015 20:50:02 +0000 (22:50 +0200)
committerPacho Ramos <pacho@gentoo.org>
Thu, 10 Sep 2015 20:51:35 +0000 (22:51 +0200)
Package-Manager: portage-2.2.20.1

media-sound/pulseaudio/pulseaudio-6.0.ebuild

index 81de57209e7e42ed0d2375371ed96dc75a5290ff..8ae760eafdae5355e37f66b8d93fc7ef1912c887 100644 (file)
@@ -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
 }