From owner-freebsd-perl@FreeBSD.ORG Sat Jul 11 22:33:08 2009 Return-Path: Delivered-To: perl@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF4D31065670; Sat, 11 Jul 2009 22:33:08 +0000 (UTC) (envelope-from cm@therek.net) Received: from lux.therek.net (lux.therek.net [64.85.172.243]) by mx1.freebsd.org (Postfix) with ESMTP id A05248FC16; Sat, 11 Jul 2009 22:33:08 +0000 (UTC) (envelope-from cm@therek.net) Received: from frameshift.waw.therek.net (dixie.therek.net [82.210.167.89]) (authenticated bits=0) by lux.therek.net (8.14.3/8.14.3) with ESMTP id n6BMX54J012058 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Sun, 12 Jul 2009 00:33:07 +0200 (CEST) Message-ID: <4A591320.1020400@therek.net> Date: Sun, 12 Jul 2009 00:33:04 +0200 From: Cezary Morga User-Agent: Thunderbird 2.0.0.22 (X11/20090701) MIME-Version: 1.0 To: QAT@freebsd.org References: <20090706182705.41CC18FCB7@release.ixsystems.com> In-Reply-To: <20090706182705.41CC18FCB7@release.ixsystems.com> Content-Type: multipart/mixed; boundary="------------010501040607080207070006" Cc: perl@freebsd.org Subject: Re: [Custom LOCALBASE/PREFIX] www/p5-RTx-Statistics - fails: mtree X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jul 2009 22:33:09 -0000 This is a multi-part message in MIME format. --------------010501040607080207070006 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit QAT@freebsd.org pisze: > The build which triggered this BotMail was done under > tinderbox-devel-3.2_4; dsversion: 3.2 on RELENG_7 on amd64, kern.smp.cpus: 4 > with tinderd_flags="-nullfs -plistcheck -onceonly" and ccache support, with: > PREFIX=/usr/PPP, LOCALBASE=/usr/PPP, X11BASE=/usr/PPP. Attached patch should fix this issue, but, given that www/p5-RTx-Statistics tries to install into the same place as www/rt36, the problem will re-appear when PREFIX will be specified different from LOCALBASE. -- Cezary Morga "Would those of you in the cheaper seats clap your hands? And the rest of you, if you'll just rattle your jewelry." (John Lennon) --------------010501040607080207070006 Content-Type: text/plain; name="patch-p5-RTx-Statistics.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-p5-RTx-Statistics.diff" diff -ruN www/p5-RTx-Statistics.orig/files/patch-inc_Module_Install_RTx.pm www/p5-RTx-Statistics/files/patch-inc_Module_Install_RTx.pm --- www/p5-RTx-Statistics.orig/files/patch-inc_Module_Install_RTx.pm 1970-01-01 01:00:00.000000000 +0100 +++ www/p5-RTx-Statistics/files/patch-inc_Module_Install_RTx.pm 2009-07-12 00:12:15.468548000 +0200 @@ -0,0 +1,27 @@ +--- inc/Module/Install/RTx.pm.orig 2006-01-03 22:12:28.000000000 +0000 ++++ inc/Module/Install/RTx.pm 2009-07-11 22:12:06.663639530 +0000 +@@ -24,14 +24,10 @@ sub RTx { + unless $self->version; + + my @prefixes = (qw(/opt /usr/local /home /usr /sw )); +- my $prefix = $ENV{PREFIX}; ++ my $prefix = $ENV{LOCALBASE}; ++ push @prefixes, $prefix if $prefix; + @ARGV = grep { /PREFIX=(.*)/ ? (($prefix = $1), 0) : 1 } @ARGV; + +- if ($prefix) { +- $RT::LocalPath = $prefix; +- $INC{'RT.pm'} = "$RT::LocalPath/lib/RT.pm"; +- } +- else { + local @INC = ( + @INC, + $ENV{RTHOME} ? ($ENV{RTHOME}, "$ENV{RTHOME}/lib") : (), +@@ -42,7 +38,6 @@ sub RTx { + $_ = $self->prompt("Path to your RT.pm:") or exit; + push @INC, $_, "$_/rt3/lib", "$_/lib/rt3"; + } +- } + + my $lib_path = File::Basename::dirname($INC{'RT.pm'}); + print "Using RT configurations from $INC{'RT.pm'}:\n"; --------------010501040607080207070006--