Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915698 - =dev-util/lcov-2 can't locate lcovutil.pm
Summary: =dev-util/lcov-2 can't locate lcovutil.pm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeffrey Lin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-13 20:12 UTC by Dan Goodliffe
Modified: 2023-10-14 09:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Goodliffe 2023-10-13 20:12:11 UTC
After updating to lcov-2, lcov fails with the following error:

$ lcov --version
Can't locate lcovutil.pm in @INC (you may need to install the lcovutil module) (@INC entries checked: /tmp/portage/dev-util/lcov-2.0/image/usr/lib/lcov /etc/perl /usr/local/lib64/perl5/5.38/x86_64-linux-thread-multi /usr/local/lib64/perl5/5.38 /usr/lib64/perl5/vendor_perl/5.38/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.38 /usr/lib64/perl5/5.38/x86_64-linux-thread-multi /usr/lib64/perl5/5.38 /usr/lib64/perl5/vendor_perl/5.36) at /usr/bin/lcov line 102.
BEGIN failed--compilation aborted at /usr/bin/lcov line 102.

The file is installed, but apparently not at a location that's searched.

$ qfile lcovutil.pm
dev-util/lcov: /usr/lib/lcov/lcovutil.pm

My understanding is that this module didn't exist in v1.x and /usr/lib isn't where you'd expect to find a Perl module, maybe this is picking up some inappropriate default (I don't do Perl! Could be very wrong)
Comment 1 Jonas Stein gentoo-dev 2023-10-13 22:38:40 UTC
Thank you for the report. We need to have all information at hand before ticket assignment. This includes
* the complete build.log as attachment and
* a paste of the emerge info 
as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket

Please reopen this ticket (Status:UNCONFIRMED) afterwards.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-14 01:24:53 UTC
(In reply to Jonas Stein from comment #1)
> Thank you for the report. We need to have all information at hand before
> ticket assignment. This includes
> * the complete build.log as attachment and

I don't think there's a need for this for a runtime failure like this.

Anyway, I can reproduce, looking...
Comment 3 Larry the Git Cow gentoo-dev 2023-10-14 01:38:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a461e386f87fc17b90d2f45d767d2ed1ddf334c

commit 3a461e386f87fc17b90d2f45d767d2ed1ddf334c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-10-14 01:37:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-10-14 01:37:46 +0000

    dev-util/lcov: fix destdir leakage
    
    Closes: https://bugs.gentoo.org/915698
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/lcov/{lcov-1.16.ebuild => lcov-1.16-r1.ebuild} | 5 +++--
 dev-util/lcov/{lcov-2.0.ebuild => lcov-2.0-r1.ebuild}   | 5 +++--
 dev-util/lcov/lcov-9999.ebuild                          | 5 +++--
 3 files changed, 9 insertions(+), 6 deletions(-)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-14 01:38:57 UTC
Thanks & sorry, I've fixed the very silly error.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-14 01:39:15 UTC
(my own error, that is)
Comment 6 Dan Goodliffe 2023-10-14 09:26:56 UTC
Thanks Sam, works great :)