Bug 971085 - perl-Digest-MD5-File installs MD5.pm to wrong path
Summary: perl-Digest-MD5-File installs MD5.pm to wrong path
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Digest-MD5-File
Version: 18
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Paul Howarth
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-05 15:56 UTC by Fredrik Smedberg
Modified: 2013-06-07 15:25 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-07 15:25:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Fredrik Smedberg 2013-06-05 15:56:42 UTC
Description of problem:
After installing the package 'perl-Digest-Perl-MD5.noarch' on Fedora 18, Perl is still unable to include Digest::MD5.

Version-Release number of selected component (if applicable):
N/A

How reproducible:
I created the following test case:
#!/usr/bin/env perl
use v5.10.0;
use warnings;
use strict;
use Digest::MD5;

Steps to Reproduce:
1. Create test case and save as test.pl
2. Run: perl test.pl

Actual results:
Can't locate Digest/MD5.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at test.pl line 5.

Expected results:
No error.

Additional info:
The MD5.pm file is placed wrong:
/usr/share/perl5/vendor_perl/Digest/Perl

The the correct path is:
/usr/share/perl5/vendor_perl/Digest

This solved the problem for me:
/usr/share/perl5/vendor_perl/Digest$ sudo ln -s Perl/MD5.pm MD5.pm

Comment 1 Paul Howarth 2013-06-07 15:25:25 UTC
Digest::Perl::MD5 and Digest::MD5 are not the same module. The perl-Digest-Perl-MD5 package contains the former but you want the latter.

To fix this, first remove the symlink you created, and then install the package you're actually looking for:

# rm /usr/share/perl5/vendor_perl/Digest/MD5.pm
# yum install 'perl(Digest::MD5)'


Note You need to log in before you can comment on or make changes to this bug.