[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#61576] [PATCH 14/21] gnu: spice-gtk: Enable support for polkit, web
From: |
Maxim Cournoyer |
Subject: |
[bug#61576] [PATCH 14/21] gnu: spice-gtk: Enable support for polkit, webdav and others. |
Date: |
Fri, 17 Feb 2023 12:00:55 -0500 |
* gnu/packages/spice.scm (spice-gtk) [arguments]: Add the correct-polkit-dir
and fake-pkexec phases.
[inputs]: Add acl, cyrus-sasl, libcap-ng, polkit and usbutils.
[propagated-inputs]: Add libcacard and phodav.
---
gnu/packages/spice.scm | 21 +++++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/spice.scm b/gnu/packages/spice.scm
index 1654ae141e..62d1d50e5b 100644
--- a/gnu/packages/spice.scm
+++ b/gnu/packages/spice.scm
@@ -22,6 +22,8 @@
(define-module (gnu packages spice)
#:use-module (gnu packages)
+ #:use-module (gnu packages acl)
+ #:use-module (gnu packages admin)
#:use-module (gnu packages autotools)
#:use-module (gnu packages base)
#:use-module (gnu packages bash)
@@ -39,6 +41,7 @@ (define-module (gnu packages spice)
#:use-module (gnu packages nss)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
+ #:use-module (gnu packages polkit)
#:use-module (gnu packages pulseaudio)
#:use-module (gnu packages python)
#:use-module (gnu packages python-build)
@@ -156,6 +159,13 @@ (define-public spice-gtk
((".*'session.c',.*") "")
(("tests_sources \\+= 'cd-emu.c'" all)
(string-append "# " all)))))
+ (add-before 'configure 'correct-polkit-dir
+ (lambda _
+ (substitute* "meson.build"
+ (("d.get_variable\\(pkgconfig: 'policydir')")
+ (string-append "'" #$output "/share/polkit-1/actions'")))))
+ (add-before 'install 'fake-pkexec
+ (lambda _ (setenv "PKEXEC_UID" "-1")))
(add-after 'install 'wrap-spicy
(lambda* (#:key outputs #:allow-other-keys)
(wrap-program (search-input-file outputs "bin/spicy")
@@ -170,13 +180,18 @@ (define-public spice-gtk
python-six
vala))
(inputs
- (list glib-networking
+ (list cyrus-sasl
+ glib-networking
gobject-introspection
json-glib
+ acl
+ libcap-ng
libepoxy
libxcb
mesa
- pulseaudio))
+ polkit
+ pulseaudio
+ usbutils))
(propagated-inputs
(list gstreamer
gst-plugins-base
@@ -187,8 +202,10 @@ (define-public spice-gtk
gtk+
openssl-1.1
opus
+ libcacard
libjpeg-turbo
lz4
+ phodav
pixman
usbredir))
(synopsis "Gtk client and libraries for SPICE remote desktop servers")
--
2.39.1
- [bug#61576] [PATCH 09/21] gnu: libcacard: Remove obsolete configure flags., (continued)
- [bug#61576] [PATCH 09/21] gnu: libcacard: Remove obsolete configure flags., Maxim Cournoyer, 2023/02/17
- [bug#61576] [PATCH 03/21] gnu: spice-gtk: Use gexps., Maxim Cournoyer, 2023/02/17
- [bug#61576] [PATCH 12/21] gnu: usbutils: Update to 015., Maxim Cournoyer, 2023/02/17
- [bug#61576] [PATCH 15/21] gnu: osinfo-db: Use libsoup 3., Maxim Cournoyer, 2023/02/17
- [bug#61576] [PATCH 04/21] gnu: spice-gtk: Update to 0.42., Maxim Cournoyer, 2023/02/17
- [bug#61576] [PATCH 13/21] gnu: phodav: Propagate glib, libsoup and libxml2., Maxim Cournoyer, 2023/02/17
- [bug#61576] [PATCH 18/21] services: desktop: Extract a new gnome-package procedure., Maxim Cournoyer, 2023/02/17
- [bug#61576] [PATCH 20/21] gnu: gnome-boxes: Mention extra configuration requirements., Maxim Cournoyer, 2023/02/17
- [bug#61576] [PATCH 10/21] gnu: spice: Update to 0.15.1., Maxim Cournoyer, 2023/02/17
- [bug#61576] [PATCH 05/21] gnu: spice-gtk: Propagate libjpeg-turbo, lz4, opus, and usbredir., Maxim Cournoyer, 2023/02/17
- [bug#61576] [PATCH 14/21] gnu: spice-gtk: Enable support for polkit, webdav and others.,
Maxim Cournoyer <=
- [bug#61576] [PATCH 02/21] gnu: spice-gtk: Remove input labels., Maxim Cournoyer, 2023/02/17
- [bug#61576] [PATCH 19/21] services: gnome-desktop-service-type: Extend setuid-program-service-type., Maxim Cournoyer, 2023/02/17
- [bug#61576] [PATCH 11/21] gnu: spice-vdagent: Update to 0.22.1., Maxim Cournoyer, 2023/02/17
- [bug#61576] [PATCH 16/21] gnu: gnome-boxes: Update to 43.3., Maxim Cournoyer, 2023/02/17
- [bug#61576] [PATCH 07/21] gnu: usbredir: Update to 0.13.0., Maxim Cournoyer, 2023/02/17
- [bug#61576] [PATCH 17/21] services: gnome-polkit-settings: Add spice-gtk., Maxim Cournoyer, 2023/02/17
- [bug#61576] [PATCH 21/21] gnu: spice-gtk: Adjust the default file name of the ACL helper binary., Maxim Cournoyer, 2023/02/17
- bug#61576: [PATCH 00/21] Allow USB redirection as an unprivileged user in in GNOME Boxes, Maxim Cournoyer, 2023/02/25