rebuilt with patch against libevent 2.1 [release 1.03-5mamba;Sun Dec 06 2020]
This commit is contained in:
parent
334638e537
commit
e26c20746b
38
perl-Event-Lib-1.03-libevent-2.1.patch
Normal file
38
perl-Event-Lib-1.03-libevent-2.1.patch
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
--- Event-Lib-1.04/Lib.xs~ 2014-09-23 09:06:55.000000000 +0200
|
||||||
|
+++ Event-Lib-1.04/Lib.xs 2017-04-04 19:35:35.623351764 +0200
|
||||||
|
@@ -128,7 +128,7 @@
|
||||||
|
void refresh_event (struct event_args *args, char *class) {
|
||||||
|
SV *sv = newSV(0);
|
||||||
|
sv_setref_pv(sv, class, (void*)args);
|
||||||
|
- args->ev.ev_arg = (void*)sv;
|
||||||
|
+ args->ev.ev_evcallback.evcb_arg = (void*)sv;
|
||||||
|
}
|
||||||
|
|
||||||
|
SV * do_exception_handler (pTHX_ short event, SV *ev, SV *err) {
|
||||||
|
@@ -208,7 +208,7 @@
|
||||||
|
* handlers, in which case the ref-cnt has already been decremented */
|
||||||
|
if (!event_pending(&args->ev, event, NULL)) {
|
||||||
|
EvEVENT_SET_off(args);
|
||||||
|
- SvREFCNT_dec((SV*)args->ev.ev_arg);
|
||||||
|
+ SvREFCNT_dec((SV*)args->ev.ev_evcallback.evcb_arg);
|
||||||
|
if (SvOK(ev))
|
||||||
|
DEBUG_trace(args);
|
||||||
|
}
|
||||||
|
@@ -582,7 +582,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Nope, it's another event so it's ok to increment the ref-cnt */
|
||||||
|
- SvREFCNT_inc((SV*)args->ev.ev_arg);
|
||||||
|
+ SvREFCNT_inc((SV*)args->ev.ev_evcallback.evcb_arg);
|
||||||
|
DEBUG_record_event(aTHX_ ST(0));
|
||||||
|
DEBUG_trace(args);
|
||||||
|
XSRETURN(1);
|
||||||
|
@@ -689,7 +689,7 @@
|
||||||
|
/* We are not using ST(0) here but instead the loop-back
|
||||||
|
* object stored inside the event because this is what is
|
||||||
|
* decremented in do_callback and incremented in event_add */
|
||||||
|
- SvREFCNT_dec((SV*)args->ev.ev_arg);
|
||||||
|
+ SvREFCNT_dec((SV*)args->ev.ev_evcallback.evcb_arg);
|
||||||
|
|
||||||
|
DEBUG_trace(args);
|
||||||
|
}
|
@ -2,18 +2,18 @@
|
|||||||
|
|
||||||
Name: perl-Event-Lib
|
Name: perl-Event-Lib
|
||||||
Version: 1.03
|
Version: 1.03
|
||||||
Release: 4mamba
|
Release: 5mamba
|
||||||
Summary: Event::Lib - Perl wrapper around libevent
|
Summary: Event::Lib - Perl wrapper around libevent
|
||||||
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/V/VP/VPARSEVAL/Event-Lib-%{version}.tar.gz
|
Source: http://search.cpan.org/CPAN/authors/id/V/VP/VPARSEVAL/Event-Lib-%{version}.tar.gz
|
||||||
Patch0: %{name}-1.03-arm-fix-missing-off64_t.patch
|
Patch0: %{name}-1.03-arm-fix-missing-off64_t.patch
|
||||||
|
Patch1: perl-Event-Lib-1.03-libevent-2.1.patch
|
||||||
License: Artistic, GPL
|
License: Artistic, GPL
|
||||||
Requires: perl >= %perl_major_ver
|
Requires: perl >= %perl_major_ver
|
||||||
|
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
BuildRequires: libevent-devel
|
BuildRequires: libevent-devel
|
||||||
@ -29,6 +29,7 @@ This module is a Perl wrapper around libevent as available from http://monkey.or
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n Event-Lib-%{version}
|
%setup -q -n Event-Lib-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
||||||
@ -56,6 +57,9 @@ rm -f .packlist
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Dec 06 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.03-5mamba
|
||||||
|
- rebuilt with patch against libevent 2.1
|
||||||
|
|
||||||
* Wed Nov 09 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.03-4mamba
|
* Wed Nov 09 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.03-4mamba
|
||||||
- rebuilt with perl 5.24
|
- rebuilt with perl 5.24
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user