Bug 1048703

Summary: Module::Pluggable ignores single-letter-named package names
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-Module-PluggableAssignee: Petr Pisar <ppisar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: perl-devel, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1048708 (view as bug list) Environment:
Last Closed: 2014-07-02 13:34:32 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 Petr Pisar 2014-01-06 08:01:39 UTC
Having two files:

$ cat M.pm 
print join(',', M->plugins), "\n";

package M;
use Module::Pluggable search_path => [ 'M' ];

$ cat M/X.pm 
package M::X;
1;

`perl M.pm' should locate M::X plug-in and print the name to standard output like this:

$ perl -I/home/petr/Module-Pluggable/lib M.pm 
M::X

However it does not.

This issue has been reported to upstream <https://rt.cpan.org/Public/Bug/Display.html?id=89680> and fixed in commit:

commit 7872bc27ac7f828a6b53d00717abdf83f2d1866d
Author: Simon Wistow <simon>
Date:   Tue Oct 22 09:32:27 2013 -0700

    Allow single letter package names

All Fedoras with perl-Module-Pluggable < 5.00 are affected.

Comment 1 Fedora Update System 2014-01-06 08:19:34 UTC
perl-Module-Pluggable-4.80-292.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/perl-Module-Pluggable-4.80-292.fc20

Comment 2 Fedora Update System 2014-01-06 08:19:59 UTC
perl-Module-Pluggable-4.8-2.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/perl-Module-Pluggable-4.8-2.fc19

Comment 3 Fedora Update System 2014-01-15 06:02:08 UTC
perl-Module-Pluggable-4.8-2.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 4 Fedora Update System 2014-01-15 06:08:48 UTC
perl-Module-Pluggable-4.80-292.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.