diff options
| author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-05-06 10:57:54 -0400 |
|---|---|---|
| committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-05-06 16:51:49 -0400 |
| commit | a33afba4f1fa6350fe6e1100c6277ca92aca8a40 (patch) | |
| tree | 2097b568d537cd9fdce6d4f9020f062be1e835ce | |
| parent | 626e61959089b9c7d1faa5dd6b15f8ed94f551fb (diff) | |
gnu: spice-vdagent: Update to 0.21.0 and enable GTK+ support.
* gnu/packages/spice.scm (spice-vdagent): Update to 0.21.0.
Remove trailing #t.
[make-flags]: New argument.
[phases]{fix-test-termination}: New phase.
[inputs]: Add gtk+.
[native-inputs]{procps}: New input.
| -rw-r--r-- | gnu/packages/spice.scm | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/gnu/packages/spice.scm b/gnu/packages/spice.scm index 92aeef7f791..0e47609b9e3 100644 --- a/gnu/packages/spice.scm +++ b/gnu/packages/spice.scm | |||
| @@ -261,7 +261,7 @@ Internet and from a wide variety of machine architectures.") | |||
| 261 | (define-public spice-vdagent | 261 | (define-public spice-vdagent |
| 262 | (package | 262 | (package |
| 263 | (name "spice-vdagent") | 263 | (name "spice-vdagent") |
| 264 | (version "0.20.0") | 264 | (version "0.21.0") |
| 265 | (source (origin | 265 | (source (origin |
| 266 | (method url-fetch) | 266 | (method url-fetch) |
| 267 | (uri (string-append | 267 | (uri (string-append |
| @@ -269,11 +269,14 @@ Internet and from a wide variety of machine architectures.") | |||
| 269 | "spice-vdagent-" version ".tar.bz2")) | 269 | "spice-vdagent-" version ".tar.bz2")) |
| 270 | (sha256 | 270 | (sha256 |
| 271 | (base32 | 271 | (base32 |
| 272 | "0n9k2kna2gd1zi6jv45zsp2jlv439nz5l5jjijirxqaycwi74srf")))) | 272 | "0n8jlc1pv6mkry161y656b1nk9hhhminjq6nymzmmyjl7k95ymzx")))) |
| 273 | (build-system gnu-build-system) | 273 | (build-system gnu-build-system) |
| 274 | (arguments | 274 | (arguments |
| 275 | `(#:configure-flags | 275 | `(#:configure-flags |
| 276 | '("--localstatedir=/var") | 276 | '("--localstatedir=/var") |
| 277 | ;; The test-session-info test fails for unknown reasons (see: | ||
| 278 | ;; https://gitlab.freedesktop.org/spice/linux/vd_agent/-/issues/24). | ||
| 279 | #:make-flags '("XFAIL_TESTS=tests/test-session-info") | ||
| 277 | #:phases | 280 | #:phases |
| 278 | (modify-phases %standard-phases | 281 | (modify-phases %standard-phases |
| 279 | (add-after 'unpack 'patch-makefile.in | 282 | (add-after 'unpack 'patch-makefile.in |
| @@ -281,19 +284,27 @@ Internet and from a wide variety of machine architectures.") | |||
| 281 | (substitute* "Makefile.in" | 284 | (substitute* "Makefile.in" |
| 282 | (((string-append "\\$\\(mkdir_p\\) \\$\\(DESTDIR\\)" | 285 | (((string-append "\\$\\(mkdir_p\\) \\$\\(DESTDIR\\)" |
| 283 | "\\$\\(localstatedir\\)/run/spice-vdagentd")) | 286 | "\\$\\(localstatedir\\)/run/spice-vdagentd")) |
| 284 | "-$(mkdir_p) $(DESTDIR)$(localstatedir)/run/spice-vdagentd")) | 287 | "-$(mkdir_p) $(DESTDIR)$(localstatedir)/run/spice-vdagentd")))) |
| 285 | #t)) | ||
| 286 | (add-after 'unpack 'patch-spice-vdagent.desktop | 288 | (add-after 'unpack 'patch-spice-vdagent.desktop |
| 287 | (lambda* (#:key outputs #:allow-other-keys) | 289 | (lambda* (#:key outputs #:allow-other-keys) |
| 288 | (substitute* "data/spice-vdagent.desktop" | 290 | (substitute* "data/spice-vdagent.desktop" |
| 289 | (("Exec=/usr/bin/spice-vdagent") | 291 | (("Exec=/usr/bin/spice-vdagent") |
| 290 | (string-append "Exec=" (assoc-ref outputs "out") | 292 | (string-append "Exec=" (assoc-ref outputs "out") |
| 291 | "/bin/spice-vdagent"))) | 293 | "/bin/spice-vdagent"))))) |
| 292 | #t))))) | 294 | (add-after 'unpack 'fix-test-termination |
| 295 | (lambda _ | ||
| 296 | ;; The termination tests depend on finding the socket file name | ||
| 297 | ;; in the spice-vdagent command line it launched, but by default | ||
| 298 | ;; ps truncates its output, which causes the test to fail (see: | ||
| 299 | ;; https://gitlab.freedesktop.org/spice/linux/vd_agent/-/merge_requests/36). | ||
| 300 | (substitute* "tests/test-termination.c" | ||
| 301 | (("ps -ef") | ||
| 302 | "ps -efww"))))))) | ||
| 293 | (inputs | 303 | (inputs |
| 294 | `(("alsa-lib" ,alsa-lib) | 304 | `(("alsa-lib" ,alsa-lib) |
| 295 | ("dbus" ,dbus) | 305 | ("dbus" ,dbus) |
| 296 | ("glib" ,glib) | 306 | ("glib" ,glib) |
| 307 | ("gtk+" ,gtk+) | ||
| 297 | ("libdrm" ,libdrm) | 308 | ("libdrm" ,libdrm) |
| 298 | ("libpciaccess" ,libpciaccess) | 309 | ("libpciaccess" ,libpciaccess) |
| 299 | ("libx11" ,libx11) | 310 | ("libx11" ,libx11) |
| @@ -303,7 +314,8 @@ Internet and from a wide variety of machine architectures.") | |||
| 303 | ("libxrandr" ,libxrandr) | 314 | ("libxrandr" ,libxrandr) |
| 304 | ("spice-protocol" ,spice-protocol))) | 315 | ("spice-protocol" ,spice-protocol))) |
| 305 | (native-inputs | 316 | (native-inputs |
| 306 | `(("pkg-config" ,pkg-config))) | 317 | `(("pkg-config" ,pkg-config) |
| 318 | ("procps" ,procps))) ;tests use 'ps' | ||
| 307 | (synopsis "Spice agent for Linux") | 319 | (synopsis "Spice agent for Linux") |
| 308 | (description "Spice-vdagent enables sharing the clipboard and guest display | 320 | (description "Spice-vdagent enables sharing the clipboard and guest display |
| 309 | resolution scaling on graphical console window resize.") | 321 | resolution scaling on graphical console window resize.") |
