ports/132549: [Update]devel/p5-Coro:update to 5.13
Wen Heping
wenheping at gmail.com
Wed Mar 11 16:20:05 UTC 2009
>Number: 132549
>Category: ports
>Synopsis: [Update]devel/p5-Coro:update to 5.13
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Wed Mar 11 16:20:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Wen Heping
>Release: FreeBSD 8.0-CURRENT
>Organization:
ChangAn Middle School
>Environment:
FreeBSD fb8.wenjing.com 8.0-CURRENT-200811 FreeBSD 8.0-CURRENT-200811 #0: Thu Nov 6 00:32:12 UTC 2008 root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
update to 5.13 from 4.74.8
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -urN p5-Coro/Makefile p5-Coro.new/Makefile
--- p5-Coro/Makefile 2008-09-27 23:04:44.000000000 +0800
+++ p5-Coro.new/Makefile 2009-03-12 00:13:48.000000000 +0800
@@ -6,7 +6,7 @@
#
PORTNAME= Coro
-PORTVERSION= 4.74.8
+PORTVERSION= 5.13
PORTEPOCH= 1
CATEGORIES= devel perl5
MASTER_SITES= CPAN
@@ -18,6 +18,8 @@
RUN_DEPENDS= p5-Event>=0.89:${PORTSDIR}/devel/p5-Event \
p5-AnyEvent>=2.5.1:${PORTSDIR}/devel/p5-AnyEvent \
+ p5-EV>=3.53:${PORTSDIR}/devel/p5-EV \
+ p5-Storable>=2.15:${PORTSDIR}/devel/p5-Storable \
${SITE_PERL}/${PERL_ARCH}/IO/AIO.pm:${PORTSDIR}/devel/p5-IO-AIO
BUILD_DEPENDS= ${RUN_DEPENDS}
@@ -28,7 +30,8 @@
Coro::LWP.3 Coro::MakeMaker.3 Coro::RWLock.3 Coro::Select.3 \
Coro::Semaphore.3 Coro::SemaphoreSet.3 Coro::Signal.3 \
Coro::Socket.3 Coro::Specific.3 Coro::State.3 Coro::Storable.3 \
- Coro::Timer.3 Coro::Util.3 Coro::Event.3
+ Coro::Timer.3 Coro::Util.3 Coro::Event.3 \
+ Coro::Intro.3 Coro::EV.3
post-install:
${MKDIR} ${EXAMPLESDIR}
diff -urN p5-Coro/distinfo p5-Coro.new/distinfo
--- p5-Coro/distinfo 2008-09-27 23:04:44.000000000 +0800
+++ p5-Coro.new/distinfo 2009-03-11 23:31:24.000000000 +0800
@@ -1,3 +1,3 @@
-MD5 (Coro-4.748.tar.gz) = 89918c35296751f289ac0d129110d925
-SHA256 (Coro-4.748.tar.gz) = fbe92572697b1534b159ee98ee99f350dcc25be4778808cdd21570338ea4e707
-SIZE (Coro-4.748.tar.gz) = 102199
+MD5 (Coro-5.13.tar.gz) = fbe6f03b4565e640ace294c448d7bf9c
+SHA256 (Coro-5.13.tar.gz) = 52398c216e7abd30d26c602a9b599b98709a54e5934bdb5a442f172411ba4e12
+SIZE (Coro-5.13.tar.gz) = 135989
diff -urN p5-Coro/files/patch-Coro-Makefile.PL p5-Coro.new/files/patch-Coro-Makefile.PL
--- p5-Coro/files/patch-Coro-Makefile.PL 2007-06-17 02:00:20.000000000 +0800
+++ p5-Coro.new/files/patch-Coro-Makefile.PL 2009-03-11 23:31:24.000000000 +0800
@@ -1,16 +1,18 @@
---- Coro/Makefile.PL.orig Sun Jun 17 01:31:38 2007
-+++ Coro/Makefile.PL Sun Jun 17 01:35:46 2007
-@@ -20,9 +20,7 @@
+--- Coro/Makefile.PL.orig 2009-03-11 22:39:55.000000000 +0800
++++ Coro/Makefile.PL 2009-03-11 22:48:31.000000000 +0800
+@@ -23,9 +23,9 @@
EOF
-if (prompt ("Skip further questions and use defaults (y/n)?", "y") =~ /[yY]/) {
++#if (prompt ("Skip further questions and use defaults (y/n)?", "y") =~ /[yY]/) {
$ENV{PERL_MM_USE_DEFAULT} = 1;
-}
++#}
$DEFINE .= " -DHAVE_MMAP" if $Config{d_mmap} eq "define" && $Config{d_munmap} eq "define";
-@@ -104,10 +102,7 @@
+@@ -164,10 +164,11 @@
retry:
@@ -18,44 +20,56 @@
- "<s>et/longjump, <u>context, <a>ssembly, <i>rix, <l>inux or <w>indows?",
- $iface;
-$iface = lc $1 if $r =~ /(\S)/;
++#my $r = prompt "Use which implementation,\n" .
++# "<s>et/longjump, <u>context, <a>ssembly, <i>rix, <l>inux or <w>indows?",
++# $iface;
++#$iface = lc $1 if $r =~ /(\S)/;
+$iface = 'u';
if ($iface eq "u") {
$DEFINE .= " -DCORO_UCONTEXT";
-@@ -165,7 +160,7 @@
+@@ -232,7 +233,8 @@
- EOF
+ my $stacksize = $^O eq "linux" && $] < 5.008008 ? 128 * 1024 : 16384;
--my $stacksize = prompt ("C stack size factor?", "16384");
+-$stacksize = prompt ("C stack size factor?", $stacksize);
++#$stacksize = prompt ("C stack size factor?", $stacksize);
+my $stacksize = 65536;
$DEFINE .= " -DCORO_STACKSIZE=$stacksize";
print "using a stacksize of $stacksize * sizeof(long)\n";
-@@ -192,7 +187,7 @@
+@@ -259,7 +261,8 @@
EOF
-my $stackguard = prompt ("Number of guard pages (0 disables)?", "4");
++#my $stackguard = prompt ("Number of guard pages (0 disables)?", "4");
+my $stackguard = 4;
$DEFINE .= " -DCORO_STACKGUARD=$stackguard";
print <<EOF;
-@@ -210,8 +205,7 @@
+@@ -277,8 +280,9 @@
EOF
-my $valgrind = prompt ("Enable valgrind support (y/n)?",
- -r "/usr/include/valgrind/valgrind.h" ? "y" : "n");
-+my $valgrind = 'n';
++#my $valgrind = prompt ("Enable valgrind support (y/n)?",
++# -r "/usr/include/valgrind/valgrind.h" ? "y" : "n");
++my $valgrind='n';
$DEFINE .= " -DCORO_USE_VALGRIND=1" if $valgrind =~ /[yY]/;
-@@ -228,7 +222,7 @@
+@@ -295,9 +299,9 @@
EOF
-my $use_internals = prompt ("Prefer perl functions over coro functions (y/n)?", "n");
-+my $use_internals = 'n';
- $DEFINE .= " -DCORO_PREFER_PERL_FUNCTIONS=1" if $use_internals =~ /[yY]/;
-
+-$DEFINE .= " -DCORO_PREFER_PERL_FUNCTIONS=1" if $use_internals =~ /[yY]/;
+-
++#my $use_internals = prompt ("Prefer perl functions over coro functions (y/n)?", "n");
++#$DEFINE .= " -DCORO_PREFER_PERL_FUNCTIONS=1" if $use_internals =~ /[yY]/;
++my $use_internals='n';
print <<EOF;
+
+ *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
diff -urN p5-Coro/files/patch-Coro-State.xs p5-Coro.new/files/patch-Coro-State.xs
--- p5-Coro/files/patch-Coro-State.xs 2006-01-11 21:17:31.000000000 +0800
+++ p5-Coro.new/files/patch-Coro-State.xs 2009-03-11 23:31:24.000000000 +0800
@@ -1,13 +1,13 @@
---- Coro/State.xs.orig Tue Aug 10 03:54:35 2004
-+++ Coro/State.xs Tue Aug 10 16:22:54 2004
-@@ -57,6 +57,10 @@
-
+--- Coro/State.xs.orig 2008-12-16 03:39:29.000000000 +0800
++++ Coro/State.xs 2009-03-11 23:28:09.000000000 +0800
+@@ -155,6 +155,10 @@
#include "CoroAPI.h"
+ #define GCoroAPI (&coroapi) /* very sneaky */
+#ifndef PERL_MAGIC_ext
+# define PERL_MAGIC_ext '~'
+#endif
+
#ifdef USE_ITHREADS
- static perl_mutex coro_mutex;
- # define LOCK do { MUTEX_LOCK (&coro_mutex); } while (0)
+ # if CORO_PTHREAD
+ static void *coro_thx;
diff -urN p5-Coro/pkg-plist p5-Coro.new/pkg-plist
--- p5-Coro/pkg-plist 2008-06-25 15:08:31.000000000 +0800
+++ p5-Coro.new/pkg-plist 2009-03-12 00:03:58.000000000 +0800
@@ -6,7 +6,9 @@
%%SITE_PERL%%/%%PERL_ARCH%%/Coro/CoroAPI.h
%%SITE_PERL%%/%%PERL_ARCH%%/Coro/Debug.pm
%%SITE_PERL%%/%%PERL_ARCH%%/Coro/Event.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Coro/EV.pm
%%SITE_PERL%%/%%PERL_ARCH%%/Coro/Handle.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/Coro/Intro.pod
%%SITE_PERL%%/%%PERL_ARCH%%/Coro/LWP.pm
%%SITE_PERL%%/%%PERL_ARCH%%/Coro/MakeMaker.pm
%%SITE_PERL%%/%%PERL_ARCH%%/Coro/RWLock.pm
@@ -23,6 +25,8 @@
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/.packlist
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/Event/Event.bs
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/Event/Event.so
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/EV/EV.so
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/EV/EV.bs
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/State/State.bs
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/State/State.so
%%PORTDOCS%%%%DOCSDIR%%/cede-vs-schedule
@@ -40,6 +44,7 @@
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/State
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/Event
+ at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro/EV
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Coro
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Coro
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list