commit:     3a7fde3ec6d33dc8ba8c1a7b472b2435869055d9
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 13 22:15:31 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jun 13 22:25:16 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a7fde3e

net-misc/spice-gtk: fix usbredir conditional deux

Closes: https://bugs.gentoo.org/851657
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/spice-gtk/spice-gtk-0.40.ebuild | 5 +++--
 net-misc/spice-gtk/spice-gtk-9999.ebuild | 7 ++++---
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/net-misc/spice-gtk/spice-gtk-0.40.ebuild 
b/net-misc/spice-gtk/spice-gtk-0.40.ebuild
index fc8e35b738b0..357e2deefa6d 100644
--- a/net-misc/spice-gtk/spice-gtk-0.40.ebuild
+++ b/net-misc/spice-gtk/spice-gtk-0.40.ebuild
@@ -125,8 +125,8 @@ src_configure() {
 src_install() {
        meson_src_install
 
-       if use usbredir; then
-               # bug #775554
+       if use usbredir && use policykit; then
+               # bug #775554 (and bug #851657)
                fowners root:root /usr/libexec/spice-client-glib-usb-acl-helper
                fperms 4755 /usr/libexec/spice-client-glib-usb-acl-helper
        fi
@@ -137,5 +137,6 @@ src_install() {
 
 pkg_postinst() {
        xdg_pkg_postinst
+
        optfeature "Sound support (via pulseaudio)" 
media-plugins/gst-plugins-pulse
 }

diff --git a/net-misc/spice-gtk/spice-gtk-9999.ebuild 
b/net-misc/spice-gtk/spice-gtk-9999.ebuild
index bfa932d1e132..357e2deefa6d 100644
--- a/net-misc/spice-gtk/spice-gtk-9999.ebuild
+++ b/net-misc/spice-gtk/spice-gtk-9999.ebuild
@@ -94,7 +94,7 @@ python_check_deps() {
 src_prepare() {
        default
 
-       use vala && vala_src_prepare
+       use vala && vala_setup
 }
 
 src_configure() {
@@ -125,8 +125,8 @@ src_configure() {
 src_install() {
        meson_src_install
 
-       if use usbredir; then
-               # bug #775554
+       if use usbredir && use policykit; then
+               # bug #775554 (and bug #851657)
                fowners root:root /usr/libexec/spice-client-glib-usb-acl-helper
                fperms 4755 /usr/libexec/spice-client-glib-usb-acl-helper
        fi
@@ -137,5 +137,6 @@ src_install() {
 
 pkg_postinst() {
        xdg_pkg_postinst
+
        optfeature "Sound support (via pulseaudio)" 
media-plugins/gst-plugins-pulse
 }

Reply via email to