Skip Menu |

This queue is for tickets about the Module-Build CPAN distribution.

Report information
The Basics
Id: 2788
Status: resolved
Priority: 0/
Queue: Module-Build

People
Owner: Nobody in particular
Requestors: mark [...] twoshortplanks.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.18_02
Fixed in: 0.18_04



Subject: signature tests failing
The signature.t test fail if you have Module::Signature installed but no signature to sign things with: mark@gan:~/Module-Build-0.18_02$ perl -Mblib t/signature.t 1..6 Checking whether your kit is complete... Looks good Scanning lib/Sample.pm for packages gpg: no default secret key: secret key not available gpg: [stdin]: clearsign failed: secret key not available not ok 1 # Test 1 got: 'Cannot find SIGNATURE.tmp, signing aborted. ' (t/signature.t at line 24) # Expected: '' not ok 2 # Failed test 2 in t/signature.t at line 25 Subroutine Module::Signature::sign redefined at t/signature.t line 32. Subroutine Module::Build::Base::ACTION_distmeta redefined at t/signature.t line 33. Deleting Sample-0.01 ok 3 ok 4 ok 5 Deleting Sample-0.01 ok 6 Information you may or may not want: mark@gan:~/Module-Build-0.18_02$ perl -v This is perl, v5.8.0 built for i386-linux-thread-multi mark@gan:~/Module-Build-0.18_02$ uname -a Linux gan 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i686 unknown unknown GNU/Linux Debian unstable mark@gan:~/Module-Build-0.18_02$ perl -MModule::Signature -e'print "$Module::Signature::VERSION\n"' 0.22 mark@gan:~/Module-Build-0.18_02$ gpg --version gpg (GnuPG) 1.2.1
I've changed the test so that it only runs the t/signature.t test if an environment variable is set. If it's possible to query Module::Signature to see whether it actually has signing capability, then we could be a bit more automatic, but at this point I don't think it's possible. -Ken