Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 594722 - app-misc/muttprint-0.73-r3 patch for perl 5.22 unescaped left brace in regex deprecated warning
Summary: app-misc/muttprint-0.73-r3 patch for perl 5.22 unescaped left brace in regex ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chema Alonso Josa (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-21 19:44 UTC by Bob Johnson
Modified: 2016-09-23 14:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix perl 5.22 'left brace in regex deprecated' warnings (muttprint-0.73-leftbrace.patch,591 bytes, patch)
2016-09-21 19:44 UTC, Bob Johnson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!