[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/65: gnu: r-with-tests: Hardcode path to coreutils’ rm
From: |
guix-commits |
Subject: |
01/65: gnu: r-with-tests: Hardcode path to coreutils’ rm |
Date: |
Wed, 28 Jul 2021 16:28:57 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 9ac9bc6051374f4faa3e43fd89b70fc7a73c5bf4
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Mon Jul 26 09:25:20 2021 +0200
gnu: r-with-tests: Hardcode path to coreutils’ rm
When running R in a container like this
guix environment --no-cwd -C --ad-hoc r-minimal -- Rscript -e
'Sys.timezone()'
it would print an additional line
sh: rm: command not found
before exiting.
* gnu/packages/statistics.scm (r-with-tests) [#:phases]: Add substitute*
to patch call to `rm` and rename phase to reflect what it does now.
---
gnu/packages/statistics.scm | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index ce9f1bf..7ba7d9f 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -213,12 +213,15 @@ This package also provides @command{xls2csv} to export
Excel files to CSV.")
(substitute* "src/library/base/makebasedb.R"
(("compress = TRUE") "compress = FALSE"))
#t))
- (add-before 'configure 'patch-uname
+ (add-before 'configure 'patch-coreutils-paths
(lambda* (#:key inputs #:allow-other-keys)
- (let ((uname-bin (string-append (assoc-ref inputs "coreutils")
- "/bin/uname")))
+ (let* ((coreutils (assoc-ref inputs "coreutils"))
+ (uname-bin (string-append coreutils "/bin/uname"))
+ (rm-bin (string-append coreutils "/bin/rm")))
(substitute* "src/scripts/R.sh.in"
- (("uname") uname-bin)))
+ (("uname") uname-bin))
+ (substitute* "src/unix/sys-std.c"
+ (("rm -Rf ") (string-append rm-bin " -Rf "))))
#t))
(add-after 'unpack 'build-reproducibly
(lambda _
- branch master updated (042b697 -> a32241f), guix-commits, 2021/07/28
- 02/65: gnu: Add r-datawizard., guix-commits, 2021/07/28
- 03/65: gnu: Add r-lobstr., guix-commits, 2021/07/28
- 01/65: gnu: r-with-tests: Hardcode path to coreutils’ rm,
guix-commits <=
- 09/65: gnu: r-laplacesdemon: Update to 16.1.6., guix-commits, 2021/07/28
- 04/65: gnu: r-googlesheets4: Update to 1.0.0., guix-commits, 2021/07/28
- 07/65: gnu: r-jpeg: Update to 0.1-9., guix-commits, 2021/07/28
- 08/65: gnu: r-fastmatch: Update to 1.1-3., guix-commits, 2021/07/28
- 05/65: gnu: r-ggpp: Update to 0.4.1., guix-commits, 2021/07/28
- 06/65: gnu: r-rvest: Update to 1.0.1., guix-commits, 2021/07/28
- 10/65: gnu: r-cli: Update to 3.0.1., guix-commits, 2021/07/28
- 12/65: gnu: r-vim: Update to 6.1.1., guix-commits, 2021/07/28
- 11/65: gnu: r-utf8: Update to 1.2.2., guix-commits, 2021/07/28
- 20/65: gnu: r-bayestestr: Update to 0.10.5., guix-commits, 2021/07/28