Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improves perl 5.8 support #182

Merged
merged 3 commits into from Nov 27, 2017
Merged

improves perl 5.8 support #182

merged 3 commits into from Nov 27, 2017

Conversation

skaji
Copy link
Member

@skaji skaji commented Nov 24, 2017

This PR improves perl 5.8 support.

(A) 34d26b1

Currently Xslate cannot be built on perl 5.8 with Devel::PPPort 3.33+.
This commit will fix this.
See also Dual-Life/Devel-PPPort#42

(B) f9258de

Currently t/900_bugs/030_issue71.t fails on perl 5.8.

In recent perl, SvUPGRADE(av, SVt_PVAV) makes the av AvREAL_only,
so that av_fill() frees deleted elements.
https://github.com/Perl/perl5/blob/v5.26.1/sv.c#L1357
https://github.com/Perl/perl5/blob/v5.26.1/av.c#L860-L865

On the other hand, in perl 5.8, SvUPGRADE(av, SVt_PVAV) does NOT make the av AvREAL_only,
so that av_fill() does NOT free deleted elements, and it implies memory leaks.
https://github.com/Perl/perl5/blob/perl-5.8.5/sv.c#L1462-L1476
https://github.com/Perl/perl5/blob/perl-5.8.5/av.c#L767-L772

The commit f9258de makes newframe AvREAL_only (= AvREIFY_off + AvREAL_on) explicitly.

(C) 2e5392a

Use version->declare syntax; otherwise we'll get:

❯ XSLATE=xs perl -Mblib -MText::Xslate -e1
Text::Xslate object version v3.4.0 does not match bootstrap parameter 3.4.0 at /Users/skaji/env/plenv/versions/5.8.5/lib/perl5/5.8.5/darwin-2level/DynaLoader.pm line 253.

@skaji skaji merged commit 62a42ca into xslate:master Nov 27, 2017
@skaji skaji deleted the perl-5.8 branch November 27, 2017 15:38
skaji added a commit that referenced this pull request Nov 30, 2017
Changelog diff is:

diff --git a/Changes b/Changes
index 6160d1e7..605d1077 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,15 @@
 Revision history for Perl extension Text::Xslate

+{{$NEXT}}
+
+v3.5.0 2017-11-30T15:57:50Z
+    - Migrate to using minil (#179)
+    - Improve perl 5.8 support (#182)
+    - Use version->declare() to declare $VERSION (#182)
+    - Make `prove -br t` work with dot-not-in-INC perls (#184)
+    - Run tests against both XS and pureperl (#185)
+    - Fix typo (anirvan #181)
+
 3.4.0 2017-01-20 15:00:00+0900
     - Fix tied hash issue(#173)
     - Fix encoding issue(#160)
skaji added a commit that referenced this pull request Nov 30, 2017
Changelog diff is:

diff --git a/Changes b/Changes
index 605d1077..38f53e26 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,9 @@ Revision history for Perl extension Text::Xslate

 {{$NEXT}}

+v3.5.1 2017-11-30T16:09:33Z
+    - Fix packaging issue; explicitly declare version for Text::Xslate::Engine
+
 v3.5.0 2017-11-30T15:57:50Z
     - Migrate to using minil (#179)
     - Improve perl 5.8 support (#182)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant