I have a rough start that I'm working on. Roughly I use a CPAN::Mini minicpan, a mod::CPAN::SQLite database, and attempt to pull prereqs information from the META.{json,yml} files (via Archive::Tar) and order with Graph's topological_sort.

It mostly worked, but depends on modules having proper and good dependency info in their META.

Since I'm planning on the great "do 5.10.x, 5.12.x, 5.14.x (OMG our work Perl is ancient!) migration path (across Solaris sparc/x86 and Linux and maybe OS X no less (screw Windows))... I worked out a better way for my purposes. I hacked up a cpan shell that logs every successful distribution installed (even the automatically followed ones) in a nice asked_for_this, dist_name, dist_version, dist_file_path, install_date tuple. That way after building the first install, I can filter and replay the remaining installs in the same CPAN calculated order.

My priorities were to get some basic CPAN pimping and then the various hard XS stuff (SNMP, DBDs, SSL, XML, stuff that uses external libraries that we have installed in strange places) out of the way first before blowing through all the other easy XS and PP things.

If you're just interested in not having CPAN stop, just configure it to automatically follow dependencies and stop on failure. It will still fail when it's going to fail and do all the work for you when it works (which is usually unless your system is as weird as mine).


In reply to Re: Optimizing an autobundle? by zengargoyle
in thread Optimizing an autobundle? by locked_user sundialsvc4

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.