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>
This commit is contained in:
Maxime Devos 2021-06-30 15:10:28 +02:00 committed by Ludovic Courtès
parent 285f3b58c6
commit 198df03756
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -407,7 +407,8 @@ (define bin-directories
(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))