Re: [Module::Build] Archive::Tar file format
Status: Beta
Brought to you by:
kwilliams
|
From: Glenn L. <pe...@ne...> - 2004-01-12 22:26:20
|
On approximately 1/12/2004 1:20 PM, came the following characters from the keyboard of Randy Kobes: > On Mon, 12 Jan 2004, Glenn Linderman wrote: > > >>d:\GFfP>perl build dist >>Deleting META.yml >>Creating GFfP-0.1.tar.gz > > [ ... ] > >>d:\GFfP>perl build ppd >>Using default codebase 'GFfP-0.1.tar.gz' >> >>d:\GFfP>dir *.gz >> >>01/12/2004 10:27a 7,316 GFfP-0.1.tar.gz >> >>d:\GFfP>ppm install GFfP.ppd >>==================== >>Install 'GFfP' version 0.1 in ActivePerl 5.8.0.805. >>==================== >>Successfully installed GFfP version 0.1 in ActivePerl 5.8.0.805. > > > I think the problem here is that the 'dist' build target > makes an archive suitable for CPAN, whereas the archive > that ppm expects (as specified by the codebase) is just > an archive of the blib/ directory. Try > perl build ppd > tar cvf GFfP-0.1.tar blib > gzip --best GFfP-0.1.tar > ppm install GFfP.ppd Hmm. I don't know enough about CPAN or PPM to verify or contradict this speculation. I started using Module::Build because it seemed like it was supposed to be an easier way to build packages that MakeMaker. If what you say above is, indeed, correct and turns out to be "the problem", then it would seems that either Module::Build needs an additional target to build distributions for PPM, or else I missed understanding which target I should use when I read the Module::Build documentation. If a different .tar.gz file is the problem, I'd think it should be bundled into the perl build ppd command, such that that command builds the two files necessary to use with PPM. I don't have a solution or recommendation for the naming conflict that results from having two different .tar.gz files for two different purposes for the same module for CPAN vs PPM. Maybe the substrings "-CPAN" and "-PPM" should be added into the .tar.gz file name somewhere. The command sequence you offered above does, in fact, work. But I don't know enough to know if it is because I am using a different version of TAR (not Archive::Tar), or because there are fewer files in the archive, either or both of which may have made PPM happier. Thanks for your input; it'll be interesting to see what the M::B and A::T people say about this... -- Glenn -- http://nevcal.com/ =========================== The best part about procrastination is that you are never bored, because you have all kinds of things that you should be doing. |