* gnu/packages/spice.scm: Add it. * gnu/packages/patches/spice-vdagent-localstatedir.patch: Add it. --- .../patches/spice-vdagent-localstatedir.patch | 13 ++++++++ gnu/packages/spice.scm | 35 ++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 gnu/packages/patches/spice-vdagent-localstatedir.patch
diff --git a/gnu/packages/patches/spice-vdagent-localstatedir.patch b/gnu/packages/patches/spice-vdagent-localstatedir.patch new file mode 100644 index 0000000..0d0881c --- /dev/null +++ b/gnu/packages/patches/spice-vdagent-localstatedir.patch @@ -0,0 +1,13 @@ +Allow mkdir localstatedir to fail. + +--- a/Makefile.in ++++ b/Makefile.in +@@ -1412,7 +1412,7 @@ uninstall-am: uninstall-binPROGRAMS uninstall-gdmautostart2DATA \ + + + install-data-local: +- $(mkdir_p) $(DESTDIR)$(localstatedir)/run/spice-vdagentd ++ -$(mkdir_p) $(DESTDIR)$(localstatedir)/run/spice-vdagentd + + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/gnu/packages/spice.scm b/gnu/packages/spice.scm index ccecb23..182e76b 100644 --- a/gnu/packages/spice.scm +++ b/gnu/packages/spice.scm @@ -189,3 +189,38 @@ not only on the machine where it is running, but from anywhere on the Internet and from a wide variety of machine architectures.") (home-page "http://www.spice-space.org") (license license:gpl2))) + +(define-public spice-vdagent + (package + (name "spice-vdagent") + (version "0.17.0") + (source (origin + (method url-fetch) + (uri (string-append + "http://www.spice-space.org/download/releases/" + "spice-vdagent-" version ".tar.bz2")) + (sha256 + (base32 + "0gdkyylyg1hksg0i0anvznqfli2q39335fnrmcd6847frpc8njpi")) + (patches (search-patches "spice-vdagent-localstatedir.patch")))) + (build-system gnu-build-system) + (inputs + `(("alsa-lib" ,alsa-lib) + ("dbus" ,dbus) + ("glib" ,glib) + ("libpciaccess" ,libpciaccess) + ("libx11" ,libx11) + ("libxext" ,libxext) + ("libxfixes" ,libxfixes) + ("libxinerama" ,libxinerama) + ("libxrandr" ,libxrandr) + ("spice-protocol" ,spice-protocol))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (arguments + '(#:configure-flags '("--localstatedir=/var"))) + (synopsis "Spice agent for linux") + (description "Enables sharing the clipboard and guest display resolution +scaling on graphical console window resize.") + (home-page "http://www.spice-space.org") + (license license:gpl2))) -- 2.9.0