Bug#468929: libmail-cclient-perl: mbox open failures cause test failures

Axel Beckert abe at debian.org
Fri Sep 19 12:01:00 UTC 2014


Control: severity -1 grave

Hi,

Niko Tyni wrote:
> I'm not sure if you're already aware of this, but the libmail-cclient-perl
> test suite currently fails most of its tests. This does not make the
> build fail, but it's certainly a bug.

While preparing an upload to fix #698979 (where we've got a ping after
a being tagged pending back in 2013), I noticed that the package seems
not to do anything useful anymore, as Drake Diedcrich already wrote in
2009:

> Mail::Cclient fails to open mbox files (found while looking for a
> faster mbox parser - the pure-perl ones used too many memory and CPU
> resources on really large mbox files).  Most of the tests depend on
> doing this, as the test cases are all stored in local mbox files.
> I'll poke at it a bit more and try to figure out what's not working
> and whether it can be patched here.
> 
> A test program for use with any mbox file:
> 
> #!/usr/bin/perl
> use strict;
> use Mail::Cclient;
> 
> foreach my $mboxname (@ARGV) {
>  my $c = new Mail::Cclient($mboxname, 'readonly');
>  if (defined $c) {
>    print STDERR "$mboxname opened by Mail::CClient\n";
>  } else {
>    print STDERR "$mboxname open failed\n";
>  }
> }

Same here:

$ perl t/check.t
1..5
ok 1
ok 2
error: Can't open mailbox /home/abe/pkg-perl/git/packages/libmail-cclient-perl/testmbx/test.mbox: no such mailbox
not ok 3
Can't call method "check" on an undefined value at t/check.t line 26.
$ ls -l /home/abe/pkg-perl/git/packages/libmail-cclient-perl/testmbx/test.mbox
-rw-r--r-- 1 abe tar 120931 Aug 29  2013 /home/abe/pkg-perl/git/packages/libmail-cclient-perl/testmbx/test.mbox
$

So for some reason it can't open definitely existing mail boxes. Which
IMHO is a grave issue as it renders the package unusable.

Jonas: If you no more use/need libmail-cclient-perl, I suggest to
remove it from the archive. Popcon is only around 20 and I didn't find
any reverse dependencies. Otherwise this issue needs to be fixed IMHO.

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe at debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-    |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5



More information about the pkg-perl-maintainers mailing list