While testing the perl-5.28.0-readiness of CPAN libraries, I had occasion to try to install this module against perl-5.28.0-RC1 on FreeBSD-11.1. Tests and installation failed; here is an excerpt from the cpanm build.log:
#####
{
author => "DAGOLDEN",
dist => "Config-Identity",
distname => "Config-Identity-0.0019",
distversion => 0.0019,
grade => "FAIL",
prereqs => undef,
test_output => [
"Building and testing Config-Identity-0.0019",
"cp lib/Config/Identity.pm blib/lib/Config/Identity.pm",
"cp lib/Config/Identity/PAUSE.pm blib/lib/Config/Identity/PAUSE.pm",
"cp lib/Config/Identity/GitHub.pm blib/lib/Config/Identity/GitHub.pm",
"PERL_DL_NONLAZY=1 \"/usr/home/jkeenan/var/tad/testing/perl-5.28.0-RC1/bin/perl\" \"-MExtUtils::Command::MM\" \"-MTest::Harness\" \"-e\" \"undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')\" t/*.t",
"# ",
"# Versions for all modules listed in MYMETA.json (including optional ones):",
"# ",
"# === Configure Requires ===",
"# ",
"# Module Want Have",
"# ------------------- ---- ----",
"# ExtUtils::MakeMaker 6.17 7.34",
"# ",
"# === Build Requires ===",
"# ",
"# Module Want Have",
"# ------------------- ---- ----",
"# ExtUtils::MakeMaker any 7.34",
"# ",
"# === Test Requires ===",
"# ",
"# Module Want Have",
"# ------------------- ---- --------",
"# ExtUtils::MakeMaker any 7.34",
"# File::Spec any 3.74",
"# Test::Deep any 1.128",
"# Test::More any 1.302136",
"# ",
"# === Test Recommends ===",
"# ",
"# Module Want Have",
"# ---------- -------- --------",
"# CPAN::Meta 2.120900 2.150010",
"# ",
"# === Runtime Requires ===",
"# ",
"# Module Want Have",
"# ------------- ---- -----",
"# Carp any 1.50",
"# File::HomeDir any 1.004",
"# File::Spec any 3.74",
"# File::Which any 1.22",
"# IPC::Run any 0.99",
"# strict any 1.11",
"# warnings any 1.42",
"# ",
"t/00-report-prereqs.t .. ok",
"gpg: WARNING: unsafe permissions on homedir '/usr/home/jkeenan/var/tad/testing/perl-5.28.0-RC1/.cpanm/work/1527089479.86980/Config-Identity-0.0019/t/assets/gpg'",
"gpg: starting migration from earlier GnuPG versions",
"gpg: can't connect to the agent: File name too long",
"gpg: error: GnuPG agent unusable. Please check that a GnuPG agent can be started.",
"gpg: migration aborted",
"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",
"gpg: can't connect to the agent: File name too long",
" at t/01-basic.t line 92.",
"Error during decryption of t/assets/test.asc:",
"gpg: starting migration from earlier GnuPG versions",
"gpg: can't connect to the agent: File name too long",
"gpg: error: GnuPG agent unusable. Please check that a GnuPG agent can be started.",
"gpg: migration aborted",
"gpg: can't connect to the agent: File name too long",
"gpg: decryption failed: No secret key",
" at t/01-basic.t line 92.",
"# Looks like your test exited with 2 just after 12.",
"t/01-basic.t ........... ",
"Dubious, test returned 2 (wstat 512, 0x200)",
"All 12 subtests passed ",
"",
"Test Summary Report",
"-------------------",
"t/01-basic.t (Wstat: 512 Tests: 12 Failed: 0)",
" Non-zero exit status: 2",
"Files=2, Tests=13, 21 wallclock secs ( 0.02 usr 0.02 sys + 0.26 cusr 0.07 csys = 0.37 CPU)",
"Result: FAIL",
],
via => "App::cpanminus::reporter 0.17 (1.7043)",
}
#####
Now, I suspect that this boils down to "gpg not found". If so, would it be possible to modify the code so that we can the installer can exit earlier with a grade of NA rather than FAIL (i.e., so that make and make test are not even attempted)?
Or, is it the case that I'm missing some library?
Thank you very much.
Jim Keenan