Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#78613 - [lcov] Missing dependency: perl-capture-tiny, perl-datetime

Attached to Project: Community Packages
Opened by Rafael (raffomania) - Friday, 26 May 2023, 10:20 GMT
Last edited by Caleb Maclennan (alerque) - Friday, 09 June 2023, 09:12 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Caleb Maclennan (alerque)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No



With version 2, running lcov on a file like this:

lcov --summary

Results in an error like this:

Can't locate Capture/ in @INC (you may need to install the Capture::Tiny module) (@INC contains: /usr/lib/lcov /usr/lib/perl5/5.36/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.36/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.36/core_perl /usr/share/perl5/core_perl) at /usr/lib/lcov/

Installing the packages `perl-capture-tiny` and `perl-datetime` fixes the errors. These perl modules are listed as dependencies on the lcov project page, so I think they need to be added as dependencies to the `lcov` package.

package version(s): 2.0-1
This task depends upon

Closed by  Caleb Maclennan (alerque)
Friday, 09 June 2023, 09:12 GMT
Reason for closing:  Fixed
Additional comments about closing:  lcov-2.0-2
Comment by GanGrey (GanGrey) - Saturday, 27 May 2023, 12:21 GMT
It seems that 'perl-capture-tiny' and 'perl-datetime' are not all of the Perl dependencies. Lcov lists also these:
- Devel::Cover [1] - currently in AUR [2], albeit slightly outdated
- Memory::Process [3] - currently not in official repositories or AUR
- additional JSON modules (these are switchable for performance/preference): 'perl-json-xs', 'perl-cpanel-json-xs', 'perl-json'
- 'perl-tidy' for contributors
The rest are provided by Perl package itself as core modules: Digest::MD5, File::Spec, JSON::PP, Time::HiRes

There are also some Python packages dependencies:
- 'python-coverage' to measure Python code coverage
- 'python-xlsxwriter' to generate any of the spreadsheet reports

Comment by Caleb Maclennan (alerque) - Sunday, 28 May 2023, 07:53 GMT
Thanks for the research Rafael and GanGrey. It appears my testing was flawed, a use case I had for it seemed to work but it might have used the old package!

I'm on the road for a few days. If somebody sent in patchs (`git format-patch` against `pgkctl repo clone lcov` plus new PKGBUILD for the missing dep and a similarly generated version update patch against the AUR one that needs migrating to repos) I might be able to get it in on Mo or Tu, otherwise this will have to wait until I'm back at a desk.
Comment by Toolybird (Toolybird) - Wednesday, 31 May 2023, 08:23 GMT
Dupes  FS#78662   FS#78684 
Comment by Caleb Maclennan (alerque) - Friday, 09 June 2023, 09:09 GMT
Sorry this took me so long. Somebody finally poked me while I was at a computer to fix my oversight. It turns out I did use the right package for testing 2.0, I just did it on a system that had a full bank of Perl stuff installed! The lcov project doesn't test for dependencies at build time properly.