[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: minetest: Fix absolute path to 'rm' command.
From: |
guix-commits |
Subject: |
branch master updated: gnu: minetest: Fix absolute path to 'rm' command. |
Date: |
Wed, 14 Apr 2021 03:43:17 -0400 |
This is an automated email from the git hooks/post-receive script.
leoprikler pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new c5e149a gnu: minetest: Fix absolute path to 'rm' command.
c5e149a is described below
commit c5e149a9d9cf25c68da817f46ea0cbf5442d39bd
Author: Trevor Hass <thass@okstate.edu>
AuthorDate: Tue Apr 13 22:05:08 2021 -0500
gnu: minetest: Fix absolute path to 'rm' command.
* gnu/packages/games.scm (minetest)[patch-sources]: Substitute '/bin/rm'
path.
[inputs]: Add coreutils.
Signed-off-by: Leo Prikler <leo.prikler@student.tugraz.at>
---
gnu/packages/games.scm | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index dbc7244..91ac839 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -52,7 +52,7 @@
;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
;;; Copyright © 2020, 2021 Michael Rohleder <mike@rohleder.de>
-;;; Copyright © 2020 Trevor Hass <thass@okstate.edu>
+;;; Copyright © 2020, 2021 Trevor Hass <thass@okstate.edu>
;;; Copyright © 2020, 2021 Leo Prikler <leo.prikler@student.tugraz.at>
;;; Copyright © 2020 Lu hux <luhux@outlook.com>
;;; Copyright © 2020 Tomás Ortín Fernández <tomasortin@mailbox.org>
@@ -3486,8 +3486,13 @@ match, cannon keep, and grave-itation pit.")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-sources
- (lambda _
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "src/filesys.cpp"
+ ;; Use store-path for "rm" instead of non-existing FHS path.
+ (("\"/bin/rm\"")
+ (string-append "\"" (assoc-ref inputs "coreutils")
"/bin/rm\"")))
(substitute* "src/CMakeLists.txt"
+ ;; Let minetest binary remain in build directory.
(("set\\(EXECUTABLE_OUTPUT_PATH .*\\)") ""))
(substitute* "src/unittest/test_servermodmanager.cpp"
;; do no override MINETEST_SUBGAME_PATH
@@ -3511,7 +3516,8 @@ match, cannon keep, and grave-itation pit.")
(native-inputs
`(("pkg-config" ,pkg-config)))
(inputs
- `(("curl" ,curl)
+ `(("coreutils" ,coreutils)
+ ("curl" ,curl)
("freetype" ,freetype)
("gettext" ,gettext-minimal)
("gmp" ,gmp)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: minetest: Fix absolute path to 'rm' command.,
guix-commits <=