Bug 971085

Summary: perl-Digest-MD5-File installs MD5.pm to wrong path
Product: [Fedora] Fedora Reporter: Fredrik Smedberg <fredrik>
Component: perl-Digest-MD5-FileAssignee: Paul Howarth <paul>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 18CC: paul, perl-devel
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-07 15:25:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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)'