From lth@dask.thegler.dk  Wed Oct 12 11:09:04 2005
Return-Path: <lth@dask.thegler.dk>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 87FF516A41F;
	Wed, 12 Oct 2005 11:09:04 +0000 (GMT)
	(envelope-from lth@dask.thegler.dk)
Received: from cicero2.cybercity.dk (cicero2.cybercity.dk [212.242.40.53])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 296EF43D45;
	Wed, 12 Oct 2005 11:09:03 +0000 (GMT)
	(envelope-from lth@dask.thegler.dk)
Received: from dask.thegler.dk (port456.ds1-bav.adsl.cybercity.dk [212.242.213.149])
	by cicero2.cybercity.dk (Postfix) with ESMTP
	id B2438191333; Wed, 12 Oct 2005 13:09:01 +0200 (CEST)
Received: by dask.thegler.dk (Postfix, from userid 1001)
	id 7AE113F0C; Wed, 12 Oct 2005 13:09:01 +0200 (CEST)
Message-Id: <20051012110901.7AE113F0C@dask.thegler.dk>
Date: Wed, 12 Oct 2005 13:09:01 +0200 (CEST)
From: Lars Thegler <lth@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: skv@FreeBSD.org
Subject: [PATCH] security/p5-POE-Component-SSLify: Fix for perl<5.6
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         87315
>Category:       ports
>Synopsis:       [PATCH] security/p5-POE-Component-SSLify: Fix for perl<5.6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    skv
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 12 11:10:07 GMT 2005
>Closed-Date:    Wed Oct 12 11:41:48 GMT 2005
>Last-Modified:  Wed Oct 12 11:41:48 GMT 2005
>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@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:
Responsible-Changed-From-To: freebsd-ports-bugs->skv 
Responsible-Changed-By: lth 
Responsible-Changed-When: Wed Oct 12 11:15:13 GMT 2005 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87315 
State-Changed-From-To: open->closed 
State-Changed-By: skv 
State-Changed-When: Wed Oct 12 11:41:29 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87315 
>Unformatted:
