Gentoo Archives: gentoo-commits

From: Kent Fredric <kentnl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Coro/files/, dev-perl/Coro/
Date: Mon, 11 Jul 2016 12:12:27
Message-Id: 1468238981.fedc5555ce3645f4501b0e76844c55e63a14d892.kentnl@gentoo
1 commit: fedc5555ce3645f4501b0e76844c55e63a14d892
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 11 12:07:49 2016 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 11 12:09:41 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fedc5555
7
8 dev-perl/Coro: Bump to version 6.511.0
9
10 - EAPI6
11 - Include P5P Patch for 5.24 compat with lots of warning bells.
12 - USE="vanilla" to provide the upstream experience ( which is presently broken on 5.24 )
13
14 Package-Manager: portage-2.3.0
15 RepoMan-Options: --include-arches="alpha amd64 amd64-fbsd arm arm64 hppa ia64 m68k mips nios2 ppc ppc64 riscv s390 sh sparc sparc-fbsd x86 x86-fbsd"
16
17 dev-perl/Coro/Coro-6.511.0.ebuild | 36 +++++++++++++++++++++++++
18 dev-perl/Coro/Manifest | 1 +
19 dev-perl/Coro/files/6.511.0-argarray.patch | 42 ++++++++++++++++++++++++++++++
20 3 files changed, 79 insertions(+)
21
22 diff --git a/dev-perl/Coro/Coro-6.511.0.ebuild b/dev-perl/Coro/Coro-6.511.0.ebuild
23 new file mode 100644
24 index 0000000..62ce061
25 --- /dev/null
26 +++ b/dev-perl/Coro/Coro-6.511.0.ebuild
27 @@ -0,0 +1,36 @@
28 +# Copyright 1999-2016 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +# $Id$
31 +
32 +EAPI=6
33 +
34 +DIST_AUTHOR=MLEHMANN
35 +DIST_VERSION=6.511
36 +inherit perl-module
37 +
38 +DESCRIPTION="The only real threads in perl"
39 +
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~x86"
42 +IUSE="vanilla"
43 +
44 +RDEPEND="
45 + >=dev-perl/AnyEvent-5
46 + >=dev-perl/Guard-0.500.0
47 + virtual/perl-Scalar-List-Utils
48 + >=virtual/perl-Storable-2.150.0
49 + dev-perl/common-sense
50 +"
51 +DEPEND="${RDEPEND}
52 + dev-perl/Canary-Stability
53 + >=virtual/perl-ExtUtils-MakeMaker-6.520.0
54 +"
55 +
56 +src_prepare() {
57 + if ! use vanilla; then
58 + ewarn "This release includes a 3rd party argarray patch for Perl 5.24 Compat."
59 + ewarn "Please do not contact upstream directly regarding problems arising from this."
60 + eapply "${FILESDIR}/${PV}-argarray.patch"
61 + fi
62 + perl-module_src_prepare
63 +}
64
65 diff --git a/dev-perl/Coro/Manifest b/dev-perl/Coro/Manifest
66 index 5f09f65..6255c81 100644
67 --- a/dev-perl/Coro/Manifest
68 +++ b/dev-perl/Coro/Manifest
69 @@ -1 +1,2 @@
70 DIST Coro-6.4801.tar.gz 190759 SHA256 e20d4987244ee982ffab00fc66f4897e6c9d4c8b7aa86889c19228006a60789c SHA512 2b53a4feb4d187d74d09c30c95765c2f8b416f95f7026f1d7e6fd37bc300f041fd8f72a44017036920c242d0ba7ab21bc32cf7183570fad9eeab706df60f7684 WHIRLPOOL be44764aa5a42c510721b7b7a6b17bd79acf1127667c8fd3eb8c0d92fc47e4c0110505b06425ee03ef56df5a9e8871c8f14abc9d29fa704e0628bd52521a1d78
71 +DIST Coro-6.511.tar.gz 195173 SHA256 7e3ed48cdb3f3742d94ae3ab3d088c3ab818c521f8681da6c5f656bd49ac53ea SHA512 c3e591539e3313403496d3396e68147942e45590732bbaed7b3020fdc79e1e726c3addc3fc5d5d3e173c2b3faff4de2a9d0bae19f91cdc684285c2751b809681 WHIRLPOOL 3a56fca3116d1b2b6cd727078ebed9811aa627756c08c439ee6bceabba75117c904b692bf147f251dcd978abcf63e0d0f24e9ef068adf1592c4ff9539ae64daf
72
73 diff --git a/dev-perl/Coro/files/6.511.0-argarray.patch b/dev-perl/Coro/files/6.511.0-argarray.patch
74 new file mode 100644
75 index 0000000..2434944
76 --- /dev/null
77 +++ b/dev-perl/Coro/files/6.511.0-argarray.patch
78 @@ -0,0 +1,42 @@
79 +From 38fe74765a4cbf1003cc2011559bf83b05b10e46 Mon Sep 17 00:00:00 2001
80 +From: David Mitchell <davem@×××××.com>
81 +Date: Tue, 3 May 2016 22:25:48 +0100
82 +Subject: [PATCH 3/5] Coro: handle argarray removal in 5.23.8
83 +
84 +---
85 + Coro/State.xs | 12 +++++++++++-
86 + 1 file changed, 11 insertions(+), 1 deletion(-)
87 +
88 +diff --git a/Coro/State.xs b/Coro/State.xs
89 +index 93c2c5b..28264c5 100644
90 +--- a/Coro/State.xs
91 ++++ b/Coro/State.xs
92 +@@ -1415,6 +1415,7 @@ runops_trace (pTHX)
93 + if (CxTYPE (cx) == CXt_SUB && oldcxix < cxstack_ix)
94 + {
95 + dSP;
96 ++ AV *argarray;
97 + GV *gv = CvGV (cx->blk_sub.cv);
98 + SV *fullname = sv_2mortal (newSV (0));
99 +
100 +@@ -1428,7 +1429,16 @@ runops_trace (pTHX)
101 + PUSHMARK (SP);
102 + PUSHs (&PL_sv_yes);
103 + PUSHs (fullname);
104 +- PUSHs (CxHASARGS (cx) ? sv_2mortal (newRV_inc ((SV *)cx->blk_sub.argarray)) : &PL_sv_undef);
105 ++ argarray =
106 ++# if PERL_VERSION_ATLEAST(5,23,8)
107 ++ ((AV*)(AvARRAY(MUTABLE_AV(
108 ++ PadlistARRAY(CvPADLIST(cx->blk_sub.cv))[
109 ++ CvDEPTH(cx->blk_sub.cv)]))[0]));
110 ++#else
111 ++ cx->blk_sub.argarray;
112 ++#endif
113 ++
114 ++ PUSHs (CxHASARGS (cx) ? sv_2mortal (newRV_inc ((SV *)argarray)) : &PL_sv_undef);
115 + PUTBACK;
116 + cb = hv_fetch ((HV *)SvRV (coro_current), "_trace_sub_cb", sizeof ("_trace_sub_cb") - 1, 0);
117 + if (cb) call_sv (*cb, G_KEEPERR | G_EVAL | G_VOID | G_DISCARD);
118 +--
119 +2.4.11
120 +