Bug 1409643 - Perl Package Provides perl(MODULE_NAME) not being set
Summary: Perl Package Provides perl(MODULE_NAME) not being set
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: 25
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Clark Williams
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2017-01-02 17:24 UTC by Andrew Bauer
Modified: 2017-01-04 10:04 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2017-01-04 10:04:59 UTC
Type: Bug

Attachments (Terms of Use)

Description Andrew Bauer 2017-01-02 17:24:47 UTC
Description of problem:
When building a perl src rpm from the Fedora 25 repo with mock, the resulting package does not have its Provides: perl(MODEULE::NAME) entries.

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

How reproducible: 
Always in F25/26 when using mock, but NOT when rebuilding with rpmbuild. 
Never in EL6, EL7, F24 using mock or rpmbuild. 
Observed when building locally and on copr.

Steps to Reproduce:
1.Download a perl src rpm from the Fedora repo. In my case, I chose perl-GD-Barcode-1.15-23.fc25.src.rpm
2. Rebuild with mock

Actual results:
Provides: perl-GD-Barcode = 1.15-23.fc25

Expected results:
Provides: perl(GD::Barcode) = 1.15 perl(GD::Barcode::COOP2of5) = 0.01 perl(GD::Barcode::Code39) = 1.10 perl(GD::Barcode::EAN13) = 1.10 perl(GD::Barcode::EAN8) = 1.10 perl(GD::Barcode::IATA2of5) = 0.01 perl(GD::Barcode::ITF) = 0.01 perl(GD::Barcode::Industrial2of5) = 0.01 perl(GD::Barcode::Matrix2of5) = 0.01 perl(GD::Barcode::NW7) = 1.10 perl(GD::Barcode::QRcode) = 0.01 perl(GD::Barcode::UPCA) = 1.10 perl(GD::Barcode::UPCE) = 1.10 perl-GD-Barcode = 1.15-23.fc25

Additional info:

Noticed at the beginning of each mock build, it complains of missing perl:
sh: /usr/bin/perl: No such file or directory
sh: /usr/bin/perl: No such file or directory
sh: /usr/bin/perl: No such file or directory

Don't know if that is related.

This is the third package I've attempted to rebuild and have seen these results, only on F25/26. I don't know if mock is truly the cuplrit or if there is some other underlying cause.

Comment 1 Andrew Bauer 2017-01-02 19:24:48 UTC
Adding perl-generators as a buildrequires to the specfile resolves this issue, so this bug can more than likely be closed. 

I do not understand why this was missing from the Fedora authored specfile in the first place, but that is not a mock issue.

Comment 2 Miroslav Suchý 2017-01-04 10:04:59 UTC
Closing per #1

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