Bug 1009919

Summary: perl-5.18: Regexp::Grammars does not work due to bug in perl
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perlAssignee: Jitka Plesnikova <jplesnik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: cweyl, iarnell, jplesnik, kasal, mhroncok, perl-devel, ppisar, psabata, rc040203, tcallawa, wfp5p
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://www.nntp.perl.org/group/perl.perl5.porters/2013/06/msg203770.html
Whiteboard:
Fixed In Version: perl-Regexp-Grammars-1.039-1.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-16 03:26:49 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: 992666    

Description Petr Pisar 2013-09-19 13:39:50 UTC
Regexp::Grammars module and dependent modules do not work with perl-5.18 (https://rt.cpan.org/Public/Bug/Display.html?id=87880, bug #992666).

It was being solved for a long time <https://rt.perl.org/rt3//Public/Bug/Display.html?id=116823>, and it seems to have been solved int the blead <http://www.nntp.perl.org/group/perl.perl5.porters/2013/07/msg204660.html>, <http://www.nntp.perl.org/group/perl.perl5.porters/2013/08/msg206163.html>.

Perl 5.18 (F≥20) is affected, e.g perl-5.18.1-288.fc21.x86_64.

Comment 1 Petr Pisar 2013-09-19 14:26:28 UTC
There is nothing interesting in maint-5.18 (f4b15169f09b515c4765903d629c5125f9070e4a) after v5.18.1. However the discussion highlights two commits worth of back-porting:

<http://www.nntp.perl.org/group/perl.perl5.porters/2013/08/msg205655.html>:

commit c3923c33af542d8764d5a1e4eb5d7b311f443b89
Author:     David Mitchell <davem>
AuthorDate: Tue Aug 6 16:34:50 2013 +0100
Commit:     David Mitchell <davem>
CommitDate: Tue Aug 6 16:44:12 2013 +0100

    reparse compile-time /(?{})/ in right scope

<http://www.nntp.perl.org/group/perl.perl5.porters/2013/07/msg205393.html>:

commit c30fc27b4df65a43710b25dd1d2a57d78ee2fe33
Author: David Mitchell <davem>
Date:   Wed Jul 31 22:41:17 2013 +0100

    Handle /[#]/ and /[(?#]/ with code blocks

Comment 2 Petr Pisar 2013-09-19 14:47:02 UTC
This:

commit c30fc27b4df65a43710b25dd1d2a57d78ee2fe33
Author: David Mitchell <davem>
Date:   Wed Jul 31 22:41:17 2013 +0100

    Handle /[#]/ and /[(?#]/ with code blocks

has been already in 5.18.1.

Comment 3 Petr Pisar 2013-09-19 14:54:31 UTC
The `reparse compile-time /(?{})/ in right scope' patch does not seem to be enough.

Comment 4 Miro Hrončok 2013-10-16 14:02:39 UTC
Is there anything I can do about this? I'm not good at fixing Perl bugs, but people are filing bugs against slic3r and that bothers me.

Comment 5 Petr Pisar 2013-10-16 14:21:04 UTC
(In reply to Miro Hrončok from comment #4)
> Is there anything I can do about this? I'm not good at fixing Perl bugs, but
> people are filing bugs against slic3r and that bothers me.

Not much. You can troll on upstream list and ask when they are going to release fixed version (or at least fix it the development tree because I'm not aware of any fix).

Comment 6 Miro Hrončok 2013-10-18 23:54:30 UTC
I was SO wrong and slic3r now builds and works. This issue is still present, but it is no longer a priority for me.

Comment 7 Bill Pemberton 2015-02-06 17:02:29 UTC
I just took a look at this again and it appears that perl-Regexp-Grammars will work with perl 5.18.4.  If I remove if test that has the module croak with the "perl 5.18 is unsupported" message, it will pass all the tests.  Also a couple of programs I have locally appear to work fine.

I've asked the author of the module if he knows of anything else that will prevent this module working on 5.18.4.  Assuming he doesn't know of anything, I can upgrade perl-Regexp-Grammars in F21 to version 1.038 to match rawhide.

Comment 8 Fedora Update System 2015-02-07 03:35:59 UTC
perl-Regexp-Grammars-1.039-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/perl-Regexp-Grammars-1.039-1.fc21

Comment 9 Fedora Update System 2015-02-08 08:58:53 UTC
Package perl-Regexp-Grammars-1.039-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-Regexp-Grammars-1.039-1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-1869/perl-Regexp-Grammars-1.039-1.fc21
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2015-02-16 03:26:49 UTC
perl-Regexp-Grammars-1.039-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.