[perl] post-patch of perl 5.6 for perl 5.00503
Published August 16th, 2006 in FreeBSDThe 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 (Ww+);/use vars q($$1);/o;' -e 's/^ours+(Ww+)(?!;)/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
No Responses to “[perl] post-patch of perl 5.6 for perl 5.00503”
Please Wait
Leave a Reply