====== 2014.05.28 sa-update Error ====== 2日前くらいからsa-updateでエラーが出るようになってた。。。 どうもperl 5.10に上げる必要があるようです。 [[https://issues.apache.org/SpamAssassin/show_bug.cgi?id=7108]] === エラー === config: invalid regexp for rule __PDS_FROM_2_EMAILS: /^\W+([\w+.-]+\@[\w.-]+\.\w\w++)(?:[^\n\w<]{0,80})?<(?!\1)[^\n\s]*\@/i: Nested quantifiers in regex; marked by <-- HERE in m/(?i)^\W+([\w+.-]+\@[\w.-]+\.\w\w++ <-- HERE )(?:[^\n\w<]{0,80})?<(?!\1)[^\n\s]*\@/ channel: lint check of update failed, channel failed ===== 対処 ===== 他のアプリもあるので、とりあえずsa-update だけ perl-5.10 を利用するよう修正しておきました。 === perl-5.10.1 インストール === # wget http://www.cpan.org/src/5.0/perl-5.10.1.tar.g # tar zxvf perl-5.10.1.tar.g # cd perl-5.10.1 # ./configure.gnu --prefix /usr/local/perl-5.10.1 # make # make install === 確認 === # /usr/local/perl-5.10.1/bin/perl -v This is perl, v5.10.1 (*) built for x86_64-linux Copyright 1987-2009, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. === cpanで必要なモジュールインストール === # /usr/local/perl-5.10.1/bin/cpan cpan[1]> install Digest::HMAC cpan[1]> install Net::DNS cpan[1]> install NetAddr::IP cpan[1]> install HTML::Tagset cpan[1]> install HTML::Parser === sa-updateを修正 === # cp /usr/bin/sa-update /usr/bin/sa-update.org # diff -u /usr/bin/sa-update.org /usr/bin/sa-update --- /usr/bin/sa-update.org 2014-11-28 16:31:37.000000000 +0900 +++ /usr/bin/sa-update 2014-11-28 16:01:18.000000000 +0900 @@ -1,4 +1,4 @@ -#!/usr/bin/perl -T -w +#!/usr/local/perl-5.10.1/bin/perl -T -w eval 'exec /usr/bin/perl -T -w -S $0 ${1+"$@"}' if 0; # not running under some shell === これでエラーが出なくなる === # sa-update -v Update finished, no fresh updates were available {{tag>日記 security}}