[Module::Build] Fwd: Module::Build integration with revision control and other goodies I need
Status: Beta
Brought to you by:
kwilliams
|
From: Ken W. <ke...@ma...> - 2006-03-28 03:08:22
|
[Nadim agreed that I could forward this message to the list, where he's now subscribed, so he could get better discussion. -Ken] Begin forwarded message: From: Nadim Khemir <na...@kh...> Date: March 26, 2006 4:33:57 PM CST To: ke...@ma... Subject: Module::Build integration with revision control and other goodies I need Hi, remember me and PBS (my module)? We are still using M::B though it was very tough not to go back to a normal Makefile.PL when we started distributing the module on windows platform. I had a lot of small problems, things that build in cpan other in cpanp and still other with ppm. Add to that some modules that you have to build by hand and you get a real nightmare. I have added a Makefile.PL using Module::Build::Compat and it seems to work fine but the 'create_makefile_pl' doesn't. I have certainly done something wrong :) I'm trying to use M::B more intelligently and I've even read the doc twice (which is what I do every time all goes wrong).Here is what I'm trying to put together this time. - have a more interactive install. I haven't started yet but I think this will be needed soon. A few examples or links to some modules using this would be great - I used to have a full cpan miror but I now use CPAN::Mini so I am planning to update my repository directly with CPAN::Mini::Inject and only build with the 'cpan' command. No more ./Build install. or install should call 'cpan'. - I'm using svk so I want to be able to create distribution that contain the revision number "0.41.182" everytime I build a distribution (that is everytime since I need a distribution to inject in CPAN mini so I can install from 'cpan'). Getting the revison and generating the tar.gz is trivial when I am in my project directory but it doesn't work when I install. # running Build.PL /usr/bin/perl5.8.8 Build.PL Creating custom builder _build/lib/PBS/Builder.pm in _build/lib/PBS path /home/nadim/.cpan/build/PerlBuildSystem-0.41.182 is not a checkout path. Died at Build.PL line 158. Couldn't run Build.PL: at /usr/lib/perl5/vendor_perl/5.8.7/Module/Build/Compat.pm line 172. ... I can think about one solution. when I run 'dist', I make sure svk is there and I create a file that I add to the distribution. At install time, I try with svk and if it fails, I'll fall back on the generated file. This is a bit contrieved. Is there another way to do that? A Module::Build::SVK would be nice to have. I'm working on a Module::Build::Inject idea butI'm not sure it's a good idea. Cheers, Nadim. |