[Custom LOCALBASE/PREFIX] www/p5-RTx-Statistics - fails: mtree
Cezary Morga
cm at therek.net
Sat Jul 11 22:33:09 UTC 2009
QAT at 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)
-------------- next part --------------
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";
More information about the freebsd-perl
mailing list