[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/04: gnu: mc: Partially fix absolute file paths.
From: |
Ludovic Courtès |
Subject: |
03/04: gnu: mc: Partially fix absolute file paths. |
Date: |
Sat, 31 Dec 2016 00:46:47 +0000 (UTC) |
civodul pushed a commit to branch master
in repository guix.
commit da62a4a19ea398e950aefcdd64ae25a475505e8f
Author: ng0 <address@hidden>
Date: Mon Dec 26 14:55:31 2016 +0000
gnu: mc: Partially fix absolute file paths.
Partially fixes <http://bugs.gnu.org/25273>.
* gnu/packages/mc.scm (mc)[arguments]: Add new phase 'fix-absolutism.
This substitutes absolute file paths with functional file paths.
Signed-off-by: Ludovic Courtès <address@hidden>
---
gnu/packages/mc.scm | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/mc.scm b/gnu/packages/mc.scm
index 43dab8f..3cdc542 100644
--- a/gnu/packages/mc.scm
+++ b/gnu/packages/mc.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 Eric Bavier <address@hidden>
;;; Copyright © 2016 Efraim Flashner <address@hidden>
+;;; Copyright © 2016 ng0 <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -53,7 +54,18 @@
("check" ,check)))
(arguments
`(#:configure-flags
- '("--with-screen=ncurses" "--enable-aspell")))
+ '("--with-screen=ncurses" "--enable-aspell")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'patch-source-shebangs 'fix-absolutism
+ (lambda _
+ ;; Modify files that contain absolute file names.
+ (substitute* "misc/mcedit.menu.in"
+ (("#! /bin/sh") (string-append "#!" (which "sh")))
+ (("/bin/bash") (which "bash")))
+ (substitute* "misc/ext.d/misc.sh.in"
+ (("/bin/cat") "cat"))
+ #t)))))
(home-page "http://www.midnight-commander.org")
(synopsis "Graphical file manager")
(description