[kw-pm] creating distribution packages for modules

Andrew Kohlsmith akohlsmith-pm at benshaw.com
Mon Jun 16 12:35:26 CDT 2003


Back in February, Daniel had brought up a thread on finding the locally 
installed modules.  I have a similar question.

How do you create distribution packages for perl modules?  When I use CPAN I 
create packages that go into site_perl/[version]/i386-linux, but among the 
files written is perllocal.pod.  I can use checkinstall to create packages 
without issue, it's just how (any) distribution packages for perl modules 
do it without screwing up perllocal.pod that is evading me.

An example.
Perl modules A, B, C and D are built (in that order) on Machine One.  I use 
checkinstall to create [insert favourite distro here] packages for each 
module individually.  (My favourite way:  perl -MCPAN -e shell / test 
modulename ; look modulename ; checkinstall -S --nodoc --inspect ; exit)

Now take those four modules and send them over to Machine Two.  Using 
[insert favourite distro's package manager here], install modules C, D and 
B, in that order.

the perllocal.pod file is now incorrect; it seems to think that modules A 
and B are installed, since that was what was installed at the time that the 
perllocal.pod file was written for module B on Machine One.

freenode's #perl offered some help...  the installer should only be 
appending a line to perllocal.pod, not overwriting it.  

Is that all there is to it?  I can do that easily enough.  This brings me to 
a second question: distro-installed perl modules are installed outside of 
site_perl; how do I do the same if I am making distro perl modules...  I 
can hack it around easily enough, but I'm interested in the more correct 
method.

Regards,
Andrew



More information about the kw-pm mailing list