>>>>> On Thu, 15 Nov 2007 13:01:09 +0000, David Cantrell <[EMAIL PROTECTED]> 
>>>>> said:

  > On Tue, Nov 13, 2007 at 12:15:47PM -0500, David Golden wrote:
 >> Without delving closer into the specifics, you have two issues that
 >> need to be separated:
 >> (a) needing DBI to be installed to work at all
 >> (b) needing to get information out of DBI for use in the make process
 >> How do other DBD modules handle it?  Or do they all just live with failures?

  > I suggest replacing these lines in Makefile.PL:

  >   use DBI 1.21;
  >   use DBI::DBD;

  > with:

  >   eval 'use DBI 1.21;use DBI::DBD' || eval q{
  >       use CPAN;
  >       CPAN::Shell->install("DBI");
  >   };
  >   eval 'use DBI 1.21;use DBI::DBD' || do {
  >       warn("Couldn't install DBI for some reason\n");
  >       exit 0;
  >   };

  > Yes, it's ugly as hell :-)

And it's dangerous as the devil. It only works if all goes well but it
has unamusing effects if things do not DWYM and there are plenty of
reasons why they won't. I have watched more than once Module::Install
going into recursion and every lower level Module::Install started to
do the very same things as the previous instance. It needs a very
educated eye to understand where the desaster started.

-- 
andreas

Reply via email to