From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] gnu: mc: Partially fix absolute file paths. Date: Sat, 31 Dec 2016 01:23:30 +0100 Message-ID: <87wpeh54l9.fsf@gnu.org> References: <20161226145531.14503-1-ng0@libertad.pw> <20161226145531.14503-2-ng0@libertad.pw> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cN7SS-0002f8-7R for guix-devel@gnu.org; Fri, 30 Dec 2016 19:23:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cN7SP-0001Vl-5C for guix-devel@gnu.org; Fri, 30 Dec 2016 19:23:36 -0500 In-Reply-To: <20161226145531.14503-2-ng0@libertad.pw> (ng0@libertad.pw's message of "Mon, 26 Dec 2016 14:55:31 +0000") 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: ng0 Cc: guix-devel@gnu.org ng0 skribis: > Partially fixes . > > * gnu/packages/mc.scm (mc)[arguments]: Add new phase 'fix-absolutism. > This substitutes absolute file paths with functional file paths. [...] > + (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"))))))) Committed; I moved the comment below =E2=80=98lambda=E2=80=99 and added #t = at the end of lambda. Thanks! Ludo=E2=80=99.