From owner-freebsd-ports@FreeBSD.ORG Wed Jul 15 09:44:08 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 B4BE31065674; Wed, 15 Jul 2009 09:44:08 +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 1EC128FC26; Wed, 15 Jul 2009 09:44:07 +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 n6F9i0Uf036388; Wed, 15 Jul 2009 10:44:01 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk n6F9i0Uf036388 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1247651041; bh=PFivI4Rt2uf7ZvNABtBJnD9UzNkhC1gukzXsWl+6mLw=; 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<4A5DA4DA.2000200@infracaninophile.co.uk>|Date:=20W ed,=2015=20Jul=202009=2010:43:54=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>=09<4A5363AA.8030407@infracaninophile.co.uk>=09<4A5B97 D7.2070708@therek.net>=09<4A5C4E73.9000901@infracaninophile.co.uk> =09<4A5C5F55.4090204@therek.net>=20<4A5C65F5.6020704@infracaninoph ile.co.uk>=20<4A5C7592.4010803@therek.net>|In-Reply-To:=20<4A5C759 2.4010803@therek.net>|X-Enigmail-Version:=200.95.6|Content-Type:=2 0multipart/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D" application/pgp-signature"=3B=0D=0A=20boundary=3D"------------enig 59F53DFEE02BFCB43823B20F"; b=Wn9Uru/umdJ2QezfMoqnux6HWfPyVCAJiVNCEIyD4w0bNWqZJBgy/4m5nC4mZC0XN ogovb1O3RSU3Oq2xEI2S0LNQ6u4ScNuqi+tHL0nxXJ1hUkPX7D02gbBqkM6h3h2DAJ ExMy+eXMphQ52X6vG7DakvYi36ININ5ngIC391P0= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4A5DA4DA.2000200@infracaninophile.co.uk> Date: Wed, 15 Jul 2009 10:43:54 +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> <4A5C4E73.9000901@infracaninophile.co.uk> <4A5C5F55.4090204@therek.net> <4A5C65F5.6020704@infracaninophile.co.uk> <4A5C7592.4010803@therek.net> In-Reply-To: <4A5C7592.4010803@therek.net> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig59F53DFEE02BFCB43823B20F" 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: Wed, 15 Jul 2009 09:44:09 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig59F53DFEE02BFCB43823B20F Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: quoted-printable Cezary Morga wrote: > Matthew Seaman pisze: >> You are failing to distinguish between $PREFIX set as an environment=20 >> variable >> and $PREFIX the make variable. >=20 > You're right :) >=20 > PREFIX the make variable already controls what >> the p5-RT-Extension ports do as variables like SITE_PERL are defined i= n >> terms of it already. >=20 > So, if I would cd into www/p5-RT-Extension-SLA and type: >=20 > env PREFIX=3D/home/therek make install >=20 > would it install p5-RT-Extension-SLA and all of it's dependencies=20 > (including rt38) in /home/therek? >=20 Well, you'll need to define LOCALBASE too, or all the dependency checks the port does will fail. Given that, and once the latest patches have go= ne in, it should work like that, yes.=20 # cd /usr/ports/www/p5-RT-Extension-SLA # env PREFIX=3D/home/therek LOCALBASE=3D/home/therek make install I believe that setting make variables like this should also work: # cd /usr/ports/www/p5-RT-Extension-SLA # make PREFIX=3D/home/therek LOCALBASE=3D/home/therek install Actually, that is an interesting question so ... [time passes] ...=20 You need to (a) apply the patch from ports/136656 below and (b) add /home/therek/bin to $PATH. Given that I can confirm that both the=20 command variants above work just fine. diff -Nur /usr/ports/www/p5-RT-Extension-SLA/Makefile p5-RT-Extension-SLA= /Makefile --- /usr/ports/www/p5-RT-Extension-SLA/Makefile 2009-06-24 17:53:47.00000= 0000 +0100 +++ p5-RT-Extension-SLA/Makefile 2009-07-10 15:01:27.000000000 +01= 00 @@ -65,7 +65,7 @@ # rather undesirably. do-configure: @cd ${CONFIGURE_WRKSRC} && \ - ${SETENV} ${CONFIGURE_ENV} ${PERL5} -I${RT_PM_DIR} ./${CONFIG= URE_SCRIPT} && \ + ${SETENV} -u PREFIX ${CONFIGURE_ENV} ${PERL5} -I${RT_PM_DIR} = =2E/${CONFIGURE_SCRIPT} && \ ${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install= $$//' Makefile post-install: In both cases the commands were run in a pretty much virgin RELENG_7 jail= with no other ports installed, and with /home/therek/bin added to $PATH in the= environment. On the question of LOCALBASE -- I haven't tested this, but I believe it s= hould be possible to install almost all of the dependencies (perl, apache, non-= RT specific perl modules) using one value of PREFIX/LOCALBASE and then switc= h to a different value for the www/rt3[68] port and any www/p5-RT* ports = -- however you would have to install www/rt38 and any of the www/p5-RT* ports with the s= ame prefix. About the only reason I can see for doing that is to have a pers= onal RT setup on a shared multiuser system, which feels like a very 20th-Centu= ry solution to me. Nowadays I reckon you'ld be more likely to just have a j= ail or some sort of virtual machine to each person for that sort of usage. 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 --------------enig59F53DFEE02BFCB43823B20F 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 iEYEAREIAAYFAkpdpOAACgkQ8Mjk52CukIz6MACcCrRIJ/GHoo8KcjbYKArT3h9g SzEAn1+DY6XoIIzusl/5iFx7ejOCxl4H =Y3ZO -----END PGP SIGNATURE----- --------------enig59F53DFEE02BFCB43823B20F--