[Bug 1122498] New: Missing perl-Time-HiRes requirement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
          Reporter: ppisar@xxxxxxxxxx
        QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
                CC: cweyl@xxxxxxxxxxxxxxx, iarnell@xxxxxxxxx,
                    jplesnik@xxxxxxxxxx, kasal@xxxxxx,
                    perl-devel@xxxxxxxxxxxxxxxxxxxxxxx, ppisar@xxxxxxxxxx,
                    psabata@xxxxxxxxxx, rc040203@xxxxxxxxxx,
                    tcallawa@xxxxxxxxxx



+++ 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
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux