FreeBSD Bugzilla – Attachment 179830 Details for
Bug 216531
devel/p5-Event-Lib: fails to build with libevent >= 2.1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Unbreak devel/p5-Event-Lib: unbreak after libevent 2.1 import
devel-p5-Event-Lib-Unbreak-after-libevent-2.1-import.diff (text/plain), 3.04 KB, created by
Fabian Keil
on 2017-02-10 14:58:03 UTC
(
hide
)
Description:
Unbreak devel/p5-Event-Lib: unbreak after libevent 2.1 import
Filename:
MIME Type:
Creator:
Fabian Keil
Created:
2017-02-10 14:58:03 UTC
Size:
3.04 KB
patch
obsolete
>From 42b07852b24aa57215be5872adb0d5941d4d95e4 Mon Sep 17 00:00:00 2001 >From: Fabian Keil <fk@fabiankeil.de> >Date: Fri, 10 Feb 2017 14:40:21 +0100 >Subject: [PATCH] devel/p5-Event-Lib: Unbreak after libevent 2.1 import > >- Add patch to compile with libevent 2.1 (only compile-tested!) >- Run existing patch through makepatch >- Drop maintainership as I no longer use this port >--- > devel/p5-Event-Lib/Makefile | 6 ++---- > devel/p5-Event-Lib/files/patch-Lib.xs | 11 +++++++++++ > devel/p5-Event-Lib/files/patch-Makefile.PL | 14 ++++++-------- > 3 files changed, 19 insertions(+), 12 deletions(-) > create mode 100644 devel/p5-Event-Lib/files/patch-Lib.xs > >diff --git a/devel/p5-Event-Lib/Makefile b/devel/p5-Event-Lib/Makefile >index 279769321085..c0b03c453e82 100644 >--- a/devel/p5-Event-Lib/Makefile >+++ b/devel/p5-Event-Lib/Makefile >@@ -3,18 +3,16 @@ > > PORTNAME= Event-Lib > PORTVERSION= 1.03 >-PORTREVISION= 5 >+PORTREVISION= 6 > CATEGORIES= devel perl5 > MASTER_SITES= CPAN > PKGNAMEPREFIX= p5- > >-MAINTAINER= fk@fabiankeil.de >+MAINTAINER= ports@freebsd.org > COMMENT= Makes libevent(3) accessible with Perl > > LIB_DEPENDS= libevent.so:devel/libevent2 > >-BROKEN= fails to build with libevent 2.1 >- > USES= perl5 > USE_PERL5= configure > >diff --git a/devel/p5-Event-Lib/files/patch-Lib.xs b/devel/p5-Event-Lib/files/patch-Lib.xs >new file mode 100644 >index 000000000000..d9c1f2b7304e >--- /dev/null >+++ b/devel/p5-Event-Lib/files/patch-Lib.xs >@@ -0,0 +1,11 @@ >+--- Lib.xs.orig 2007-07-29 11:02:37 UTC >++++ Lib.xs >+@@ -125,6 +125,8 @@ void free_args (struct event_args *args) >+ Safefree(args); >+ } >+ >++#define ev_arg ev_evcallback.evcb_arg >++ >+ void refresh_event (struct event_args *args, char *class) { >+ SV *sv = newSV(0); >+ sv_setref_pv(sv, class, (void*)args); >diff --git a/devel/p5-Event-Lib/files/patch-Makefile.PL b/devel/p5-Event-Lib/files/patch-Makefile.PL >index 6e2bc8fcfbb6..123d246521ae 100644 >--- a/devel/p5-Event-Lib/files/patch-Makefile.PL >+++ b/devel/p5-Event-Lib/files/patch-Makefile.PL >@@ -1,6 +1,6 @@ >---- Makefile.PL.orig Tue Mar 7 08:37:40 2006 >-+++ Makefile.PL Mon Jun 5 23:31:13 2006 >-@@ -2,7 +2,11 @@ >+--- Makefile.PL.orig 2007-07-29 11:14:02 UTC >++++ Makefile.PL >+@@ -2,7 +2,11 @@ use 5.006; > use ExtUtils::MakeMaker; > use Config; > >@@ -13,9 +13,7 @@ > > # purge @ARGV of CCFLAGS > >---- Makefile.PL >-+++ Makefile.PL >-@@ -17,8 +17,9 @@ sub have_libevent { >+@@ -13,8 +17,9 @@ sub have_libevent { > my $LIBS = $args{ LIBS } || "-levent"; > my $INC = $args{ INC } || "-I/usr/include"; > if ($^O eq "freebsd") { >@@ -27,7 +25,7 @@ > } > elsif ($^O eq "darwin") { > $LIBS = "$LIBS -L/sw/lib -L/opt/local/lib"; >-@@ -59,8 +60,9 @@ sub get_defines { >+@@ -55,8 +60,9 @@ sub get_defines { > my $LIBS = $args{ LIBS } || "-levent"; > my $INC = $args{ INC } || "-I/usr/include"; > if ($^O eq "freebsd") { >@@ -39,7 +37,7 @@ > } > elsif ($^O eq "darwin") { > $LIBS = "-L/sw/lib -L/opt/local/lib $LIBS"; >-@@ -100,6 +102,12 @@ EOD >+@@ -96,6 +102,12 @@ EOD > > $args{LIBS} = '-levent -lm' if ! exists $args{LIBS}; > >-- >2.11.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
fk
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 216531
: 179830