1 |
commit: c0d8b207d29614a6a5c19108d30176a7e6eae3c7 |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 25 21:58:41 2017 +0000 |
4 |
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 25 21:58:58 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0d8b207 |
7 |
|
8 |
dev-perl/Coro: Add Perl 5.26 compatibility patch, bug 615520 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
dev-perl/Coro/Coro-6.511.0.ebuild | 7 ++-- |
13 |
dev-perl/Coro/files/6.511.0-padoffset.patch | 60 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 64 insertions(+), 3 deletions(-) |
15 |
|
16 |
diff --git a/dev-perl/Coro/Coro-6.511.0.ebuild b/dev-perl/Coro/Coro-6.511.0.ebuild |
17 |
index 1b4a7fa092f..1be8e564e4b 100644 |
18 |
--- a/dev-perl/Coro/Coro-6.511.0.ebuild |
19 |
+++ b/dev-perl/Coro/Coro-6.511.0.ebuild |
20 |
@@ -1,4 +1,4 @@ |
21 |
-# Copyright 1999-2016 Gentoo Foundation |
22 |
+# Copyright 1999-2017 Gentoo Foundation |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
EAPI=6 |
26 |
@@ -27,9 +27,10 @@ DEPEND="${RDEPEND} |
27 |
|
28 |
src_prepare() { |
29 |
if ! use vanilla; then |
30 |
- ewarn "This release includes a 3rd party argarray patch for Perl 5.24 Compat." |
31 |
- ewarn "Please do not contact upstream directly regarding problems arising from this." |
32 |
+ elog "This release includes 3rd party patches for Perl 5.24 and 5.26 compatibility." |
33 |
+ elog "Please do not contact upstream directly regarding problems arising from this." |
34 |
eapply "${FILESDIR}/${PV}-argarray.patch" |
35 |
+ eapply "${FILESDIR}/${PV}-padoffset.patch" |
36 |
fi |
37 |
perl-module_src_prepare |
38 |
} |
39 |
|
40 |
diff --git a/dev-perl/Coro/files/6.511.0-padoffset.patch b/dev-perl/Coro/files/6.511.0-padoffset.patch |
41 |
new file mode 100644 |
42 |
index 00000000000..2fb34c0791b |
43 |
--- /dev/null |
44 |
+++ b/dev-perl/Coro/files/6.511.0-padoffset.patch |
45 |
@@ -0,0 +1,60 @@ |
46 |
+From b48bc3a8141e5f27ce48b6f3ebbe2ba6ee7bda94 Mon Sep 17 00:00:00 2001 |
47 |
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@××××××.com> |
48 |
+Date: Tue, 23 May 2017 15:12:06 +0200 |
49 |
+Subject: [PATCH] Adjust comppad_name_ variable sizes to Perl 5.26.0 |
50 |
+MIME-Version: 1.0 |
51 |
+Content-Type: text/plain; charset=UTF-8 |
52 |
+Content-Transfer-Encoding: 8bit |
53 |
+ |
54 |
+Perl 5.26.0 changed some variable types in this commit: |
55 |
+ |
56 |
+commit d12be05dd0210a08e077f0cc9586a5a963122547 |
57 |
+Author: David Mitchell <davem@×××××.com> |
58 |
+Date: Mon Sep 26 15:56:08 2016 +0100 |
59 |
+ |
60 |
+ make PL_ pad vars be of type PADOFFSET |
61 |
+ |
62 |
+ Now that that PADOFFSET is signed, make |
63 |
+ |
64 |
+ PL_comppad_name_fill |
65 |
+ PL_comppad_name_floor |
66 |
+ PL_padix |
67 |
+ PL_constpadix |
68 |
+ PL_padix_floor |
69 |
+ PL_min_intro_pending |
70 |
+ PL_max_intro_pending |
71 |
+ |
72 |
+ be of type PADOFFSET rather than I32, to match the rest of the pad |
73 |
+ interface. |
74 |
+ |
75 |
+ At the same time, change various I32 local vars in pad.c functions to be |
76 |
+ PADOFFSET. |
77 |
+ |
78 |
+This patch adjusts Coro to the changes. |
79 |
+ |
80 |
+Signed-off-by: Petr Písař <ppisar@××××××.com> |
81 |
+--- |
82 |
+ Coro/state.h | 5 +++++ |
83 |
+ 1 file changed, 5 insertions(+) |
84 |
+ |
85 |
+diff --git a/Coro/state.h b/Coro/state.h |
86 |
+index 9a3e84f..8d6d067 100644 |
87 |
+--- a/Coro/state.h |
88 |
++++ b/Coro/state.h |
89 |
+@@ -83,8 +83,13 @@ VAR(compcv, CV *) /* currently compiling subroutine */ |
90 |
+ |
91 |
+ VAR(comppad, AV *) /* storage for lexically scoped temporaries */ |
92 |
+ VAR(comppad_name, AV *) /* variable names for "my" variables */ |
93 |
++#if PERL_VERSION_ATLEAST (5,25,6) |
94 |
++VAR(comppad_name_fill, PADOFFSET) /* last "introduced" variable offset */ |
95 |
++VAR(comppad_name_floor, PADOFFSET) /* start of vars in innermost block */ |
96 |
++#else |
97 |
+ VAR(comppad_name_fill, I32) /* last "introduced" variable offset */ |
98 |
+ VAR(comppad_name_floor, I32) /* start of vars in innermost block */ |
99 |
++#endif |
100 |
+ |
101 |
+ VAR(runops, runops_proc_t) /* for tracing support */ |
102 |
+ |
103 |
+-- |
104 |
+2.9.4 |
105 |
+ |