Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1268021

Summary: perl.req does not find `perl(strict)' in /usr/share/perl5/ExtUtils/ParseXS.pm
Product: Red Hat Enterprise Linux 6 Reporter: Petr Pisar <ppisar>
Component: rpmAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED ERRATA QA Contact: Karel Srot <ksrot>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.7CC: lkardos, salmy
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1320214 (view as bug list) Environment:
Last Closed: 2016-05-11 00:54:06 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:
Bug Depends On:    
Bug Blocks: 1271238    

Description Petr Pisar 2015-10-01 15:06:27 UTC
rpm-4.8.0-47.el6 fails to find `perl(strict)' in /usr/share/perl5/ExtUtils/ParseXS.pm:

# /usr/lib/rpm/perl.req /usr/share/perl5/ExtUtils/ParseXS.pm 
perl >= 0:5.006
perl(Config)
perl(Cwd)
perl(Exporter)
perl(File::Basename)
perl(File::Spec)
perl(Symbol)
perl(re)
perl(vars)

While perl.req from rpm-4.8.0-38.el6_6 works as expected:

# /tmp/perl.req /usr/share/perl5/ExtUtils/ParseXS.pm 
perl >= 0:5.006
perl(Config)
perl(Cwd)
perl(Exporter)
perl(File::Basename)
perl(File::Spec)
perl(Symbol)
perl(re)
perl(strict)
perl(vars)


The relevant /usr/share/perl5/ExtUtils/ParseXS.pm text is:

#########################################################
package
  ExtUtils::ParseXS::CountLines;
use strict;
use vars qw($SECTION_END_MARKER);


This is regression introduced in rpm-4.8.0-39.

Comment 5 Petr Pisar 2015-10-01 15:44:36 UTC
This review of dependency changes:

perl-ExtUtils-ParseXS: missing perl(strict) - regression
perl-Module-Build: missing perl(ExtUtils::MakeMaker) - not a bug
perl-Module-Build: emerging perl(File::Spec) >= 0.82 - not a bug
perl-devel: missing perl(Carp) - not a bug, required by generated code
perl-devel: missing perl(DynaLoader) - not a bug, required by generated code
perl-devel: missing perl(Exporter) - not a bug, required by generated code
perl-devel: missing perl(File::Find) - regression

So there are only the regressions:

perl-ExtUtils-ParseXS: missing perl(strict)
perl-devel: missing perl(File::Find)

Both of them have the same common feature that the "use FOO" appears twice in the code. First as a text that should be ignored by the generator, second and a text that should be accepted by the generator.

Comment 6 Ľuboš Kardoš 2015-10-02 10:05:20 UTC
Regressions are caused by backporting this upstream commit [1]. Problem is that the code in the commit cannot parse all possible variants of here-document. The problem was partially fixed upstream in commit [2]. 

[1] https://github.com/rpm-software-management/rpm/commit/0d5929ba5eabadec49273bb090ba9158dfccc30c

[2] https://github.com/rpm-software-management/rpm/commit/4f05fa0e15bcb66d29f89e28829ea43107f6382b

Comment 12 errata-xmlrpc 2016-05-11 00:54:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0936.html