Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jul 2009 00:33:04 +0200
From:      Cezary Morga <cm@therek.net>
To:        QAT@freebsd.org
Cc:        perl@freebsd.org
Subject:   Re: [Custom LOCALBASE/PREFIX] www/p5-RTx-Statistics - fails: mtree
Message-ID:  <4A591320.1020400@therek.net>
In-Reply-To: <20090706182705.41CC18FCB7@release.ixsystems.com>
References:  <20090706182705.41CC18FCB7@release.ixsystems.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A591320.1020400>