Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jul 2009 10:43:54 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Cezary Morga <cm@therek.net>
Cc:        QAT@freebsd.org, freebsd ports <freebsd-ports@freebsd.org>
Subject:   Re: [Custom LOCALBASE/PREFIX] www/p5-RT-Extension-SLA - fails: mtree
Message-ID:  <4A5DA4DA.2000200@infracaninophile.co.uk>
In-Reply-To: <4A5C7592.4010803@therek.net>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



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