~ruther/guix-local

198df037562e7b4e0e90783dc5cba1e1c32f2110 — Maxime Devos 5 years ago 285f3b5
build-system/gnu: patch-shebangs: Also patch shebangs in "/libexec".

Shebangs in "/bin" and "/sbin" subdirectories are currently
patched by patch-shebangs. But shebangs in "/libexec" currently
aren't, even though they occasionally need to be. E.g. when using
wrap-program on an executable in "libexec" without an explicit #:sh
when cross-compiling.

* guix/build/gnu-build-system.scm (patch-shebangs):
  Add "/libexec" to 'bin-directories'.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
1 files changed, 2 insertions(+), 1 deletions(-)

M guix/build/gnu-build-system.scm
M guix/build/gnu-build-system.scm => guix/build/gnu-build-system.scm +2 -1
@@ 407,7 407,8 @@ makefiles."
    (match-lambda
     ((_ . dir)
      (list (string-append dir "/bin")
            (string-append dir "/sbin")))))
            (string-append dir "/sbin")
            (string-append dir "/libexec")))))

  (define output-bindirs
    (append-map bin-directories outputs))