From owner-freebsd-ports@FreeBSD.ORG Mon Jul 13 20:23:56 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CD70106564A; Mon, 13 Jul 2009 20:23:56 +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 E0ACE8FC1D; Mon, 13 Jul 2009 20:23:55 +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 n6DKNqDI009107 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Mon, 13 Jul 2009 22:23:54 +0200 (CEST) Message-ID: <4A5B97D7.2070708@therek.net> Date: Mon, 13 Jul 2009 22:23:51 +0200 From: Cezary Morga User-Agent: Thunderbird 2.0.0.22 (X11/20090701) MIME-Version: 1.0 To: Matthew Seaman References: <20090706181739.D2DB28FCB7@release.ixsystems.com> <4A5363AA.8030407@infracaninophile.co.uk> In-Reply-To: <4A5363AA.8030407@infracaninophile.co.uk> Content-Type: multipart/mixed; boundary="------------080500000704080505030607" Cc: QAT@freebsd.org, freebsd ports Subject: Re: [Custom LOCALBASE/PREFIX] www/p5-RT-Extension-SLA - fails: mtree X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jul 2009 20:23:56 -0000 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--