Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Oct 2004 18:12:22 +0200 (CEST)
From:      Lars Thegler <lth@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        skv@FreeBSD.org
Subject:   ports/73086: [PATCH] databases/p5-Class-DBI: Fix 'use warnings' under Perl 5.005_03
Message-ID:  <20041024161222.357FD3F03@dask.thegler.dk>
Resent-Message-ID: <200410241620.i9OGKOXJ033043@freefall.freebsd.org>

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

>Number:         73086
>Category:       ports
>Synopsis:       [PATCH] databases/p5-Class-DBI: Fix 'use warnings' under Perl 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:   Sun Oct 24 16:20:24 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Lars Thegler
>Release:        FreeBSD 4.10-BETA i386
>Organization:
>Environment:
System: FreeBSD dask.thegler.dk 4.10-BETA FreeBSD 4.10-BETA #3: Mon Apr 12 17:02:50 CEST 2004
>Description:

--cut--
$ perl -e 'use Class::DBI'
Class::DBI can't load Class::DBI::Relationship::HasMany: Can't locate warnings.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503) at /usr/local/lib/perl5/site_perl/5.005/Class/DBI/Relationship/HasMany.pm line 4.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.005/Class/DBI/Relationship/HasMany.pm line 4. at -e line 1
BEGIN failed--compilation aborted at -e line 1.
$
--cut--

- Fix 'use warnings' under Perl 5.005_03
- Remove patch-droppings

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

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

--- p5-Class-DBI-0.96_2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/databases/p5-Class-DBI/Makefile,v
retrieving revision 1.12
diff -u -u -r1.12 Makefile
--- Makefile	12 Aug 2004 12:47:57 -0000	1.12
+++ Makefile	24 Oct 2004 16:09:17 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	Class-DBI
 PORTVERSION=	0.96
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	databases perl5
 MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
 MASTER_SITE_SUBDIR=	Class
@@ -40,6 +40,14 @@
 BUILD_DEPENDS+=	${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp
 .if ${PERL_LEVEL} < 500600
 EXTRA_PATCHES=	${PATCHDIR}/5.005-lib::Class::DBI.pm ${PATCHDIR}/5.005-Makefile.PL
+
+post-patch:
+	@${PERL} -pi -e '$$_ = "" if /use warnings/;' \
+		${WRKSRC}/lib/Class/DBI/Relationship.pm \
+		${WRKSRC}/lib/Class/DBI/Relationship/HasA.pm \
+		${WRKSRC}/lib/Class/DBI/Relationship/HasMany.pm \
+		${WRKSRC}/lib/Class/DBI/Relationship/MightHave.pm
+	@${RM} ${WRKSRC}/lib/Class/DBI.pm.orig
 .endif
 .endif
 
--- p5-Class-DBI-0.96_2.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?20041024161222.357FD3F03>