From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Craven Subject: [PATCH 6/7] gnu: Add spice-vdagent. Date: Sat, 23 Jul 2016 15:18:58 +0200 Message-ID: <20160723131859.13525-6-david@craven.ch> References: <20160723131859.13525-1-david@craven.ch> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQwpx-0004JA-Hp for guix-devel@gnu.org; Sat, 23 Jul 2016 09:19:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQwpv-0004KR-02 for guix-devel@gnu.org; Sat, 23 Jul 2016 09:19:24 -0400 Received: from so254-10.mailgun.net ([198.61.254.10]:35907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQwpt-0004Hs-PQ for guix-devel@gnu.org; Sat, 23 Jul 2016 09:19:22 -0400 In-Reply-To: <20160723131859.13525-1-david@craven.ch> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Cc: David Craven * 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