commit:     39adfa4bf560f621765840bb484e29fd03eab350
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 13 12:31:25 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jun 13 12:31:29 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39adfa4b

net-misc/spice-gtk: conditionalise fowners for usbredir

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

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

diff --git a/net-misc/spice-gtk/spice-gtk-0.40.ebuild 
b/net-misc/spice-gtk/spice-gtk-0.40.ebuild
index 612d9476b1d0..fc8e35b738b0 100644
--- a/net-misc/spice-gtk/spice-gtk-0.40.ebuild
+++ b/net-misc/spice-gtk/spice-gtk-0.40.ebuild
@@ -125,9 +125,11 @@ src_configure() {
 src_install() {
        meson_src_install
 
-       # bug #775554
-       fowners root:root /usr/libexec/spice-client-glib-usb-acl-helper
-       fperms 4755 /usr/libexec/spice-client-glib-usb-acl-helper
+       if use usbredir; then
+               # bug #775554
+               fowners root:root /usr/libexec/spice-client-glib-usb-acl-helper
+               fperms 4755 /usr/libexec/spice-client-glib-usb-acl-helper
+       fi
 
        make_desktop_entry spicy Spicy "utilities-terminal" 
"Network;RemoteAccess;"
        readme.gentoo_create_doc

diff --git a/net-misc/spice-gtk/spice-gtk-9999.ebuild 
b/net-misc/spice-gtk/spice-gtk-9999.ebuild
index 7e642d9ecb49..bfa932d1e132 100644
--- a/net-misc/spice-gtk/spice-gtk-9999.ebuild
+++ b/net-misc/spice-gtk/spice-gtk-9999.ebuild
@@ -125,9 +125,11 @@ src_configure() {
 src_install() {
        meson_src_install
 
-       # bug #775554
-       fowners root:root /usr/libexec/spice-client-glib-usb-acl-helper
-       fperms 4755 /usr/libexec/spice-client-glib-usb-acl-helper
+       if use usbredir; then
+               # bug #775554
+               fowners root:root /usr/libexec/spice-client-glib-usb-acl-helper
+               fperms 4755 /usr/libexec/spice-client-glib-usb-acl-helper
+       fi
 
        make_desktop_entry spicy Spicy "utilities-terminal" 
"Network;RemoteAccess;"
        readme.gentoo_create_doc

Reply via email to