[perl] post-patch of perl 5.6 for perl 5.00503

The best reference is always PR.
Let’s take a look at ports/96304.
See the “post-patch:” section:
post-patch:
@${PERL} -pi -e 's/^our (\W\w+);/use vars q($$1);/o;' \
-e 's/^our\s+(\W\w+)(?!;)/use vars q($$1); $$1/o;' \
-e 'undef $$_ if /^\s*(no|use) warnings/o;' \
files_you_need_to_patch_for_perl_5.00503

Okay, that should fix lots of ports which broken in perl 5.00503. Examples of error like:

Could not eval ‘
package ExtUtils::MakeMaker::_version;
no strict;

local $VERSION;
$VERSION=undef; do {
our $VERSION = “0.003″;
}; $VERSION
‘ in lib/XXX/YYY.pm: Can’t modify subroutine entry in scalar assignment at (eval 6) line 7, at EOF

But the best way, IMHO, is mark IGNORE and encourage users to upgrade their perl version to latest one :)

0 Responses to “[perl] post-patch of perl 5.6 for perl 5.00503”


  • No Comments

Leave a Reply

It sounds like SK2 has recently been updated on this blog. But not fully configured. You MUST visit Spam Karma's admin page at least once before letting it filter your comments (chaos may ensue otherwise).