From 88a2871d8f82a7280486c2a30cc9b510ee8b2b5c Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Mon, 22 May 2023 12:11:01 +0200 Subject: gnu: lcov: Patch reference to 'find' command. Fixes . Reported by Luca Cirrottola . * gnu/packages/code.scm (lcov)[arguments]: Rename 'patch-pwd' phase to 'patch-references-to-commands', and patch reference to 'find'. --- gnu/packages/code.scm | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'gnu/packages/code.scm') diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index d57954c47c..9cdda2b751 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2013, 2015, 2018, 2020, 2021 Ludovic Courtès +;;; Copyright © 2013, 2015, 2018, 2020, 2021, 2023 Ludovic Courtès ;;; Copyright © 2013, 2015 Andreas Enge ;;; Copyright © 2015, 2018 Ricardo Wurmus ;;; Copyright © 2016, 2017, 2019-2023 Efraim Flashner @@ -562,16 +562,19 @@ stack traces.") (assoc-ref %outputs "out"))) #:phases (modify-phases %standard-phases - (add-after 'unpack 'patch-pwd - ;; Lift the requirement of having a shell in PATH. - (lambda _ + (add-after 'unpack 'patch-references-to-commands + (lambda* (#:key inputs #:allow-other-keys) + ;; Lift the requirement of having a shell and 'find' in PATH. (substitute* "bin/geninfo" (("qw/abs_path/") "qw/abs_path getcwd/")) (substitute* '("bin/lcov" "bin/geninfo") (("`pwd`") - "getcwd()")) - #t)) + "getcwd()") + (("`find ") + (string-append "`" + (search-input-file inputs "/bin/find") + " "))))) (delete 'configure) ;no configure script (add-after 'install 'wrap (lambda* (#:key outputs #:allow-other-keys) -- cgit v1.2.3