mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 04:39:07 -07:00
dev-perl/EV: fix build w/ perl-5.42
Closes: https://bugs.gentoo.org/959141 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -18,10 +18,13 @@ RDEPEND="
|
||||
"
|
||||
BDEPEND="
|
||||
${RDEPEND}
|
||||
virtual/perl-ExtUtils-MakeMaker
|
||||
dev-perl/Canary-Stability
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-4.34-perl-5.42.patch
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
# See bug #855869 and its large number of dupes in bundled libev copies.
|
||||
filter-lto
|
||||
|
||||
17
dev-perl/EV/files/EV-4.34-perl-5.42.patch
Normal file
17
dev-perl/EV/files/EV-4.34-perl-5.42.patch
Normal file
@@ -0,0 +1,17 @@
|
||||
https://bugs.gentoo.org/959141
|
||||
https://github.com/Perl/perl5/issues/22353#issuecomment-2907796786
|
||||
--- a/typemap
|
||||
+++ b/typemap
|
||||
@@ -37,9 +37,9 @@ T_LOOP
|
||||
|
||||
T_WATCHER
|
||||
if (!(SvROK ($arg) && SvOBJECT (SvRV ($arg))
|
||||
- && (SvSTASH (SvRV ($arg)) == stash_" . ($type =~ /ev_(\S+)/, "$1") . "
|
||||
- || sv_derived_from ($arg, \"EV::" . ($type =~ /ev_(\S+)/, ucfirst "$1") . "\"))))
|
||||
- croak (\"object is not of type EV::" . ($type =~ /ev_(\S+)/, ucfirst "$1") . "\");
|
||||
+ && (SvSTASH (SvRV ($arg)) == stash_${ ($type =~ /ev_(\S+)/, \qq{$1}) }
|
||||
+ || sv_derived_from ($arg, \"EV::${ ($type =~ /ev_(\S+)/, \ucfirst qq{$1}) }\"))))
|
||||
+ croak (\"object is not of type EV::${ ($type =~ /ev_(\S+)/, \ucfirst qq{$1}) }\");
|
||||
$var = ($type)SvPVX (SvRV ($arg));
|
||||
|
||||
OUTPUT
|
||||
Reference in New Issue
Block a user