Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 594722

Summary: app-misc/muttprint-0.73-r3 patch for perl 5.22 unescaped left brace in regex deprecated warning
Product: Gentoo Linux Reporter: Bob Johnson <bob>
Component: Current packagesAssignee: Chema Alonso Josa (RETIRED) <nimiux>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fix perl 5.22 'left brace in regex deprecated' warnings

Description Bob Johnson 2016-09-21 19:44:10 UTC
Created attachment 447234 [details, diff]
Fix perl 5.22 'left brace in regex deprecated' warnings

With the recent stabilization of perl 5.22, app-misc/muttprint-0.73-r3 now returns the following warnings when printing from mutt:

Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\newlabel{ <-- HERE LastPage}{{}{(\d+)}}/ at /usr/bin/muttprint line 1638.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\newlabel{LastPage}{ <-- HERE {}{(\d+)}}/ at /usr/bin/muttprint line 1638.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\newlabel{LastPage}{{ <-- HERE }{(\d+)}}/ at /usr/bin/muttprint line 1638.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\newlabel{LastPage}{{}{ <-- HERE (\d+)}}/ at /usr/bin/muttprint line 1638.

These warnings will become errors in perl 5.26 apparently. The simple patch to resolve these warnings is attached.
Comment 1 Chema Alonso Josa (RETIRED) gentoo-dev 2016-09-23 08:45:08 UTC
Thanks for the report and patch. Will push it as soon as I can.
Comment 2 Chema Alonso Josa (RETIRED) gentoo-dev 2016-09-23 12:03:03 UTC
Done:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5b4bada329039b84af4b31a81378f8befdabf53

Right now I don't have the hardware to test it. Please test and reopen if necessary.
Comment 3 Bob Johnson 2016-09-23 14:57:15 UTC
app-misc/muttprint-0.73-r4 compiles, installs, and runs fine here without the warnings from -r3. Leave as RESOLVED->FIXED. Thanks!