[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: xvfb-run: Fix ‘xvfb-run --help’ in a pure en
From: |
guix-commits |
Subject: |
branch master updated: gnu: xvfb-run: Fix ‘xvfb-run --help’ in a pure environment. |
Date: |
Thu, 08 Jul 2021 10:41:45 -0400 |
This is an automated email from the git hooks/post-receive script.
mothacehe pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 344316b gnu: xvfb-run: Fix ‘xvfb-run --help’ in a pure environment.
344316b is described below
commit 344316b455345485dfd60baaa88105599467fe9b
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Wed Mar 10 13:14:15 2021 +0100
gnu: xvfb-run: Fix ‘xvfb-run --help’ in a pure environment.
* gnu/packages/xorg.scm (xvfb-run)[arguments]: Refer to ‘cat’
by absolute file name, and test whether ‘xvfb-run --help’
succeeds in a pure environment in the ‘check’ phase.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
gnu/packages/xorg.scm | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm
index 4500130..6a7849f 100644
--- a/gnu/packages/xorg.scm
+++ b/gnu/packages/xorg.scm
@@ -29,6 +29,7 @@
;;; Copyright © 2021 Nicolò Balzarotti <nicolo@nixo.xyz>
;;; Copyright © 2021 Matthew James Kraai <kraai@ftbfs.org>
;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re>
+;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -6878,7 +6879,7 @@ box, and a calendar. It uses GTK+, and will match your
desktop theme.")
(lambda _
(chmod "xvfb-run" #o755)
(substitute* "xvfb-run"
- (("(\\(| )(fmt|stty|awk|kill|getopt|mktemp|touch|rm|mcookie)"
+ (("(\\(|
)(fmt|stty|awk|cat|kill|getopt|mktemp|touch|rm|mcookie)"
_ prefix command)
(string-append prefix (which command)))
;; These also feature in UI messages, so be more strict.
@@ -6887,13 +6888,15 @@ box, and a calendar. It uses GTK+, and will match your
desktop theme.")
(string-append prefix (which command))))))
(replace 'check
;; There are no tests included. Here we test whether we can run
- ;; a simple client without xvfb-run itself relying on $PATH.
+ ;; a simple client and whether xvfb-run --help succeeds
+ ;; without xvfb-run itself relying on $PATH.
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(let ((old-PATH (getenv "PATH"))
(xterm (which "xterm")))
(unsetenv "PATH")
(invoke "./xvfb-run" xterm "-e" "true")
+ (invoke "./xvfb-run" "--help")
(setenv "PATH" old-PATH)))))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: xvfb-run: Fix ‘xvfb-run --help’ in a pure environment.,
guix-commits <=