https://bugzilla.redhat.com/show_bug.cgi?id=1122498
Bug ID: 1122498
Summary: Missing perl-Time-HiRes requirement
Product: Fedora
Version: rawhide
Component: perl
Keywords: EasyFix, Patch
Assignee: jplesnik(a)redhat.com
Reporter: ppisar(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: cweyl(a)alumni.drew.edu, iarnell(a)gmail.com,
jplesnik(a)redhat.com, kasal(a)ucw.cz,
perl-devel(a)lists.fedoraproject.org, ppisar(a)redhat.com,
psabata(a)redhat.com, rc040203(a)freenet.de,
tcallawa(a)redhat.com
+++ This bug was initially created as a clone of Bug #1122368 +++
perl-Time-HiRes seems to be a missing requirement when configuring cpan for the
first time.
See
https://bugs.centos.org/view.php?id=7417 for the details and reproduction
steps.
[...]
--- Additional comment from Petr Pisar on 2014-07-23 09:08:54 GMT ---
This is a bug in `perl' package. The package should run-require
`perl(Time::HiRes)' because Net::Ping module's hires() subroutine loads
Time::HiRes:
$hires = 0;
sub hires
{
my $self = shift;
$hires = 1 unless defined
($hires = ((defined $self) && (ref $self)) ? shift() : $self);
require Time::HiRes if $hires;
}
--- Additional comment from Petr Pisar on 2014-07-23 09:38:27 GMT ---
There is another issue after proceeding next:
Can't locate local/lib.pm in @INC (@INC contains:
/root/perl5/lib/perl5/x86_64-linux-thread-multi /root/perl5/lib/perl5
/usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /root) at
/usr/share/perl5/CPAN/FirstTime.pm line 1300.
The CPAN::FirstTime module offers local::lib by default if site directories do
not exist:
sub _local_lib_config {
# Set environment stuff for this process
require local::lib;
[...]
}
perl-CPAN sub-package should run-require `perl(local::lib)' too.
--- Additional comment from Petr Pisar on 2014-07-23 09:47:12 GMT ---
How to test:
(1) # yum remove perl
(2) # yum install /usr/bin/cpan
(3) # rm -rf ~/.cpan
(4) # cpan </dev/null
Before:
The reported message is printed and the `cpan' command dies with a non-zero
exit code.
After:
The `cpan' command succeeds.
----
Distribution perl(Time::HiRes) perl(local::lib)
Fedora 22 ok missing
Fedora 21 ok missing
Fedora 20 ok missing
Fedora 19 ok missing
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=Wy6E4PqhYT&a=cc_unsubscribe