ports/87315: [PATCH] security/p5-POE-Component-SSLify: Fix for perl<5.6

Lars Thegler lth at FreeBSD.org
Wed Oct 12 11:10:09 UTC 2005


>Number:         87315
>Category:       ports
>Synopsis:       [PATCH] security/p5-POE-Component-SSLify: Fix for perl<5.6
>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:   Wed Oct 12 11:10:07 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Lars Thegler
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD dask.thegler.dk 4.11-STABLE FreeBSD 4.11-STABLE #6: Thu Dec 30 14:06:09 CET 2004
>Description:

.pm files containing 'use warnings' and 'our' don't work under perl<5.6.

Port maintainer (skv at FreeBSD.org) is cc'd.

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

--- p5-POE-Component-SSLify-0.04.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/security/p5-POE-Component-SSLify/Makefile,v
retrieving revision 1.2
diff -u -u -r1.2 Makefile
--- Makefile	26 Jan 2005 16:36:39 -0000	1.2
+++ Makefile	12 Oct 2005 11:06:48 -0000
@@ -24,4 +24,11 @@
 		POE::Component::SSLify::ClientHandle.3 \
 		POE::Component::SSLify::ServerHandle.3
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 500600
+post-patch:
+	@${PERL} -pi -e 's/^our (%\w+)/use vars qw($$1); $$1/;' \
+		     -e '$$_ = "" if /use warnings/;' \
+		$$(${FIND} ${WRKSRC} -name '*.pm')
+.endif
+.include <bsd.port.post.mk>
--- p5-POE-Component-SSLify-0.04.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list