Date: Sat, 2 Sep 2006 18:09:09 +0800 (CST) From: Yen-Ming Lee <leeym@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: skv@FreeBSD.org Subject: ports/102780: [PATCH] devel/p5-Class-Inspector: unbreak under old perl Message-ID: <20060902100909.76F3AB29E11@utopia.leeym.com> Resent-Message-ID: <200609021010.k82AABKd024171@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 102780 >Category: ports >Synopsis: [PATCH] devel/p5-Class-Inspector: unbreak under old perl >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: Sat Sep 02 10:10:10 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Yen-Ming Lee >Release: FreeBSD 6.1-STABLE i386 >Organization: FreeBSD Taiwan >Environment: System: FreeBSD utopia.leeym.com 6.1-STABLE FreeBSD 6.1-STABLE #0: Sun Aug 13 20:58:07 CST 2006 >Description: - unbreak under old perl (patch for inc/Module/Install) Added file(s): - files/extrapatch-inc__Module__Install - optimize dependency Port maintainer (skv@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- p5-Class-Inspector-1.16.patch begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/devel/p5-Class-Inspector/Makefile,v retrieving revision 1.13 diff -u -u -r1.13 Makefile --- Makefile 24 May 2006 07:03:23 -0000 1.13 +++ Makefile 2 Sep 2006 10:07:47 -0000 @@ -15,12 +15,18 @@ MAINTAINER= skv@FreeBSD.org COMMENT= Provides information about classes -BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/File/Spec.pm:${PORTSDIR}/devel/p5-PathTools \ - ${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple -RUN_DEPENDS= ${BUILD_DEPENDS} +BUILD_DEPENDS= ${RUN_DEPENDS} PERL_CONFIGURE= yes MAN3= Class::Inspector.3 -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500600 +RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/File/Spec.pm:${PORTSDIR}/devel/p5-PathTools +BUILD_DEPENDS+= ${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple +EXTRA_PATCHES= ${PATCHDIR}/extrapatch-inc__Module__Install +.endif + +.include <bsd.port.post.mk> Index: files/extrapatch-inc__Module__Install =================================================================== RCS file: files/extrapatch-inc__Module__Install diff -N files/extrapatch-inc__Module__Install --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/extrapatch-inc__Module__Install 2 Sep 2006 10:07:47 -0000 @@ -0,0 +1,23 @@ +--- ./inc/Module/Install.pm.orig Sat Aug 5 15:05:20 2006 ++++ ./inc/Module/Install.pm Sat Aug 5 15:05:52 2006 +@@ -116,7 +116,7 @@ + my %seen; + foreach my $obj ( @exts ) { + while (my ($method, $glob) = each %{ref($obj) . '::'}) { +- next unless exists &{ref($obj).'::'.$method}; ++ next unless $obj->can($method); + next if $method =~ /^_/; + next if $method eq uc($method); + $seen{$method}++; +--- ./inc/Module/Install/Makefile.pm.orig Sat Aug 5 15:05:30 2006 ++++ ./inc/Module/Install/Makefile.pm Sat Aug 5 15:05:52 2006 +@@ -175,6 +175,9 @@ + $makefile =~ s/^PERL_LIB = .+/PERL_LIB =/m; + #$makefile =~ s/^PERL_ARCHLIB = .+/PERL_ARCHLIB =/m; + ++ # Perl 5.005 mentions PERL_LIB explicitly, so we have to remove that as well. ++ $makefile =~ s/("?)-I\$\(PERL_LIB\)\1//g; ++ + # XXX - This is currently unused; not sure if it breaks other MM-users + # $makefile =~ s/^pm_to_blib\s+:\s+/pm_to_blib :: /mg; + --- p5-Class-Inspector-1.16.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?20060902100909.76F3AB29E11>