Bug#662599: libmail-imapclient-perl: FTBFS: Test suite failure

2012-03-05 Thread Moritz Muehlenhoff
Package: libmail-imapclient-perl
Version: 3.30-1
Severity: serious

Your package fails to build from source:

cp lib/Mail/IMAPClient/Thread.grammar blib/lib/Mail/IMAPClient/Thread.grammar
cp lib/Mail/IMAPClient.pm blib/lib/Mail/IMAPClient.pm
Manifying blib/man3/Mail::IMAPClient::Thread.3pm
Manifying blib/man3/Mail::IMAPClient::MessageSet.3pm
Manifying blib/man3/Mail::IMAPClient::BodyStructure.3pm
Manifying blib/man3/Mail::IMAPClient::BodyStructure::Parse.3pm
Manifying blib/man3/Mail::IMAPClient.3pm
make[1]: Leaving directory `/home/jmm/3/libmail-imapclient-perl-3.30'
   dh_auto_test
make[1]: Entering directory `/home/jmm/3/libmail-imapclient-perl-3.30'
PERL_DL_NONLAZY=1 /usr/bin/perl -MExtUtils::Command::MM -e test_harness(0, 
'blib/lib', 'blib/arch') t/*.t
t/basic.t .. skipped: test parameters not provided in test.txt
t/body_string.t  ok   
t/bodystructure.t .. 1/41 Can't call method at on unblessed reference at 
/usr/share/perl5/Parse/RecDescent.pm line 3109.
# Looks like you planned 41 tests but ran 1.
# Looks like your test exited with 255 just after 1.
t/bodystructure.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 40/41 subtests 
t/fetch_hash.t . ok 
t/messageset.t . ok   
t/pod.t  ok   
t/simple.t . ok 
t/thread.t . 1/7 Can't call method at on unblessed reference at 
/usr/share/perl5/Parse/RecDescent.pm line 3109.
# Looks like you planned 7 tests but ran 3.
# Looks like your test exited with 255 just after 3.
t/thread.t . Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 4/7 subtests 

Test Summary Report
---
t/bodystructure.t (Wstat: 65280 Tests: 1 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 41 tests but ran 1.
t/thread.t   (Wstat: 65280 Tests: 3 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 7 tests but ran 3.
Files=8, Tests=55,  1 wallclock secs ( 0.09 usr  0.10 sys +  0.88 cusr  0.28 
csys =  1.35 CPU)
Result: FAIL
Failed 2/8 test programs. 0/55 subtests failed.
make[1]: *** [test_dynamic] Error 255
make[1]: Leaving directory `/home/jmm/3/libmail-imapclient-perl-3.30'
dh_auto_test: make -j1 test returned exit code 2
make: *** [build] Error 29
dpkg-buildpackage: error: debian/rules build gave error exit status 2



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#662599: libmail-imapclient-perl: FTBFS: Test suite failure

2012-03-05 Thread Gilles LAMIRAL
Hello Moritz,

Perl release?

I think this code test is very old, the load fails. Perl changes.

 t/bodystructure.t .. 1/41 Can't call method at on unblessed reference at 
 /usr/share/perl5/Parse/RecDescent.pm line 3109.


-- 
Au revoir, 09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06 



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#662599: libmail-imapclient-perl: FTBFS: Test suite failure

2012-03-05 Thread Moritz Mühlenhoff
On Montag, 5. März 2012 11:08:41 Gilles LAMIRAL wrote:
 Hello Moritz,
 
 Perl release?
 
 I think this code test is very old, the load fails. Perl changes.

This is Perl 5.14.2 from Debian unstable (5.14.2-9)

Cheers,
Moritz
-- 
Moritz Mühlenhoff muehlenh...@univention.de
Open Source Software Engineer and Consultant
Univention GmbH  Linux for Your Business fon: +49 421 22 232- 0
Mary-Somerville-Str.1  28359 Bremen  fax: +49 421 22 232-99
http://www.univention.de



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#662599: libmail-imapclient-perl: FTBFS: Test suite failure

2012-03-05 Thread Niko Tyni
On Mon, Mar 05, 2012 at 11:08:41AM +0100, Gilles LAMIRAL wrote:
 
 Perl release?
 
 I think this code test is very old, the load fails. Perl changes.
 
  t/bodystructure.t .. 1/41 Can't call method at on unblessed reference at 
  /usr/share/perl5/Parse/RecDescent.pm line 3109.

More likely Parse::RecDescent changes.

 https://rt.cpan.org/Public/Bug/Display.html?id=74733
-- 
Niko Tyni   nt...@debian.org



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#662599: libmail-imapclient-perl: FTBFS: Test suite failure

2012-03-05 Thread Gilles LAMIRAL
Hi,

 t/bodystructure.t .. 1/41 Can't call method at on unblessed reference at 
 /usr/share/perl5/Parse/RecDescent.pm line 3109.
 
 More likely Parse::RecDescent changes.
  https://rt.cpan.org/Public/Bug/Display.html?id=74733

We have to discover what change in Parse::RecDescent breaks the Mail-IMAPClient 
code.


-- 
Au revoir, 09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06 



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#662599: libmail-imapclient-perl: FTBFS: Test suite failure

2012-03-05 Thread Niko Tyni
On Mon, Mar 05, 2012 at 01:09:29PM +0100, Gilles LAMIRAL wrote:
  t/bodystructure.t .. 1/41 Can't call method at on unblessed reference 
  at /usr/share/perl5/Parse/RecDescent.pm line 3109.
  
  More likely Parse::RecDescent changes.
   https://rt.cpan.org/Public/Bug/Display.html?id=74733
 
 We have to discover what change in Parse::RecDescent breaks the 
 Mail-IMAPClient code.

Just recompiling the grammars seems to fix this.

perl -MParse::RecDescent - lib/Mail/IMAPClient/Thread.grammar \
Mail::IMAPClient::Thread  \
mv Thread.pm lib/Mail/IMAPClient/
perl -MParse::RecDescent - lib/Mail/IMAPClient/BodyStructure/Parse.grammar \
  Mail::IMAPClient::BodyStructure::Parse  \
mv Parse.pm lib/Mail/IMAPClient/BodyStructure/

It might be a good idea to either do this during the Debian build or use
the -standalone parameter to PreCompile(), which embeds Parse::RecDescent
into the compiled grammar .pm  file.

I think I prefer the first approach, as it makes sure regressions are
found before users run into them (for example, when they want to modify
the grammar for their own purposes and only then find out it can't be
compiled with current versions of Parse::RecDescent.)
-- 
Niko Tyni   nt...@debian.org



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org