Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jul 2009 22:23:51 +0200
From:      Cezary Morga <cm@therek.net>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        QAT@freebsd.org, freebsd ports <freebsd-ports@freebsd.org>
Subject:   Re: [Custom LOCALBASE/PREFIX] www/p5-RT-Extension-SLA - fails: mtree
Message-ID:  <4A5B97D7.2070708@therek.net>
In-Reply-To: <4A5363AA.8030407@infracaninophile.co.uk>
References:  <20090706181739.D2DB28FCB7@release.ixsystems.com> <4A5363AA.8030407@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------080500000704080505030607
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 7bit

Here's your problem:
> Installing /usr/wombat/lib/RT/Queue_SLA.pm
<...>
> pkg_info: /usr/wombat/share/rt38/plugins/RT-Extension-SLA/lib/RT/Queue_SLA.pm doesn't exist

The port actually installs in ${PREFIX}/lib while pkg-plist expects 
files in ${PREFIX}/rt38/plugins.

It's quite the same problem as with www/p5-RTx-Statistics 
(http://lists.freebsd.org/pipermail/freebsd-perl/2009-July/002242.html).

An ugly assumption that environment variable PREFIX actually points to 
${PREFIX}/rt38. I think letting Perl figure out where RT actually is is 
a better idea.

-- 
Cezary Morga
"The world is a tragedy to those who feel, but a comedy to those who 
think." (Horace Walpole)

--------------080500000704080505030607
Content-Type: text/plain;
 name="patch-inc_Module_Install_RTx.pm"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch-inc_Module_Install_RTx.pm"

--- inc/Module/Install/RTx.pm.orig	2009-04-24 21:01:47.000000000 +0000
+++ inc/Module/Install/RTx.pm	2009-07-13 20:18:23.696711396 +0000
@@ -34,13 +34,10 @@ sub RTx {
         unless $self->abstract;
 
     my @prefixes = (qw(/opt /usr/local /home /usr /sw ));
-    my $prefix   = $ENV{PREFIX};
+    my $prefix   = $ENV{LOCALBASE};
+    push @prefixes, $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" ) : (),
@@ -53,7 +50,6 @@ sub RTx {
             $_ = $self->prompt("Path to your RT.pm:") or exit;
             push @INC, $_, "$_/rt3/lib", "$_/lib/rt3", "$_/lib";
         }
-    }
 
     my $lib_path = File::Basename::dirname( $INC{'RT.pm'} );
     my $local_lib_path = "$RT::LocalPath/lib";

--------------080500000704080505030607--



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