ng0 <n...@libertad.pw> 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