From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH] gnu: mc: Partially fix absolute file paths. Date: Mon, 26 Dec 2016 14:55:31 +0000 Message-ID: <20161226145531.14503-2-ng0@libertad.pw> References: <20161226145531.14503-1-ng0@libertad.pw> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLWgl-00005L-Nb for guix-devel@gnu.org; Mon, 26 Dec 2016 09:55:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cLWgk-0000Kb-Co for guix-devel@gnu.org; Mon, 26 Dec 2016 09:55:47 -0500 Received: from aibo.runbox.com ([91.220.196.211]:46862) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cLWgj-0000Is-LB for guix-devel@gnu.org; Mon, 26 Dec 2016 09:55:45 -0500 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cLWgi-0006cs-8v for guix-devel@gnu.org; Mon, 26 Dec 2016 15:55:44 +0100 In-Reply-To: <20161226145531.14503-1-ng0@libertad.pw> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Partially fixes . * gnu/packages/mc.scm (mc)[arguments]: Add new phase 'fix-absolutism. This substitutes absolute file paths with functional file paths. --- gnu/packages/mc.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/packages/mc.scm b/gnu/packages/mc.scm index 43dab8ff4..ad954bdfd 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 ;;; Copyright © 2016 Efraim Flashner +;;; Copyright © 2016 ng0 ;;; ;;; This file is part of GNU Guix. ;;; @@ -53,7 +54,17 @@ ("check" ,check))) (arguments `(#:configure-flags - '("--with-screen=ncurses" "--enable-aspell"))) + '("--with-screen=ncurses" "--enable-aspell") + #:phases + (modify-phases %standard-phases + ;; We need to modify certain files which keep absolute paths + (add-after 'patch-source-shebangs 'fix-absolutism + (lambda _ + (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"))))))) (home-page "http://www.midnight-commander.org") (synopsis "Graphical file manager") (description -- 2.11.0