Date: Thu, 24 Mar 2005 12:35:52 +0100 (CET) From: Lars Thegler <lth@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: skv@FreeBSD.org Subject: ports/79191: [PATCH] devel/p5-Config-Tiny: Fix for 5.005_03 Message-ID: <20050324113552.D1B0A3E9D@dask.thegler.dk> Resent-Message-ID: <200503241140.j2OBe1Ng076337@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 79191 >Category: ports >Synopsis: [PATCH] devel/p5-Config-Tiny: Fix for 5.005_03 >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: Thu Mar 24 11:40:01 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: - Fix "Too many arguments for open" under Perl 5.005_03 - Remove \r's to please pod2man under Perl 5.005_03 Added file(s): - files/500503-lib::Config::Tiny.pm Port maintainer (skv@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- p5-Config-Tiny-2.00_1.patch begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/devel/p5-Config-Tiny/Makefile,v retrieving revision 1.6 diff -u -u -r1.6 Makefile --- Makefile 26 Jul 2004 05:11:28 -0000 1.6 +++ Makefile 24 Mar 2005 11:31:15 -0000 @@ -7,6 +7,7 @@ PORTNAME= Config-Tiny PORTVERSION= 2.00 +PORTREVISION= 1 CATEGORIES= devel perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= Config @@ -21,4 +22,11 @@ MAN3= Config::Tiny.3 -.include <bsd.port.mk> +.include <bsd.port.pre.mk> +.if ${PERL_LEVEL} <= 500503 +EXTRA_PATCHES= ${PATCHDIR}/500503-lib::Config::Tiny.pm + +post-patch: + @${PERL} -pi -e 's,\r,,' ${WRKSRC}/lib/Config/Tiny.pm +.endif +.include <bsd.port.post.mk> Index: files/500503-lib::Config::Tiny.pm =================================================================== RCS file: files/500503-lib::Config::Tiny.pm diff -N files/500503-lib::Config::Tiny.pm --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/500503-lib::Config::Tiny.pm 24 Mar 2005 11:31:15 -0000 @@ -0,0 +1,11 @@ +--- lib/Config/Tiny.pm.orig Thu Mar 24 12:19:28 2005 ++++ lib/Config/Tiny.pm Thu Mar 24 12:19:43 2005 +@@ -75,7 +75,7 @@ + my $file = shift or return $self->_error( 'No file name provided' ); + + # Write it to the file +- open( CFG, '>', $file ) ++ open( CFG, '>'. $file ) + or return $self->_error( "Failed to open file '$file' for writing: $!" ); + print CFG $self->write_string; + close CFG; --- p5-Config-Tiny-2.00_1.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?20050324113552.D1B0A3E9D>