On Wed, Mar 20, 2002 at 06:08:44PM -0800, Russ Allbery wrote:
> Michael G Schwern <[EMAIL PROTECTED]> writes:
> 
> > I've just hit a small snag.  On the left is your typical Debian system
> > installation (which is sufficiently odd enough to be non-trivial).  On
> > the right is the result under the proposed PREFIX algorithm.
> 
> Purely as a data point for another fairly complex setup, here's how I
> configure Perl:
>
>     -Dprefix=/usr/pubsw
>     -Dsiteprefix=/usr/local
>     -Dvendorprefix=/usr/pubsw
>     -Dvendorlib=/usr/pubsw/lib/perl5/site_perl/%version%
>     -Dvendorarch=/usr/pubsw/lib/perl5/site_perl/%version%/systems/@sys
>     -Darchlib=/usr/pubsw/lib/perl5/%version%/systems/@sys
>     -Dinstallprefix=%package%/@sys
>     -Dinstallarchlib=%package%/@sys/lib/perl5/%version%/systems/`sys`
>
> where %package% is replaced by /afs/.ir/pubsw/Languages/perl-5.6.1 and
> %version is replaced by 5.6.1.

Just to make sure I have this straight...

installprefix=%package%/@sys means 'make install' will copy perl into
%package%/@sys.

prefix=/usr/pubsw means that even though perl was installed in
%package%/@sys, you're going to move/symlink it into /usr/pubsw.

that right?


> I then configure Perl modules for site-wide installation with:
> 
> Makefile.PL INSTALLDIRS=site
>     INSTALLARCHLIB=%SITELIB%/systems/@sys
>     INSTALLSITEARCH=%SITELIB%/systems/@sys
>     INSTALLSITELIB=%SITELIB%
>     INSTALLHTMLSCRIPTDIR=%PREFIX%/share/nohtml
>     INSTALLBIN=%PREFIX%/@sys/bin
>     INSTALLSCRIPT=%PREFIX%/share/bin
>     INSTALLMAN1DIR=%PREFIX%/share/man/man1
>     INSTALLMAN3DIR=%PREFIX%/share/man/man3p
>     SITELIBEXP=%INSTALLED%
>     SITEARCHEXP=%INSTALLED%/systems/@sys
>
> where %PREFIX% is /afs/.ir/pubsw/Site/siteperl-5.6.1 and %SITELIB% is
> %PREFIX%/share/lib.  Those directories are then linked by our packaging
> tools into /usr/pubsw (such as /usr/pubsw/lib/perl5/5.6.1/site_perl).

Hmmm.  All that shouldn't be necessary.

Can I see your Config.pm?


-- 

Michael G. Schwern   <[EMAIL PROTECTED]>    http://www.pobox.com/~schwern/
Perl Quality Assurance      <[EMAIL PROTECTED]>         Kwalitee Is Job One
Don't step on my funk

Reply via email to