Message ID | 840693491.43189747.1684152641380.JavaMail.zimbra@inria.fr |
---|---|
State | New |
Headers | show |
Series | [bug#63517] Fixing lcov usage? | expand |
Hi Luca,
Luca Cirrottola <luca.cirrottola@inria.fr> skribis:
> I want use lcov to generate a coverage report for a C program, but I find out I always need to add "findutils" package to my shell in order for "lcov" to work. Shouldn't "findutils" be added to the propagated-inputs of "lcov", to have it available at runtime?
I took a slightly less intrusive approach:
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=88a2871d8f82a7280486c2a30cc9b510ee8b2b5c
Thanks for the bug report & proposal!
Ludo’.
Hello Ludo', I could have bet there was a more elegant solution :-) It works like a charm, thanks! Luca ----- Mail original ----- > De: "Ludovic Courtès" <ludovic.courtes@inria.fr> > À: "Luca Cirrottola" <luca.cirrottola@inria.fr> > Cc: 63517-done@debbugs.gnu.org > Envoyé: Lundi 22 Mai 2023 17:29:19 > Objet: Re: bug#63517: Fixing lcov usage? > Hi Luca, > > Luca Cirrottola <luca.cirrottola@inria.fr> skribis: > >> I want use lcov to generate a coverage report for a C program, but I find out I >> always need to add "findutils" package to my shell in order for "lcov" to work. >> Shouldn't "findutils" be added to the propagated-inputs of "lcov", to have it >> available at runtime? > > I took a slightly less intrusive approach: > > https://git.savannah.gnu.org/cgit/guix.git/commit/?id=88a2871d8f82a7280486c2a30cc9b510ee8b2b5c > > Thanks for the bug report & proposal! > > Ludo’.
diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index d57954c47c..2b1d221122 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm @@ -580,6 +580,7 @@ stack traces.") `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB"))))) #t))))) (inputs (list perl perl-io-compress perl-json)) + (propagated-inputs (list findutils)) (home-page "https://ltp.sourceforge.net/coverage/lcov.php") (synopsis "Code coverage tool that enhances GNU gcov") (description "LCOV is an extension of @command{gcov}, a tool part of the