[mythtv] [mythtv-commits] Ticket #4135: perl bindings defaultprefix isambiguous

Michael T. Dean mtdean at thirdcontact.com
Tue Nov 6 03:47:37 UTC 2007


On 11/05/2007 08:30 PM, Mark Spieth wrote:
>>> leave close if you think but my source has this in otherwise it
>>> doesnt work with PREFIX=/usr
>> doesn't work is not a very helpful error message. I have no idea that's
>> wrong.
>>
>> The intended behaviour is that PERL finds the bindings without modifying
>> $PERLLIB if PREFIX is /usr or /usr/local.
> installs in the wrong place (/usr/local) when my system is debian testing 
> (installed on /usr).
> must be a problem in my system then. dont know why though.

AIUI, the Perl bindings are meant to install into the location where
Perl is installed--regardless of the value specified for prefix.  On
some systems (i.e. mine), the user may choose to install Myth to
/usr/local, but Perl's @INC may not include /usr/local/lib/perl5.  So,
if the bindings were installed into /usr/local, Perl would be unable to
find them unless I were to recompile my Perl to add the dir to @INC,
export a PERL5LIB env var, call perl with -I/usr/local/lib/perl5, modify
scripts which use Myth Perl bindings to include "use lib ..." or BEGIN {
push @INC,...}, ...--basically things that I don't want to do.

By putting Perl modules into the Perl modules directory defined for the
system regardless of the configure prefix, Perl can always find them.  :)

Mike




More information about the mythtv-dev mailing list