update to 6.511 [release 6.511-1mamba;Sun Nov 13 2016]

This commit is contained in:
Silvan Calarco 2024-01-06 08:44:19 +01:00
parent 428f9abcf3
commit 5e14de0ddd
2 changed files with 21 additions and 2 deletions

View File

@ -0,0 +1,14 @@
--- a/Coro/State.xs
+++ b/Coro/State.xs
@@ -1412,7 +1412,11 @@
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);

View File

@ -1,16 +1,17 @@
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) %define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Coro Name: perl-Coro
Version: 6.42 Version: 6.511
Release: 1mamba Release: 1mamba
Summary: Coro - the only real threads in perl Summary: Coro - the only real threads in perl
Group: System/Libraries/Perl Group: System/Libraries/Perl
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Automatic Build System <autodist@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.cpan.org URL: http://www.cpan.org
Source: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Coro-%{version}.tar.gz Source: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Coro-%{version}.tar.gz
Patch0: perl-Coro-5.25-ucontext-default.patch Patch0: perl-Coro-5.25-ucontext-default.patch
Patch1: perl-Coro-6.511-perl-5.24.patch
License: GPL, Artistic License: GPL, Artistic
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
@ -41,6 +42,7 @@ This module collection manages continuations in general, most often in the form
%prep %prep
%setup -q -n Coro-%{version} %setup -q -n Coro-%{version}
%patch0 -p1 %patch0 -p1
%patch1 -p1
sed -i -e '/^#!/ s|.*|#!%{__perl}|' eg/myhttpd Coro/jit-*-unix.pl sed -i -e '/^#!/ s|.*|#!%{__perl}|' eg/myhttpd Coro/jit-*-unix.pl
@ -77,6 +79,9 @@ chmod -R u+w %{buildroot}/*
# README README.linux-glibc doc/* eg # README README.linux-glibc doc/* eg
%changelog %changelog
* Sun Nov 13 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 6.511-1mamba
- update to 6.511
* Sat Feb 14 2015 Automatic Build System <autodist@mambasoft.it> 6.42-1mamba * Sat Feb 14 2015 Automatic Build System <autodist@mambasoft.it> 6.42-1mamba
- automatic update by autodist - automatic update by autodist