Created attachment 192965 [details] amavis-logwatch perl fixes Attached patch fixes mail/amavis-logwatch to work with the new perl version.
Hello, Niclas. Thanks for submitting this patch. Could you briefly explain why it's necessary, please? The same for PR 227895. I'm not a Perl programmer :) Thanks and sorry the delay!
Hi! Newever versions of perl gives syntax errors and the code won't execute without these changes. Older versions gave warnings like this: Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^(CLEAN|SPAM(?:MY)?|INFECTED \(.*?\)|BANNED \(.*?\)|BAD-HEADER(?:-\d)?|UNCHECKED|MTA-BLOCKED|OVERSIZED|OTHER|TEMPFAIL)(?: { <-- HERE [^}]+})?, ([^[]+ )?(?:([^<]+) )?[<(](.*?)[>)] -> ([(<].*?[)>]), (?:.*Hits: ([-+.\d]+))(?:.* size: (\d+))?(?:.* autolearn=(\w+))?/ at /usr/local/bin/amavis-logwatch line 2286. Redundant argument in sprintf at /usr/local/bin/amavis-logwatch line 1338, <> line 20223. But they have since been turned to errors.
A commit references this bug: Author: danilo Date: Thu Jun 21 21:53:00 UTC 2018 New revision: 473006 URL: https://svnweb.freebsd.org/changeset/ports/473006 Log: - Fix regex handling with the new perl version [1] [1] Unescaped left brace in regex is deprecated, passed through in regex PR: 227896 Submitted by: zeising Changes: head/mail/amavis-logwatch/Makefile head/mail/amavis-logwatch/files/ head/mail/amavis-logwatch/files/patch-amavis-logwatch
Committed, thanks!