pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/47641: please update www/p5-HTTP-Server-EV to 0.6



>Number:         47641
>Category:       pkg
>Synopsis:       please update www/p5-HTTP-Server-EV to 0.6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 11 17:50:00 +0000 2013
>Originator:     Edgar Fuß
>Release:        pkgsrc-2012Q4
>Organization:
Mathematisches Institut der Uni Bonn
>Environment:
>Description:
0.6
        - Implemented HTTP::Server::EV::Buffer onerror(ondisconnect) callback
        - Listen now can accept IO::Socket::INET object with socket to listen
        - Added support of sharing one listening socket per several forks, and 
fork_hook cb to integrate with fork managers
        - Fixed bug when only first defined port listener worked
        - Fixed segfault when starting/stopping PortListener

>How-To-Repeat:
head www/p5-HTTP-Server-EV/Makefile
>Fix:
The patch to fix sizeof() usage has been submitted upstream, but no response up 
to now.
Please note that upstream choses to use CP/M line endings, so the patch needs 
to do this, too. I don't know if the CRs survive gnats.

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/www/p5-HTTP-Server-EV/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile    13 Dec 2012 10:02:09 -0000      1.5
+++ Makefile    11 Mar 2013 17:38:48 -0000
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.5 2012/12/13 10:02:09 wiz Exp $
+# $NetBSD: Makefile,v $
 #
 
-DISTNAME=      HTTP-Server-EV-0.5
+DISTNAME=      HTTP-Server-EV-0.6
 PKGNAME=       p5-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    www perl5
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=HTTP/}
 
@@ -17,6 +16,8 @@
 DEPENDS+=      
{perl>=5.10.1,p5-Scalar-List-Utils-[0-9]*}:../../devel/p5-Scalar-List-Utils # 
List::Util::XS
 DEPENDS+=      p5-File-Util-[0-9]*:../../devel/p5-File-Util
 DEPENDS+=      p5-Guard-[0-9]*:../../devel/p5-Guard
+DEPENDS+=      p5-IO-AIO-[0-9]*:../../devel/p5-IO-AIO
+DEPENDS+=      p5-AnyEvent-AIO-[0-9]*:../../devel/p5-AnyEvent-AIO
 # actually, test dependencies
 BUILD_DEPENDS+=        p5-AnyEvent-HTTP-[0-9]*:../../www/p5-AnyEvent-HTTP
 BUILD_DEPENDS+=        p5-HTTP-Message-[0-9]*:../../www/p5-HTTP-Message
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/www/p5-HTTP-Server-EV/distinfo,v
retrieving revision 1.2
diff -u -r1.2 distinfo
--- distinfo    12 Dec 2012 11:49:53 -0000      1.2
+++ distinfo    11 Mar 2013 17:38:48 -0000
@@ -1,5 +1,6 @@
 $NetBSD: distinfo,v 1.2 2012/12/12 11:49:53 wiz Exp $
 
-SHA1 (HTTP-Server-EV-0.5.tar.gz) = c10a56087c7f826d87f69bb8df19ea909f05244f
-RMD160 (HTTP-Server-EV-0.5.tar.gz) = e878c3ae7ddec125840f758567506ce500410aff
-Size (HTTP-Server-EV-0.5.tar.gz) = 27197 bytes
+SHA1 (HTTP-Server-EV-0.6.tar.gz) = 21d13a4979f9847f29c35cb1e8e707f59c03295d
+RMD160 (HTTP-Server-EV-0.6.tar.gz) = caac31546200cb77031a20a23964993581e3256d
+Size (HTTP-Server-EV-0.6.tar.gz) = 20623 bytes
+SHA1 (patch-aa) = c5a064aac7392820a7c7662b474709403ea42483
cvs diff: Diffing patches
Index: patches/patch-aa
===================================================================
RCS file: patches/patch-aa
diff -N patches/patch-aa
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-aa    11 Mar 2013 17:38:48 -0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa $
+# fix improper sizeof()s
+--- EV.xs.orig 2013-01-05 21:44:24.000000000 +0100
++++ EV.xs      2013-03-06 20:46:01.000000000 +0100
+@@ -467,7 +467,7 @@
+       struct req_state *state = (struct req_state *)w;
+       
+       struct sockaddr *buf;
+-      int bufsize = sizeof(buf);
++      int bufsize = sizeof(*buf);
+       
+       if(state->reading == REQ_DROPED_BY_PERL)
+               goto drop_conn;
+@@ -609,7 +609,7 @@
+                               hv_store(state->headers, state->buf , 
state->buf_pos , val , 0);
+                               
+                               
+-                              char uc_string[sizeof(state->buf)+6];
++                              char uc_string[BUFFERS_SIZE+6];
+                               
+                               uc_string[0]='H';
+                               uc_string[1]='T';



Home | Main Index | Thread Index | Old Index