guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] gnu: mc: Partially fix absolute file paths.


From: Ludovic Courtès
Subject: Re: [PATCH] gnu: mc: Partially fix absolute file paths.
Date: Sat, 31 Dec 2016 01:23:30 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

ng0 <address@hidden> skribis:

> 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.

[...]

> +       (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 ‘lambda’ and added #t at the end of
lambda.

Thanks!

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]