Ken Williams wrote: > > On Wednesday, March 6, 2002, at 11:48 AM, Stas Bekman wrote: > >> The real problems with prerequisites are: >> >> - some modules don't specify prerequisites :( But I think we can add >> code to parse the code to figure out simple require and use cases. >> Weren't there a module doing this? I think I read about it in some old >> TPJ. Anyone? > > > I wouldn't do that if I were you. Too much room for error and > annoyance. If a module doesn't specify prereqs, there's not much we can > do, unless you want to maintain a manual list of unspecified prereqs.
ok ;) >> - should you bundle only prerequisites which aren't installed on the >> system the bundler runs on, or should it take all the prerequisites. I >> guess this could be an option. > > > That would be a nice option. ok >> - what happens if a certain version of perl is a prerequisite? Should >> it be grabbed too? But then it's not perl Makefile.PL && make install. >> This could be a big problem. > > > It should probably just be noted as a prereq, and then if you attempt to > install on a machine that doesn't have the right perl version, it should > fail. Presumably it'll fail somewhere in one of the module > installations anyway. sure, but my question is what the bundler should do if it sees a perl core prerequisite? Just ignore it? It'll for sure fail the install on the user's system. I guess what should be done is to note what version is required and put this as a prerequisite in the created bundle. i.e. the created bundle should fail during running a specially written Makefile.PL, as it'll require that version of Perl. >> Good idea. If nobody comes up with another name, it'll be CPAN::Bundler >> > > I don't like that much, because it doesn't actually create a CPAN Bundle > (does it?). Nope, it doesn't. How about CPAN::Stocker, (mnemonics: it stocks the modules). CPAN::DistroMaker for it creates a distro (similar to linux distros). CPAN::SDKMaker for it creates an SDK, similar to what Perl plans to have. I think I like CPAN::DistroMaker. _____________________________________________________________________ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
