Skip Menu |

This queue is for tickets about the ObjectDBI CPAN distribution.

Report information
The Basics
Id: 61594
Status: open
Priority: 0/
Queue: ObjectDBI

People
Owner: Nobody in particular
Requestors: ANDK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.14
Fixed in: (no value)



Subject: Fails when SQL::Statement is installed and MLDBM is not
One of my smokers just encountered the situation that SQL::Statement was installed but MLDBM wasn't and the tests failed like so: make[1]: Entering directory `/home/sand/.cpan/build/ObjectDBI-0.14-NsfbUf' PERL_DL_NONLAZY=1 /usr/local/perl-5.10.1/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t DBD::DBM::db do failed: Execution ERROR: Can't locate MLDBM.pm in @INC (@INC contains: ../lib /home/sand /.cpan/build/ObjectDBI-0.14-NsfbUf/blib/arch /home/sand/.cpan/build/ObjectDBI-0. 14-NsfbUf/blib/lib /usr/local/perl-5.10.1/lib/5.10.1/i686-linux /usr/local/perl- 5.10.1/lib/5.10.1 /usr/local/perl-5.10.1/lib/site_perl/5.10.1/i686-linux /usr/lo cal/perl-5.10.1/lib/site_perl/5.10.1 .) at /usr/local/perl-5.10.1/lib/site_perl/5.10.1/i686-linux/DBD/DBM.pm line 315. called from t/t01.pl at 16. [for Statement " create table perlobjects ( obj_id text, obj_pid text, obj_gpid text, obj_name text, obj_type text, obj_value text ) "] at t/t01.pl line 16. DBD::DBM::db do failed: Execution ERROR: Can't locate MLDBM.pm in @INC (@INC contains: ../lib /home/sand/.cpan/build/ObjectDBI-0.14-NsfbUf/blib/arch /home/sand/.cpan/build/ObjectDBI-0.14-NsfbUf/blib/lib /usr/local/perl-5.10.1/lib/5.10.1/i686-linux /usr/local/perl-5.10.1/lib/5.10.1 /usr/local/perl-5.10.1/lib/site_perl/5.10.1/i686-linux /usr/local/perl-5.10.1/lib/site_perl/5.10.1 .) at /usr/local/perl-5.10.1/lib/site_perl/5.10.1/i686-linux/DBD/DBM.pm line 315. called from /home/sand/.cpan/build/ObjectDBI-0.14-NsfbUf/blib/lib/ObjectDBI.pm at 913. [for Statement "insert into perlobjects (obj_id, obj_pid, obj_gpid, obj_name, obj_type, obj_value) values (?,?,?,?,?,?)"] at /home/sand/.cpan/build/ObjectDBI-0.14-NsfbUf/blib/lib/ObjectDBI.pm line 913. DBD::DBM::db selectall_arrayref failed: Execution ERROR: Can't locate MLDBM.pm in @INC (@INC contains: ../lib /home/sand/.cpan/build/ObjectDBI-0.14-NsfbUf/blib/arch /home/sand/.cpan/build/ObjectDBI-0.14-NsfbUf/blib/lib /usr/local/perl-5.10.1/lib/5.10.1/i686-linux /usr/local/perl-5.10.1/lib/5.10.1 /usr/local/perl-5.10.1/lib/site_perl/5.10.1/i686-linux /usr/local/perl-5.10.1/lib/site_perl/5.10.1 .) at /usr/local/perl-5.10.1/lib/site_perl/5.10.1/i686-linux/DBD/DBM.pm line 315. called from /home/sand/.cpan/build/ObjectDBI-0.14-NsfbUf/blib/lib/ObjectDBI.pm at 834. [for Statement "select obj_id, obj_pid, obj_gpid, obj_name, obj_type, obj_value from perlobjects where obj_gpid='0' order by obj_pid, obj_id"] at /home/sand/.cpan/build/ObjectDBI-0.14-NsfbUf/blib/lib/ObjectDBI.pm line 834. t/t01.t .. Failed 1/1 subtests t/t02.t .. ok I see similar fails at cpantesters, e.g. http://www.cpantesters.org/cpan/report/8594149 HTH, Thanks && Regards,
Subject: Re: [rt.cpan.org #61594] Fails when SQL::Statement is installed and MLDBM is not
Date: Fri, 24 Sep 2010 18:29:45 +0200
To: bug-ObjectDBI [...] rt.cpan.org
From: KJ Hermans <kees [...] pink-frog.com>
The problem lies with my obstinacy; I want to be able to specify separate dependency lists in my package: one for production, and one for testing purposes. So far I haven't found a possibility to do this with ExtUtils::MakeMaker. On Thu, 2010-09-23 at 14:54 -0400, Andreas Koenig via RT wrote: Show quoted text
> Thu Sep 23 14:53:59 2010: Request 61594 was acted upon. > Transaction: Ticket created by ANDK > Queue: ObjectDBI > Subject: Fails when SQL::Statement is installed and MLDBM is not > Broken in: 0.14 > Severity: Normal > Owner: Nobody > Requestors: ANDK@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=61594 > > > > One of my smokers just encountered the situation that SQL::Statement was > installed but MLDBM wasn't and the tests failed like so: > > make[1]: Entering directory `/home/sand/.cpan/build/ObjectDBI-0.14-NsfbUf' > PERL_DL_NONLAZY=1 /usr/local/perl-5.10.1/bin/perl > "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > DBD::DBM::db do failed: > Execution ERROR: Can't locate MLDBM.pm in @INC (@INC contains: ../lib > /home/sand > /.cpan/build/ObjectDBI-0.14-NsfbUf/blib/arch > /home/sand/.cpan/build/ObjectDBI-0. > 14-NsfbUf/blib/lib /usr/local/perl-5.10.1/lib/5.10.1/i686-linux > /usr/local/perl- > 5.10.1/lib/5.10.1 /usr/local/perl-5.10.1/lib/site_perl/5.10.1/i686-linux > /usr/lo > cal/perl-5.10.1/lib/site_perl/5.10.1 .) at > /usr/local/perl-5.10.1/lib/site_perl/5.10.1/i686-linux/DBD/DBM.pm line 315. > called from t/t01.pl at 16. > > [for Statement " > create table perlobjects ( > obj_id text, > obj_pid text, > obj_gpid text, > obj_name text, > obj_type text, > obj_value text > ) > "] at t/t01.pl line 16. > DBD::DBM::db do failed: > Execution ERROR: Can't locate MLDBM.pm in @INC (@INC contains: ../lib > /home/sand/.cpan/build/ObjectDBI-0.14-NsfbUf/blib/arch > /home/sand/.cpan/build/ObjectDBI-0.14-NsfbUf/blib/lib > /usr/local/perl-5.10.1/lib/5.10.1/i686-linux > /usr/local/perl-5.10.1/lib/5.10.1 > /usr/local/perl-5.10.1/lib/site_perl/5.10.1/i686-linux > /usr/local/perl-5.10.1/lib/site_perl/5.10.1 .) at > /usr/local/perl-5.10.1/lib/site_perl/5.10.1/i686-linux/DBD/DBM.pm line 315. > called from > /home/sand/.cpan/build/ObjectDBI-0.14-NsfbUf/blib/lib/ObjectDBI.pm at 913. > > [for Statement "insert into perlobjects (obj_id, obj_pid, obj_gpid, > obj_name, obj_type, obj_value) values (?,?,?,?,?,?)"] at > /home/sand/.cpan/build/ObjectDBI-0.14-NsfbUf/blib/lib/ObjectDBI.pm line 913. > DBD::DBM::db selectall_arrayref failed: > Execution ERROR: Can't locate MLDBM.pm in @INC (@INC contains: ../lib > /home/sand/.cpan/build/ObjectDBI-0.14-NsfbUf/blib/arch > /home/sand/.cpan/build/ObjectDBI-0.14-NsfbUf/blib/lib > /usr/local/perl-5.10.1/lib/5.10.1/i686-linux > /usr/local/perl-5.10.1/lib/5.10.1 > /usr/local/perl-5.10.1/lib/site_perl/5.10.1/i686-linux > /usr/local/perl-5.10.1/lib/site_perl/5.10.1 .) at > /usr/local/perl-5.10.1/lib/site_perl/5.10.1/i686-linux/DBD/DBM.pm line 315. > called from > /home/sand/.cpan/build/ObjectDBI-0.14-NsfbUf/blib/lib/ObjectDBI.pm at 834. > > [for Statement "select obj_id, obj_pid, obj_gpid, obj_name, obj_type, > obj_value from perlobjects where obj_gpid='0' order by obj_pid, obj_id"] > at /home/sand/.cpan/build/ObjectDBI-0.14-NsfbUf/blib/lib/ObjectDBI.pm > line 834. > t/t01.t .. > Failed 1/1 subtests > t/t02.t .. ok > > > I see similar fails at cpantesters, e.g. > > http://www.cpantesters.org/cpan/report/8594149 > > HTH, Thanks && Regards,
I don't quite understand what you're trying to achieve. To state the obvious, the Makefile.PL is there to declare dependencies while the tests are there to verify that the package works. PRERQ_PM is a hash reference, you can manipulate it at will before you call WriteMakefile().
Subject: Re: [rt.cpan.org #61594] Fails when SQL::Statement is installed and MLDBM is not
Date: Sat, 25 Sep 2010 11:28:41 +0200
To: bug-ObjectDBI [...] rt.cpan.org
From: KJ Hermans <kees [...] pink-frog.com>
Dear Mr Koenig, I'm trying to test my package using external modules that aren't necessary on a production system or for people who simply don't test (they exist). I would like to be able to specify, somewhere, those dependencies as separate from the 'normal' (or 'production') dependencies. The testing dependencies come on top of the package's 'normal' dependencies, but on a production system, wouldn't necessarily foul up your system. To be more specific, in my case, it would be something like: production dependencies: DBI => 1.3 testing dependencies (come on top of 'production deps'): DBD::CSV => 0 If this were possible, then the people who install my package, when they're absolutely sure, they don't need to install DBD::CSV (clogging up their system and their time), and the testing farms would have something they can automate. Sincerely, KJH On Sat, 2010-09-25 at 04:01 -0400, Andreas Koenig via RT wrote: Show quoted text
> Queue: ObjectDBI > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=61594 > > > I don't quite understand what you're trying to achieve. To state the > obvious, the Makefile.PL is there to declare dependencies while the > tests are there to verify that the package works. > > PRERQ_PM is a hash reference, you can manipulate it at will before you > call WriteMakefile().
I think you want to specify "BUILD_REQUIRES".
Subject: Re: [rt.cpan.org #61594] Fails when SQL::Statement is installed and MLDBM is not
Date: Fri, 01 Oct 2010 07:58:46 +0200
To: bug-ObjectDBI [...] rt.cpan.org
From: KJ Hermans <kees [...] pink-frog.com>
I have specified BUILD_REQUIRES, and even though it will now emit a warning when unpacking at home (Fedora core latest), I have noticed that this must quite a new feature, because a) my work system doesn't support it (ubuntu karmic, not the newest of the new, but not the oldest of the old either), and b) I still get test reports from other people that fail. Sincerely, KJ On Sat, 2010-09-25 at 15:16 -0400, Andreas Koenig via RT wrote: Show quoted text
> Queue: ObjectDBI > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=61594 > > > I think you want to specify "BUILD_REQUIRES".