[Custom LOCALBASE/PREFIX] www/p5-RT-Extension-SLA - fails: mtree
Matthew Seaman
m.seaman at infracaninophile.co.uk
Tue Jul 14 09:23:13 UTC 2009
Cezary Morga wrote:
> 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.
${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 extension
modules anywhere else makes no sense at all. It's simply broken.
> 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.
Hmmm... RT's idea of what PREFIX means is quite different to what the ports
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 tree
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 Extension
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
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20090714/6a60482d/signature.pgp
More information about the freebsd-ports
mailing list