Subject: | "new" gpg version breaks t/01-basic.t |
Date: | Mon, 29 Feb 2016 16:37:26 +0100 |
To: | bug-Config-Identity [...] rt.cpan.org |
From: | Andreas Boesen <boesen [...] belwue.de> |
Hi,
when trying to install Config::Identity via cpanm I get the following
Error:
<snip>
$ cpanm Config::Identity
--> Working on Config::Identity
Fetching
http://www.cpan.org/authors/id/R/RO/ROKR/Config-Identity-0.0018.tar.gz
... OK
Configuring Config-Identity-0.0018 ... OK
Building and testing Config-Identity-0.0018 ... FAIL
! Installing Config::Identity failed. See
/home/andreasb/.cpanm/work/1456758411.26065/build.log for details. Retry
with --force to force install it.
</snap>
The log says the following:
<snip>
[...]
Manifying 1 pod document
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM"
"-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
at t/01-basic.t line 48.
Error during decryption of t/assets/test.asc:
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from 't/assets/gpg/secring.gpg' to gpg-agent
gpg: migration succeeded
at t/01-basic.t line 48.
# Looks like your test exited with 255 just after 4.
t/01-basic.t ..
Dubious, test returned 255 (wstat 65280, 0xff00)
All 4 subtests passed
Test Summary Report
-------------------
t/01-basic.t (Wstat: 65280 Tests: 4 Failed: 0)
Non-zero exit status: 255
Files=1, Tests=4, 1 wallclock secs ( 0.01 usr 0.00 sys + 0.06 cusr 0.00
csys = 0.07 CPU)
Result: FAIL
Failed 1/1 test programs. 0/4 subtests failed.
Makefile:850: die Regel für Ziel „test_dynamic“ scheiterte
make: *** [test_dynamic] Fehler 255
-> FAIL Installing Config::Identity failed. See
/home/$HOME/.cpanm/work/1456758411.26065/build.log for details. Retry
with --force to force install it.
</snap>
If I download Config-Identity-0.0018.tar.gz from cpan, unpack it and run
the test myself using `prove -lv` I get the same output like the
logfile. gpg does some migration and probably reports it via STDERR
which in turn results in a failing test.
If you run `prove -lv` a second time after gpg tells you that it did the
"migration" (whatever those might be) the test succeeds:
<snip>
t/01-basic.t ..
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
1..8
ok
All tests successful.
Files=1, Tests=8, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.06 cusr
0.01 csys = 0.09 CPU)
Result: PASS
</snap>
If someone wants to use cpanm to install Config::Identity one has to use
"-f" because every time cpanm is invoked it will download a fresh copy
where the migrations of gpg was not run, yet.
There probably needs to be a distinction of different (older and newer)
GnuPG versions.
My environment:
Distribution name and version:
--> Config-Identity-0.0018.tar.gz
GPG Version:
--> `gpg --version`: gpg (GnuPG) 2.1.11
libgcrypt 1.6.5
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: ~/.gnupg
Unterstützte Verfahren:
Öff. Schlüssel: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Verschlü.: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Komprimierung: nicht komprimiert, ZIP, ZLIB, BZIP2
Perl version:
--> `perl -v | head -n 2 | tail -n 1`: This is perl 5, version 22,
subversion 1 (v5.22.1) built for x86_64-linux-thread-multi
Operating System vendor and version:
--> Linux MyHostname 4.4.1-2-ARCH #1 SMP PREEMPT Wed Feb 3 13:12:33 UTC
2016 x86_64 GNU/Linux
Best regards,
Andreas
--
Andreas Boesen, BelWü-Koordination, Universität Stuttgart
Industriestr. 28, 70565 Stuttgart
Tel. 0711/685-65750 - Fax 0711/6788363
boesen@belwue.de - http://www.belwue.de
~cd in and find out
Message body not shown because it is not plain text.