svn commit: r425278 - in head/devel/p5-Coro: . files
Kurt Jaeger
pi at FreeBSD.org
Thu Nov 3 22:58:28 UTC 2016
Author: pi
Date: Thu Nov 3 22:58:27 2016
New Revision: 425278
URL: https://svnweb.freebsd.org/changeset/ports/425278
Log:
devel/p5-Coro: add patch to work with perl 5.24 and up
- Patch from debian as described in
https://rt.cpan.org/Public/Bug/Display.html?id=114708
PR: 214168
Reported by: tom
Approved by: mat
Modified:
head/devel/p5-Coro/Makefile
head/devel/p5-Coro/files/patch-Coro-State.xs
head/devel/p5-Coro/files/patch-Coro-libcoro-coro.c
Modified: head/devel/p5-Coro/Makefile
==============================================================================
--- head/devel/p5-Coro/Makefile Thu Nov 3 22:32:26 2016 (r425277)
+++ head/devel/p5-Coro/Makefile Thu Nov 3 22:58:27 2016 (r425278)
@@ -3,6 +3,7 @@
PORTNAME= Coro
PORTVERSION= 6.51.1
PORTEPOCH= 1
+PORTREVISION= 1
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -37,8 +38,8 @@ perl_OLD_CMD= /.*/bin/perl
.include <bsd.port.pre.mk>
-.if ${PERL_LEVEL} >= 502200
-BROKEN= Perl >= 5.22 is not supported
+.if ${PERL_LEVEL} >= 502200 && ${PERL_LEVEL} < 502400
+BROKEN= Perl >= 5.22 and < 5.24 is not supported
.endif
post-install:
Modified: head/devel/p5-Coro/files/patch-Coro-State.xs
==============================================================================
--- head/devel/p5-Coro/files/patch-Coro-State.xs Thu Nov 3 22:32:26 2016 (r425277)
+++ head/devel/p5-Coro/files/patch-Coro-State.xs Thu Nov 3 22:58:27 2016 (r425278)
@@ -1,4 +1,4 @@
---- Coro/State.xs.orig 2015-06-30 12:32:08 UTC
+--- Coro/State.xs.orig 2016-06-26 21:44:30 UTC
+++ Coro/State.xs
@@ -102,6 +102,10 @@ static int cctx_max_idle = 4;
#include "CoroAPI.h"
@@ -11,3 +11,15 @@
#ifdef USE_ITHREADS
# if CORO_PTHREAD
static void *coro_thx;
+@@ -1412,7 +1416,11 @@ runops_trace (pTHX)
+ PUSHMARK (SP);
+ PUSHs (&PL_sv_yes);
+ PUSHs (fullname);
++#if PERL_VERSION_ATLEAST(5,24,0)
++ PUSHs (CxHASARGS (cx) ? sv_2mortal (newRV_inc (PL_curpad[0])) : &PL_sv_undef);
++#else
+ PUSHs (CxHASARGS (cx) ? sv_2mortal (newRV_inc ((SV *)cx->blk_sub.argarray)) : &PL_sv_undef);
++#endif
+ PUTBACK;
+ cb = hv_fetch ((HV *)SvRV (coro_current), "_trace_sub_cb", sizeof ("_trace_sub_cb") - 1, 0);
+ if (cb) call_sv (*cb, G_KEEPERR | G_EVAL | G_VOID | G_DISCARD);
Modified: head/devel/p5-Coro/files/patch-Coro-libcoro-coro.c
==============================================================================
--- head/devel/p5-Coro/files/patch-Coro-libcoro-coro.c Thu Nov 3 22:32:26 2016 (r425277)
+++ head/devel/p5-Coro/files/patch-Coro-libcoro-coro.c Thu Nov 3 22:58:27 2016 (r425278)
@@ -1,4 +1,4 @@
---- Coro/libcoro/coro.c.orig 2012-12-21 04:57:20 UTC
+--- Coro/libcoro/coro.c.orig 2015-12-10 10:24:21 UTC
+++ Coro/libcoro/coro.c
@@ -38,6 +38,7 @@
* go to Ralf S. Engelschall <rse at engelschall.com>.
More information about the svn-ports-all
mailing list