~ruther/guix-local

c6918634d069f5400676e614f1002e36cb43134c — Nicolas Goaziou 1 year, 4 months ago cd704d2
gnu: tlp: Fix all Perl invocations.

Fixes <https://issues.guix.gnu.org/76848>.

* gnu/packages/linux.scm (tlp):[arguments]: Fix Perl invocations in all Bash
scripts, even if they are not wrapped.

Change-Id: I12de013f70446e77467fa31be7ecd63a0826d955
1 files changed, 9 insertions(+), 0 deletions(-)

M gnu/packages/linux.scm
M gnu/packages/linux.scm => gnu/packages/linux.scm +9 -0
@@ 8216,6 8216,15 @@ interface in sysfs, which can be accomplished with the included udev rules.")
                (("= /usr") (string-append "= " #$output))
                (("= /etc") (string-append "= " #$output "/etc"))
                (("install -d -m 755 \\$\\(_VAR\\)") "#"))))
          (add-before 'build 'fix-perl-calls
            ;; Shell scripts in "bat.d" and "func.d" call "perl".  Fix
            ;; invocation without wrapping every one of them.
            (lambda* (#:key inputs #:allow-other-keys)
              (substitute* (append (find-files "bat.d" ".")
                                   (find-files "func.d" "."))
                (("(^|[^/])perl" _ prefix)
                 (string-append prefix
                                (search-input-file inputs "bin/perl"))))))
          (replace 'install
            (lambda _ (invoke "make" "install-tlp" "install-man-tlp")))
          (add-after 'install 'wrap