Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1184662 - more bad requires generated by "use" in heredoc
Summary: more bad requires generated by "use" in heredoc
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-generators
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Jitka Plesnikova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-22 00:07 UTC by J. Randall Owens
Modified: 2015-02-23 23:28 UTC (History)
4 users (show)

Fixed In Version: perl-generators-1.03-1.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-23 23:28:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description J. Randall Owens 2015-01-22 00:07:56 UTC
Description of problem:
Much like my old bug #198033, perl.req is finding the phrase "use for" at the beginning of a line within a "print <<END" heredoc, and generating a "perl(for)" requires which isn't satisfiable.

Version-Release number of selected component (if applicable):
perl-generators-1.00-1.fc21.noarch

How reproducible:
consistently

Steps to Reproduce:
1. get & prep pgp-tools-1.1.10-1.fc21.src.rpm (currently in testing)
2. rpmbuild -bb SPECS/pgp-tools.spec (or -ba)

Actual results:
requires perl(for)

Expected results:
does not require perl(for)

Additional info:
There's already a section to skip over some heredocs, but only ones following an assignment '=', lines 86-96 in /usr/lib/rpm/perl.req. It should be pretty simple to tweak that to at least allow it to work for heredocs following "echo" & "print" as well. I'm not sure that there aren't other uses for "<<", but maybe it would be for the best to just count it as heredoc opening regardless of what comes before it on the line? If that leads to skipping all the rest of the file in some cases, well, that would be a bad thing.

Comment 1 Fedora Update System 2015-02-10 11:24:29 UTC
perl-generators-1.03-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/perl-generators-1.03-1.fc21

Comment 2 Fedora Update System 2015-02-15 03:28:54 UTC
Package perl-generators-1.03-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing perl-generators-1.03-1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-2069/perl-generators-1.03-1.fc21
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2015-02-23 23:28:23 UTC
perl-generators-1.03-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


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