Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jul 2009 10:22:59 +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:  <4A5C4E73.9000901@infracaninophile.co.uk>
In-Reply-To: <4A5B97D7.2070708@therek.net>
References:  <20090706181739.D2DB28FCB7@release.ixsystems.com> <4A5363AA.8030407@infracaninophile.co.uk> <4A5B97D7.2070708@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)
--------------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--



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