Skip Menu |

This queue is for tickets about the Config-Identity CPAN distribution.

Report information
The Basics
Id: 112569
Status: resolved
Priority: 0/
Queue: Config-Identity

People
Owner: Nobody in particular
Requestors: boesen [...] belwue.de
KENTNL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.0019



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
Download signature.asc
application/pgp-signature 842b

Message body not shown because it is not plain text.

During the failing test t/01-basic.t the following files get generated: ls --time-style=full-iso -ltr ./t/assets/gpg/S.gpg-agent ./t/assets/gpg/private-keys-v1.d/9E09C5BF10F2273196F58D070479572BF264FC89.key ./t/assets/gpg/private-keys-v1.d/9E33E8D390FB2C4244520DD2866F07EFBB6606ED.key ./t/assets/gpg/.gpg-v21-migrated ./t/assets/gpg/.gpg-v21-migrated srwx------ 1 sand sand 0 2016-08-18 09:21:44.796735266 +0200 ./t/assets/gpg/S.gpg-agent= -rw------- 1 sand sand 1057 2016-08-18 09:21:45.800727794 +0200 ./t/assets/gpg/private-keys-v1.d/9E33E8D390FB2C4244520DD2866F07EFBB6606ED.key -rw------- 1 sand sand 613 2016-08-18 09:21:45.800727794 +0200 ./t/assets/gpg/private-keys-v1.d/9E09C5BF10F2273196F58D070479572BF264FC89.key -rw-r--r-- 1 sand sand 0 2016-08-18 09:21:45.800727794 +0200 ./t/assets/gpg/.gpg-v21-migrated They can be generated before running the test as in this example: : % gpg --homedir ./t/assets/gpg --list-secret-keys : gpg: WARNING: unsafe permissions on homedir '/tmp/loop_over_bdir-bQg7EB/Config-Identity-0.0018-4/./t/assets/gpg' : gpg: starting migration from earlier GnuPG versions : gpg: porting secret keys from '/tmp/loop_over_bdir-bQg7EB/Config-Identity-0.0018-4/./t/assets/gpg/secring.gpg' to gpg-agent : gpg: key 542711D33A02A63D: secret key imported : gpg: migration succeeded : gpg: checking the trustdb : gpg: marginals needed: 3 completes needed: 1 trust model: pgp : gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u : /tmp/loop_over_bdir-bQg7EB/Config-Identity-0.0018-4/./t/assets/gpg/pubring.gpg : ------------------------------------------------------------------------------ : sec dsa1024 2010-05-12 [SC] : 1A1902C891EC3029B8000247542711D33A02A63D : uid [ultimate] config-identity : ssb elg2048 2010-05-12 [E] After that the tests succeed.
I have uploaded a distroprefs file that follows the recipe in the cpan shell: https://github.com/andk/cpanpm/blob/master/distroprefs/ROKR.Config-Identity.yml
This hopefully is fixed in 0.0019. Please reopen if you find it is not.