From owner-svn-ports-all@freebsd.org Thu Nov 3 22:58:28 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 97C92C2DF98; Thu, 3 Nov 2016 22:58:28 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 55B061D86; Thu, 3 Nov 2016 22:58:28 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uA3MwRuO005948; Thu, 3 Nov 2016 22:58:27 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uA3MwRAp005945; Thu, 3 Nov 2016 22:58:27 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201611032258.uA3MwRAp005945@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Thu, 3 Nov 2016 22:58:27 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r425278 - in head/devel/p5-Coro: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Nov 2016 22:58:28 -0000 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 -.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 .