From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Feb 15 18:30:02 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5FF4410656A6 for ; Mon, 15 Feb 2010 18:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 210288FC21 for ; Mon, 15 Feb 2010 18:30:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o1FIU2jj059854 for ; Mon, 15 Feb 2010 18:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o1FIU1np059853; Mon, 15 Feb 2010 18:30:01 GMT (envelope-from gnats) Resent-Date: Mon, 15 Feb 2010 18:30:01 GMT Resent-Message-Id: <201002151830.o1FIU1np059853@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ashish SHUKLA Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A963106568B for ; Mon, 15 Feb 2010 18:25:50 +0000 (UTC) (envelope-from wahjava@gmail.com) Received: from mail-qy0-f191.google.com (mail-qy0-f191.google.com [209.85.221.191]) by mx1.freebsd.org (Postfix) with ESMTP id 2F5918FC1D for ; Mon, 15 Feb 2010 18:25:49 +0000 (UTC) Received: by qyk29 with SMTP id 29so2992147qyk.13 for ; Mon, 15 Feb 2010 10:25:49 -0800 (PST) Received: by 10.220.128.89 with SMTP id j25mr73339vcs.198.1266258349265; Mon, 15 Feb 2010 10:25:49 -0800 (PST) Received: from chateau.d.if ([122.161.226.159]) by mx.google.com with ESMTPS id 23sm2482622ywh.3.2010.02.15.10.25.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 15 Feb 2010 10:25:48 -0800 (PST) Received: by chateau.d.if (Postfix, from userid 1001) id B0B8850934; Mon, 15 Feb 2010 23:55:42 +0530 (IST) Message-Id: <20100215182542.B0B8850934@chateau.d.if> Date: Mon, 15 Feb 2010 23:55:42 +0530 (IST) From: Ashish SHUKLA To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/143963: [PATCH] Fix devel/p5-Devel-REPL to work with p5-Moose-0.99 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ashish SHUKLA List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2010 18:30:02 -0000 >Number: 143963 >Category: ports >Synopsis: [PATCH] Fix devel/p5-Devel-REPL to work with p5-Moose-0.99 >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 15 18:30:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Ashish SHUKLA >Release: FreeBSD 8.0-RELEASE amd64 >Organization: N/A >Environment: System: FreeBSD chateau.d.if 8.0-RELEASE FreeBSD 8.0-RELEASE #1: Fri Nov 27 11:09:44 IST 2009 root@chateau.d.if:/usr/obj/usr/src/sys/CHATEAU amd64 >Description: This update fixes the following error which occurs in re.pl with p5-Moose-0.99. % re.pl Can't locate object method "load_plugin" via package "Moose::Meta::Class" at /usr/local/lib/perl5/site_perl/5.10.1/Devel/REPL/Plugin/LexEnv.pm line 9. BEGIN failed--compilation aborted at /usr/local/bin/re.pl line 3. Brad Clawsie reported this error. The diff pasted at the RT[1] fixes the issue. References: [1] https://rt.cpan.org/Public/Bug/Display.html?id=54579#txn-733197 >How-To-Repeat: 1. Execute re.pl % re.pl Can't locate object method "load_plugin" via package "Moose::Meta::Class" at /usr/local/lib/perl5/site_perl/5.10.1/Devel/REPL/Plugin/LexEnv.pm line 9. BEGIN failed--compilation aborted at /usr/local/bin/re.pl line 3. >Fix: diff -urN /usr/ports/devel/p5-Devel-REPL/Makefile p5-Devel-REPL/Makefile --- /usr/ports/devel/p5-Devel-REPL/Makefile 2009-09-02 22:53:30.000000000 +0530 +++ p5-Devel-REPL/Makefile 2010-02-15 23:16:25.000000000 +0530 @@ -7,6 +7,7 @@ PORTNAME= Devel-REPL PORTVERSION= 1.003007 +PORTREVISION= 1 CATEGORIES= devel perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- diff -urN /usr/ports/devel/p5-Devel-REPL/files/patch-lib_Devel_REPL_Meta_Plugin.pm p5-Devel-REPL/files/patch-lib_Devel_REPL_Meta_Plugin.pm --- /usr/ports/devel/p5-Devel-REPL/files/patch-lib_Devel_REPL_Meta_Plugin.pm 1970-01-01 05:30:00.000000000 +0530 +++ p5-Devel-REPL/files/patch-lib_Devel_REPL_Meta_Plugin.pm 2010-02-15 23:15:33.000000000 +0530 @@ -0,0 +1,21 @@ + +$FreeBSD$ + +--- lib/Devel/REPL/Meta/Plugin.pm.orig ++++ lib/Devel/REPL/Meta/Plugin.pm +@@ -6,6 +6,7 @@ + + before 'apply' => sub { + my ($self, $other) = @_; ++ return unless $other->isa('Devel::REPL'); + if (my $pre = $self->get_method('BEFORE_PLUGIN')) { + $pre->body->($other, $self); + } +@@ -13,6 +14,7 @@ + + after 'apply' => sub { + my ($self, $other) = @_; ++ return unless $other->isa('Devel::REPL'); + if (my $pre = $self->get_method('AFTER_PLUGIN')) { + $pre->body->($other, $self); + } >Release-Note: >Audit-Trail: >Unformatted: