1. Build a latest local perl
# tar xzvf perl-5.12.1.tar.gz
# cd perl-5.12.1
# sh Configure -de -Dprefix=/opt/nmetrics
# make
# make test
# make install
2. Local cpan
Nothing special for cpan, just run it from /opt/nmetrics/bin, that's it! All modules installed from CPAN will go into local perl library directory.
For modules released not from CPAN(3rd party modules, licensed modules), just put them into local perl library.
As long as you invoke perl from local, not from system, all the dependencies should self-contained.
Then you can ship /opt/nmetrics as a whole product.
3. Perl 5.12.x deprecated warnings
Perl 5.12.x will warn deprecated features even if you are not using warnings. So if you want to disable this:
use 5.012;
no warnings 'deprecated';
temp_warning();
sub temp_warning {
# needs to be one level lower than the warnings setting
warn "Hey Evel Knievel! Deprecation warnings are disabled!" unless
warnings::enabled( 'deprecated' );
}
4. Applications
All the applications and scripts must use /opt/nmetrics/bin/perl for product release
5. Use pure perl implementations
As much as possible. Keep product clean in self-contained style.
6. Subversion
__ALL__
No comments:
Post a Comment