[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: Installation of Perl/tk in 5.003_03 vs 5.004_04



Hi,

I just found out that the problem has nothing to do with Perl/Tk.
Looking at my build log led me to the following code in the perl5.005_03
ExtUtils::Install module:

 #October 1997: we want to install .pm files into archlib if
 #there are any files in arch. So we depend on having ./blib/arch
 #hardcoded here.
 my $targetroot = $hash{$source};
 if ($source eq "blib/lib" and
     exists $hash{"blib/arch"} and
     directory_not_empty("blib/arch")) {
     $targetroot = $hash{"blib/arch"};
            print "Files found in blib/arch --> Installing files in "
         . "blib/lib into architecture dependend library tree!\n"
  ; #if $verbose>1;
 }

Why that change was made I would like to know. The effect for me is that
the Perl library code that used to go into the platform-dependent
directories will now be duplicated for each of the platforms we support
(4 at this time).

Ben Pavon wrote:

> Hi,
>
> We currently have perl5.004_04/Tk800.013 as production.
>
> I have noticed some odd behavior while building perl5.005_03/Tk800.017.
>
> In order to support multiple UNIX platforms (e.g. Solaris 2.5.1,
> HP-UX 10.20, etc) in an efficient manner, we separate software into
> platform independent (/tools/GNU/share) and platform dependent
> (/tools/GNU/local) directories.
>
> The following layout is used for perl5.004_04:
>
>   @INC:
>     /tools/GNU/local/lib/perl5.004
>     /tools/GNU/share/lib/perl5.004
>     /tools/GNU/local/lib/site_perl
>     /tools/GNU/share/lib/site_perl
>
> which leads to the following Perl/Tk installation:
>
>  /tools/GNU/share/lib/site_perl/Tk.pm
>  /tools/GNU/share/lib/site_perl/Tk/*
>  /tools/GNU/share/lib/site_perl/auto/Tk/*
>
>  /tools/GNU/local/lib/site_perl/Tk/*
>  /tools/GNU/local/lib/site_perl/auto/Tk/*
>
> After reading the perl5.005_03 documentation, I decided to use
> the following layout:
>
>   @INC:
>     /tools/GNU/local/lib/perl5.00503
>     /tools/GNU/share/lib/perl5.00503
>     /tools/GNU/local/lib/site_perl/perl5.005
>     /tools/GNU/share/lib/site_perl/perl5.005
>
> I was expecting Perl/Tk to populate
>
>  /tools/GNU/share/lib/site_perl/perl5.005/Tk.pm
>  /tools/GNU/share/lib/site_perl/perl5.005/Tk/*
>  /tools/GNU/share/lib/site_perl/perl5.005/auto/Tk/*
>
>  /tools/GNU/local/lib/site_perl/perl5.005/Tk/*
>  /tools/GNU/local/lib/site_perl/perl5.005/auto/Tk/*
>
> Instead the installation was
>
>  /tools/GNU/local/lib/site_perl/perl5.005/Tk.pm
>  /tools/GNU/local/lib/site_perl/perl5.005/Tk/*
>  /tools/GNU/local/lib/site_perl/perl5.005/auto/Tk/*
>
> Any idea why it is so? How can I get the previous behavior?
>
> I am including the relevant sections from Config.pm
>
> ##### /tools/GNU/local/lib/perl5.00503/Config.pm m|GNU/share|
>     38: installprivlib='/tools/GNU/share/lib/perl5.00503'
>     44: privlibexp='/tools/GNU/share/lib/perl5.00503'
>    442: installman1dir='/tools/GNU/share/man/man1'
>    443: installman3dir='/tools/GNU/share/lib/perl5.00503/man/man3'
>    444: installscript='/tools/GNU/share/bin'
>    446: installsitelib='/tools/GNU/share/lib/site_perl/perl5.005'
>    481: man1dir='/tools/GNU/share/man/man1'
>    482: man1direxp='/tools/GNU/share/man/man1'
>    484: man3dir='/tools/GNU/share/lib/perl5.00503/man/man3'
>    485: man3direxp='/tools/GNU/share/lib/perl5.00503/man/man3'
>    528: privlib='/tools/GNU/share/lib/perl5.00503'
>    537: scriptdir='/tools/GNU/share/bin'
>    538: scriptdirexp='/tools/GNU/share/bin'
>    553: sitelib='/tools/GNU/share/lib/site_perl/perl5.005'
>    554: sitelibexp='/tools/GNU/share/lib/site_perl/perl5.005'
>
> ##### /tools/GNU/local/lib/perl5.00503/Config.pm m|GNU/local|
>     29: archlibexp='/tools/GNU/local/lib/perl5.00503'
>     37: installarchlib='/tools/GNU/local/lib/perl5.00503'
>     43: prefix='/tools/GNU/local'
>     75: archlib='/tools/GNU/local/lib/perl5.00503'
>     80: bin='/tools/GNU/local/bin'
>     81: binexp='/tools/GNU/local/bin'
>    441: installbin='/tools/GNU/local/bin'
>    445: installsitearch='/tools/GNU/local/lib/site_perl/perl5.005'
>    514: pager='/tools/GNU/local/bin/less'
>    527: prefixexp='/tools/GNU/local'
>    551: sitearch='/tools/GNU/local/lib/site_perl/perl5.005'
>    552: sitearchexp='/tools/GNU/local/lib/site_perl/perl5.005'

--
__END__

------------------------------------------------------------------------
  Ben Pavon 310.364.9827                         ben.pavon@hsc.hac.com
------------------------------------------------------------------------

Benny says "Do it right, do it once!"



[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]