Bug 927211

Summary: RPM generates wrong Perl provides
Product: [Fedora] Fedora Reporter: Jan Kaluža <jkaluza>
Component: rpmAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ffesti, jzeleny, novyjindrich, packaging-team-maint, pknirsch, pmatilai
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-22 06:03:26 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 Jan Kaluža 2013-03-25 11:44:10 UTC
See Bug 924938, mainly https://bugzilla.redhat.com/show_bug.cgi?id=924938#c19

Since file-5.14, more Perl files are recognized as "Perl5 Module". RPM then treats all "package x;" occurrences in those files as real module definitions and puts them into Provides even when they are in Perl comment.

I think RPM should handle only Provides from files in Perl modules search path. Note that I'm File maintainer, not Perl developer/maintainer.

Comment 1 Panu Matilainen 2013-05-22 06:03:26 UTC
Limiting by search paths tends to be problematic in various ways, but rpm-4.11.0.1-6.fc20 requires files to have .pm suffix in addition in order to be classified as perl modules which should cure at least the worst of it.