Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Apr 2012 11:44:41 -0800 (AKDT)
From:      Mel Flynn <rflynn@acsalaska.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Steve Wills <swills@FreeBSD.org>, Maintainer <az@FreeBSD.org>
Subject:   ports/166705: [patch] net/p5-ZeroMQ: fix tests
Message-ID:  <201204061944.q36Jif3q041806@datakitty.lan.rachie.is-a-geek.net>
Resent-Message-ID: <201204061950.q36Jo1dc006925@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         166705
>Category:       ports
>Synopsis:       [patch] net/p5-ZeroMQ: fix tests
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 06 19:50:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Mel Flynn
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD datakitty.lan.rachie.is-a-geek.net 8.2-STABLE FreeBSD 8.2-STABLE #6 r230977: Sun Feb 5 06:20:11 AKST 2012 mel@datakitty.lan.rachie.is-a-geek.net:/data/obj/data/RELENG_8/src/sys/GENERIC amd64


>Description:
Tests will hang with perl < 5.14.
More tests can be completed with two more TEST_DEPENDS.

>How-To-Repeat:
cd /usr/ports/net/p5-ZeroMQ
make build
cd `make -V WRKSRC`
make test

Result:
Failed 7/14 test programs. 19/1063 subtests failed.
>Fix:




--- net__p5-ZeroMQ.patch begins here ---
diff -urN --exclude CVS --exclude '*~' net/p5-ZeroMQ/Makefile /usr/ports/net/p5-ZeroMQ/Makefile
--- net/p5-ZeroMQ/Makefile.orig	2012-03-30 07:00:54.000000000 -0800
+++ net/p5-ZeroMQ/Makefile	2012-04-05 10:32:01.000000000 -0800
@@ -25,7 +25,9 @@
 
 TEST_DEPENDS=	p5-Test-Fatal>=0:${PORTSDIR}/devel/p5-Test-Fatal \
 		p5-Test-Requires>=0.05:${PORTSDIR}/devel/p5-Test-Requires \
-		p5-Test-TCP>=1.08:${PORTSDIR}/devel/p5-Test-TCP
+		p5-Test-TCP>=1.08:${PORTSDIR}/devel/p5-Test-TCP \
+		p5-AnyEvent>=0:${PORTSDIR}/devel/p5-AnyEvent \
+		p5-JSON>=2.00:${PORTSDIR}/converters/p5-JSON
 
 USE_GNOME=	pkgconfig
 
@@ -40,7 +42,13 @@
 	ZeroMQ::Poller.3 \
 	ZeroMQ::Message.3
 
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501400
+TEST_DEPENDS+=	p5-Test-Simple>=0.98:${PORTSDIR}/devel/p5-Test-Simple
+.endif
+
 post-patch:
 	@${PERL} -pi -e "s/lib => 'zmq',//" ${WRKSRC}/Makefile.PL
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- net__p5-ZeroMQ.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204061944.q36Jif3q041806>