Subject: | cpan2dist --nobuildprereqs is of no use |
cpan2dist always follows dependencies and tries to build them, which is
not always wanted.
one can think that "cpan2dist --nobuildprereqs" would prevent this, but
nope, it's the default and really means: "don't rebuild prereqs if we're
at latest version, but rebuild anyway if we're not at latest version".
"cpan2dist --buildprereqs" indeed means "i really really want to loose
my time, please rebuild a package for all the prereqs even if i already
have them installed and working".
i don't think --buildprereqs is really useful...
i therefore propose to change the meaning to:
- --buildprereqs (default): build the prereqs if they are not installed,
or if the version installed is not recent enough to build the wanted
package. however, if the prereq is installed and recent enough for the
package to be built, don't rebuild it, even cpan holds a newer version
than what is installed on system.
- --nobuildprereqs: don't build the prereqs at all. if some of them are
missing, fail cpan2dist - after all, the user requested it.
i would really want that for app::cpan2pkg, and also because i really
cannot see a valid use case for current behaviour.