Bug 1574886

Summary: nagios-plugins-perl-2.2.1-9git5c7eb5b9.el7 does not provide "perl(utils)"
Product: [Fedora] Fedora EPEL Reporter: Pim Rupert <pim>
Component: nagios-pluginsAssignee: Stephen John Smoogen <smooge>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: athmanem, b.heden, lemenkov, smooge, smooge, swilkerson
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-04 13:22:11 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 Pim Rupert 2018-05-04 09:21:07 UTC
Description of problem:

Package nagios-plugins-perl does not provide "perl(utils)" dependency. This prevents plugins from being installed that have a dependency on "perl(utils)", resulting in the yum error: "Error: Package: <some-plugin>\n           Requires: perl(utils)\n"

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

2.2.1-9git5c7eb5b9.el7

Actual results:

# rpm -q --provides nagios-plugins-perl
nagios-plugins-perl = 2.2.1-9git5c7eb5b9.el7
nagios-plugins-perl(x86-64) = 2.2.1-9git5c7eb5b9.el7

Expected results:

Old version does provide "perl(utils)":

rpm -q --provides nagios-plugins-perl
nagios-plugins-perl = 2.2.1-4git.el7
nagios-plugins-perl(x86-64) = 2.2.1-4git.el7
perl(utils)

Additional info:

Current missing "provides" breaks dependency chain for some plugins that require the perl(utils) module.

Comment 1 Stephen John Smoogen 2018-05-04 13:22:11 UTC
It seems the provides was faulty and was causing problems for other packages. The fix is that the sub-packages need to be rebuilt as per the instructions the perl team left in 1572361

Packages that require perl(utils), that is not provided by anything, should filter out the dependency from RPM metadata using:

%global __requires_exclude %{?__requires_exclude:%__requires_exclude}|}^perl\\(utils\\)

This is how auto-generated dependencies are filtered in Fedora and EPEL-7. Older EPELs use different syntax/methods for filtering. See <https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering> for more details.

*** This bug has been marked as a duplicate of bug 1572361 ***