I now have a perl tree in /tmp/perl that has the prefix of /opt/perl. To build modules I have them in my Makefile listed in order of dependence. I have each module untarredmake make DESTDIR=/tmp/perl install
I simplified the code above to simply show what I'm doing. Before I squash the template I remove that link and copy /tmp/perl/opt/perl into ${TEMPLATE_ROOT}/opt/.ln -s /tmp/perl/opt/perl ${TEMPLATEE_ROOT}/opt/perl for i in each_module (cd $i && /opt/perl/bin/perl Makefile.PL && make install) done
What is the best way to do this?
1. Copy all my modules into the perl source tree and build it as part of the perl build?
2. Use CPAN to install them from the drive? Not online since I want to maintain module versions.
The only issue I see here is where I need to specify library paths, like when building DBD::mysql, or interacting when 'perl Makefile.PL' asks me a question. I can scrip that.I do have my own MYMakefile in each module tree that takes care of using Build or Makefile.PL when required.
I can provide my makefile if needed so you can see what I'm doing. This method I'm using is a pain and hard to maintain as the modules numbers grow.
Thanks, ChrisIn reply to Building CPAN modules for new tree by linxdev
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |