Package: libfile-slurp-perl
Version: 9999.12-3
Justification: fails to build from source
Severity: important

"make test" fails with Test::More from libtest-simple-perl  0.94-1

t/error.t       (Wstat: 0 Tests: 10 Failed: 0)
  Parse errors: Plan (1..10) must be at the beginning or end of the TAP output
t/handle.t      (Wstat: 0 Tests: 5 Failed: 0)
  Parse errors: Plan (1..5) must be at the beginning or end of the TAP output
t/large.t       (Wstat: 0 Tests: 177 Failed: 0)
  Parse errors: Plan (1..177) must be at the beginning or end of the TAP output
t/paragraph.t   (Wstat: 0 Tests: 25 Failed: 0)
  Parse errors: Plan (1..25) must be at the beginning or end of the TAP output
t/pseudo.t      (Wstat: 0 Tests: 2 Failed: 0)
  Parse errors: Plan (1..2) must be at the beginning or end of the TAP output
Files=18, Tests=261,  2 wallclock secs ( 0.06 usr  0.02 sys +  1.56
cusr  0.18 csys =  1.82 CPU)
Result: FAIL
Failed 5/18 test programs. 0/261 subtests failed.


The problem is always

BEGIN { use_ok('File::Slurp') }
...
plan 42;

Since use_ok is run in BEGIN its output "ok 1" precedes the output
"1..42" of plan.
Either specify the number of test directly with

use Test::More tests => 42;

or (if not known statically) _after_ all tests are run with done_testing().

BTW, debian/rules uses "make install PREFIX=..." in the install rule.
Don't do that, use DESTDIR instead -it was always wrong and
doesn't work with latest Perl anymore:

$ make install PREFIX=$PWD/debian/libfile-slurp-perl/usr/
Manifying blib/man3/File::Slurp.3pm
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/share/man/man3'
Do not have write permissions on '/usr/share/man/man3'



Cheers, Roderich


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libfile-slurp-perl depends on:
ii  perl                          5.10.1-1   Larry Wall's Practical Extraction
ii  libtest-simple                0.94-1     set of basic utilities for writing

libfile-slurp-perl recommends no packages.

libfile-slurp-perl suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to