Hi Gerald,
I've managed to build Embperl against Perl 5.22. The main issue was
the PL_sv_objcount removal in Perl 5.22 which was unexpectedly easy to
fix.
What took me hours instead was to get the test suite passing with Perl
5.22 afterwards. There are four types of fixes in the test suite:
* Bumping "ok" identation from 30 to 50 because the test suite bails
out if "' 'x (30-length($some_string)" tries to use a negative
amount.
* Shebang lines with quotes no more seem to not work with current
Apache versions, so I had to fix #!"/usr/bin/perl" to
#!/usr/bin/perl. Not sure if this was always like this and Apache
suddenly bails out here or if Perl 5.22 suddenly adds quotes.
* The error message "Error in Perl code: Global symbol "$d"; requires
explicit package name" gained some additional comment in
parentheses.
* But in most cases of failing tests I had to enforce numeric context
inside [+ +], e.g. [+ 0+$udat{something} +] or [+ 0+keys %a +]. I've
quickly skimmed through perl5220delta and found no change which
could explain that. So these cases may actually show another
5.22-related bug in Embperl which I haven't fixed (but rather
hidden) with this patch. Use with care.
I'd be very happy if you could have a look especially the latter type
of change and check if those context enforcements are indeed now
needed with Perl 5.22 or if this is some other bug in Embperl. (A
patch is of course welcome in the latter case, but if your time is
scarce, already a comment with your gut feeling would be appreciated.)
The current patch is at
https://anonscm.debian.org/cgit/pkg-perl/packages/libembperl-perl.git/tree/debian/patches/perl5.22-compat-PL_sv_objcount-removal.patch
but I've also attached it to this mail for archive purposes.
Kind regards, Axel
--
/~\ Plain Text Ribbon Campaign | Axel Beckert
\ / Say No to HTML in E-Mail and News | abe@deuxchevaux.org (Mail)
X See
http://www.nonhtmlmail.org/campaign.html | abe@noone.org (Mail+Jabber)
/ \ I love long mails:
http://email.is-not-s.ms/ |
http://abe.noone.org/ (Web)