Subject: fixing perl - an idea
To: None <tech-pkg@netbsd.org>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: tech-pkg
Date: 01/17/2000 18:13:30
After the perl upgrade, all the PLISTs of our perl pkgs are broken now. 
What makes this interresting to fix is that we depend on perl-* now,
allowing them to build against the "old" and "new" perl. The changes
between the perl versions include directory renamings, as
/usr/local/lib/perl5/site_perl -> /usr/pkg/lib/perl5/site_perl/5.005.

I think an appropriate way to do this is to ask perl about the various
paths, using something like this:

yui# perl -mConfig -e 'print Config::config_sh();' | grep ^site
sitearch='/usr/pkg/lib/perl5/site_perl/5.005/i386-netbsd'
sitearchexp='/usr/pkg/lib/perl5/site_perl/5.005/i386-netbsd'
sitelib='/usr/pkg/lib/perl5/site_perl/5.005'
sitelibexp='/usr/pkg/lib/perl5/site_perl/5.005'
^- new perl


smaug% perl -mConfig -e 'print Config::config_sh();' | grep ^site
sitearch='/usr/local/lib/perl5/site_perl/sparc-netbsd'
sitearchexp='/usr/local/lib/perl5/site_perl/sparc-netbsd'
sitelib='/usr/local/lib/perl5/site_perl'
sitelibexp='/usr/local/lib/perl5/site_perl'
^- old perl

I have to leave now, but maybe that helps someone here...


 - Hubert

-- 
NetBSD - Better for your uptime than Viagra