Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Apr 2006 16:04:36 +0800 (CST)
From:      Yen-Ming Lee <leeym@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        hideo@lastamericanempire.com
Subject:   ports/96304: [PATCH] net/p5-POE-Component-ControlPort: unbreak
Message-ID:  <20060425080436.43735B29C7A@utopia.leeym.com>
Resent-Message-ID: <200604250810.k3P8AAZb023546@freefall.freebsd.org>

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

>Number:         96304
>Category:       ports
>Synopsis:       [PATCH] net/p5-POE-Component-ControlPort: unbreak
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 25 08:10:10 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Yen-Ming Lee
>Release:        FreeBSD 6.1-RC i386
>Organization:
FreeBSD Taiwan
>Environment:
System: FreeBSD utopia.leeym.com 6.1-RC FreeBSD 6.1-RC #0: Tue Apr 11 08:54:13 CST 2006
>Description:
- unbreak this under old perl

Port maintainer (hideo@lastamericanempire.com) is cc'd.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:

http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.4.2005092302/p5-POE-Component-ControlPort-0.01.log

>Fix:

--- p5-POE-Component-ControlPort-0.01.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/net/p5-POE-Component-ControlPort/Makefile,v
retrieving revision 1.1
diff -u -u -r1.1 Makefile
--- Makefile	6 Feb 2006 11:38:51 -0000	1.1
+++ Makefile	25 Apr 2006 08:04:11 -0000
@@ -15,10 +15,11 @@
 MAINTAINER=	hideo@lastamericanempire.com
 COMMENT=	Network control port for POE applications
 
-BUILD_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Params/Validate.pm:${PORTSDIR}/devel/p5-Params-Validate \
+RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Params/Validate.pm:${PORTSDIR}/devel/p5-Params-Validate \
 		${SITE_PERL}/${PERL_ARCH}/Authen/Libwrap.pm:${PORTSDIR}/security/p5-Authen-Libwrap \
 		${SITE_PERL}/POE.pm:${PORTSDIR}/devel/p5-POE
-RUN_DEPENDS=	${BUILD_DEPENDS}
+BUILD_DEPENDS=	${RUN_DEPENDS}
+BUILD_DEPENDS+=	${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
 
 PERL_CONFIGURE=	yes
 
@@ -29,16 +30,24 @@
 .include <bsd.port.pre.mk>
 
 post-extract:
-	@${PERL} -0pi -e 's/my \$$prompt.+(my \$$ret = )(?-s).+/$${1}0;/so' ${WRKSRC}/Makefile.PL
+	@${PERL} -pi -e 's/my \$$ret =.*/my \$$ret = 0;/' ${WRKSRC}/Makefile.PL
 
 .if ${PERL_LEVEL} < 500600
+RUN_DEPENDS+=	${SITE_PERL}/XSLoader.pm:${PORTSDIR}/devel/p5-XSLoader \
+		${SITE_PERL}/${PERL_ARCH}/File/Spec.pm:${PORTSDIR}/devel/p5-PathTools
+
 post-patch:
 	@${PERL} -pi -e 's/^our (\W\w+);/use vars q($$1);/o;' \
 		-e 's/^our\s+(\W\w+)(?!;)/use vars q($$1); $$1/o;' \
 		-e 'undef $$_ if /^\s*(no|use) warnings/o;' \
+		${WRKSRC}/VERSION \
+		${WRKSRC}/t/*.t \
 		${WRKSRC}/lib/POE/Component/ControlPort.pm \
 		${WRKSRC}/lib/POE/Component/ControlPort/DefaultCommands.pm \
 		${WRKSRC}/lib/POE/Component/ControlPort/Command.pm
+
+post-configure:
+	${PERL} -pi -e 's/-I\S+PERL\S+ //g if m{PERL_DL_NONLAZY}' ${WRKSRC}/Makefile
 .endif
 
 .include <bsd.port.post.mk>
--- p5-POE-Component-ControlPort-0.01.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?20060425080436.43735B29C7A>