From owner-freebsd-ports@FreeBSD.ORG Tue Jul 14 09:23:12 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 7DFC4106566C; Tue, 14 Jul 2009 09:23:12 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id DE5FC8FC1B; Tue, 14 Jul 2009 09:23:11 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n6E9N5Wa010160; Tue, 14 Jul 2009 10:23:06 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk n6E9N5Wa010160 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1247563386; bh=jsLTd0rzCvpT3kzfazStS/SziDd5GLRF+1xsO/RDEBI=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4A5C4E73.9000901@infracaninophile.co.uk>|Date:=20T ue,=2014=20Jul=202009=2010:22:59=20+0100|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.22=20(X11/20090625)|MIME-Vers ion:=201.0|To:=20Cezary=20Morga=20|CC:=20QAT@freebs d.org,=20freebsd=20ports=20|Subject:=20 Re:=20[Custom=20LOCALBASE/PREFIX]=20www/p5-RT-Extension-SLA=20-=20 fails:=20mtree|References:=20<20090706181739.D2DB28FCB7@release.ix systems.com>=20<4A5363AA.8030407@infracaninophile.co.uk>=20<4A5B97 D7.2070708@therek.net>|In-Reply-To:=20<4A5B97D7.2070708@therek.net >|X-Enigmail-Version:=200.95.6|Content-Type:=20multipart/signed=3B =20micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D"application/pgp-sign ature"=3B=0D=0A=20boundary=3D"------------enigEE5044972D6C0BF38F06 5F40"; b=CdyTqShJ2SCL64Q4EKnKVNz/mMHeeQBTFxJUt60ug/lRqww5wknBCNelJOVHLABpT bgtcwhgreotnvEZk029+0/YBl7ILIefG2Sp+MKEHoOoNVFibGDYq/0ReYkw+j2jQMX aJfv8OK+qbc8LcDkNMDJ/+7cB4N6QW2eI1rqWKOc= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4A5C4E73.9000901@infracaninophile.co.uk> Date: Tue, 14 Jul 2009 10:22:59 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.22 (X11/20090625) MIME-Version: 1.0 To: Cezary Morga References: <20090706181739.D2DB28FCB7@release.ixsystems.com> <4A5363AA.8030407@infracaninophile.co.uk> <4A5B97D7.2070708@therek.net> In-Reply-To: <4A5B97D7.2070708@therek.net> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigEE5044972D6C0BF38F065F40" X-Virus-Scanned: clamav-milter 0.95.2 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk 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: Tue, 14 Jul 2009 09:23:13 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigEE5044972D6C0BF38F065F40 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: quoted-printable Cezary Morga wrote: > Here's your problem: >> Installing /usr/wombat/lib/RT/Queue_SLA.pm > <...> >> pkg_info:=20 >> /usr/wombat/share/rt38/plugins/RT-Extension-SLA/lib/RT/Queue_SLA.pm=20 >> doesn't exist >=20 > The port actually installs in ${PREFIX}/lib while pkg-plist expects=20 > files in ${PREFIX}/rt38/plugins. ${PREFIX}/rt38/plugins is correct for the layout introduced with RT-3.8.x= , (although not for the layout used with rt36) and installing these extensi= on modules anywhere else makes no sense at all. It's simply broken. > It's quite the same problem as with www/p5-RTx-Statistics=20 > (http://lists.freebsd.org/pipermail/freebsd-perl/2009-July/002242.html)= =2E >=20 > An ugly assumption that environment variable PREFIX actually points to = > ${PREFIX}/rt38. I think letting Perl figure out where RT actually is is= =20 > a better idea. Hmmm... RT's idea of what PREFIX means is quite different to what the por= ts uses it for. In fact, it seems to me that RT treats $PREFIX pretty much as if it was identical to $RTHOME. It's all particularly confusing since= RT itself expects to be installed with everything under it's own directory t= ree rooted at ${PREFIX}/rt3 (for FreeBSD values of PREFIX) and the rt38 port = now spreads everything across a number of different locations. All the correct paths are already enumerated in ${SITE_PERL}/RT.pm (or ${PREFIX}/rt3/lib/RT.pm for 3.6.x). Most of the effort in the RT Ext= ension ports I maintain is telling each of those modules where to find RT.pm -- except that when $PREFIX is set in the environment it overrides that. Even when $PREFIX is set to the default case of /usr/local it breaks the = build -- so instead of looking for ${SITE_PERL}/RT.pm it looks instead for /usr= /local/lib/RT.pm I think that your patch essentially does that, but see ports/136656 where= I have a simpler solution -- just remove $PREFIX from the environment during configuration. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigEE5044972D6C0BF38F065F40 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkpcTnkACgkQ8Mjk52CukIx2mwCfYpOz8lvNrUnvlF9XeLL8UrQv 10sAn3kxzPQV3FSmiyRqbO/X3EnOKFlO =5j4C -----END PGP SIGNATURE----- --------------enigEE5044972D6C0BF38F065F40--