Can't install GnuPG::Interface with CPAN - tests fail

This appears to be the last perl module I am trying to install using CPAN so that testdeps no longer returns any failure, but after doing extensive searching around I can’t figure out why Gnu::PGInterface wont pass these tests. Is there somewhere I can look to get more information?

This doesn’t appear to be a core dependency for RT, could I just go ahead and install RT now and not worry about this? what functionality will I lose if I don’t bother with this?

Output below when running cpan GnuPG::Interface

Loading internal null logger. Install Log::Log4perl for logging messages
CPAN: Storable loaded ok (v2.62)
Reading ‘/home/administrator/.cpan/Metadata’
Database was generated on Wed, 17 Oct 2018 02:17:03 GMT
Running install for module ‘GnuPG::Interface’
CPAN: Digest::SHA loaded ok (v5.96)
CPAN: Compress::Zlib loaded ok (v2.074)
Checksum for /home/administrator/.cpan/sources/authors/id/A/AL/ALEXMV/GnuPG-Interface-0.52.tar.gz ok
CPAN: YAML loaded ok (v1.26)
CPAN: CPAN::Meta::Requirements loaded ok (v2.140)
CPAN: Parse::CPAN::Meta loaded ok (v2.150010)
CPAN: CPAN::Meta loaded ok (v2.150010)
CPAN: Module::CoreList loaded ok (v5.20170922_26)
Configuring A/AL/ALEXMV/GnuPG-Interface-0.52.tar.gz with Makefile.PL
which gpg … /usr/bin/gpg
gpg: WARNING: unsafe ownership on homedir ‘/home/administrator/.gnupg’
Checking if your kit is complete…
Looks good
Generating a Unix-style Makefile
Writing Makefile for GnuPG::Interface
Writing MYMETA.yml and MYMETA.json
ALEXMV/GnuPG-Interface-0.52.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site – OK
Running make for A/AL/ALEXMV/GnuPG-Interface-0.52.tar.gz
cp lib/GnuPG/SecretKey.pm blib/lib/GnuPG/SecretKey.pm
cp lib/GnuPG/Handles.pm blib/lib/GnuPG/Handles.pm
cp lib/GnuPG/UserAttribute.pm blib/lib/GnuPG/UserAttribute.pm
cp lib/GnuPG/SubKey.pm blib/lib/GnuPG/SubKey.pm
cp lib/GnuPG/UserId.pm blib/lib/GnuPG/UserId.pm
cp lib/GnuPG/PrimaryKey.pm blib/lib/GnuPG/PrimaryKey.pm
cp lib/GnuPG/Key.pm blib/lib/GnuPG/Key.pm
cp lib/GnuPG/Interface.pm blib/lib/GnuPG/Interface.pm
cp lib/GnuPG/Options.pm blib/lib/GnuPG/Options.pm
cp lib/GnuPG/Revoker.pm blib/lib/GnuPG/Revoker.pm
cp lib/GnuPG/PublicKey.pm blib/lib/GnuPG/PublicKey.pm
cp lib/GnuPG/Signature.pm blib/lib/GnuPG/Signature.pm
cp lib/GnuPG/Fingerprint.pm blib/lib/GnuPG/Fingerprint.pm
cp lib/GnuPG/HashInit.pm blib/lib/GnuPG/HashInit.pm
Manifying 13 pod documents
ALEXMV/GnuPG-Interface-0.52.tar.gz
/usr/bin/make – OK
Running make test
PERL_DL_NONLAZY=1 “/usr/bin/perl” “-MExtUtils::Command::MM” “-MTest::Harness” “-e” "undef Test::Harness::Switches; test_harness(0, ‘inc’, ‘blib/lib’, ‘blib/arch’)" t/.t
t/clearsign.t … Failed 2/2 subtests
t/decrypt.t … Failed 4/4 subtests
t/detach_sign.t … Failed 2/2 subtests
t/encrypt.t … 1/4 gpg: WARNING: unsafe ownership on homedir ‘/home/administrator/.cpan/build/GnuPG-Interface-0.52-18/test’
t/encrypt.t … ok
t/encrypt_symmetrically.t … ok
t/export_keys.t … ok
t/Fingerprint.t … ok
t/get_public_keys.t … gpg: WARNING: unsafe ownership on homedir ‘/home/administrator/.cpan/build/GnuPG-Interface-0.52-18/test’
t/get_public_keys.t … Failed 1/3 subtests
t/get_secret_keys.t … gpg: WARNING: unsafe ownership on homedir ‘/home/administrator/.cpan/build/GnuPG-Interface-0.52-18/test’
t/get_secret_keys.t … Failed 2/2 subtests
t/import_keys.t … ok
t/Interface.t … ok
t/list_public_keys.t … ok
t/list_secret_keys.t … Failed 1/4 subtests
t/list_sigs.t … ok
t/passphrase_handling.t … 2/3 gpg: WARNING: unsafe ownership on homedir ‘/home/administrator/.cpan/build/GnuPG-Interface-0.52-18/test’
gpg: using “0xF950DA9C” as default secret key for signing
gpg: signing failed: Inappropriate ioctl for device
gpg: signing failed: Inappropriate ioctl for device
t/passphrase_handling.t … Failed 3/3 subtests
t/sign.t … Failed 2/2 subtests
t/sign_and_encrypt.t … Failed 2/2 subtests
t/UserId.t … ok
t/verify.t … ok
t/wrap_call.t … ok

Test Summary Report

t/clearsign.t (Wstat: 0 Tests: 2 Failed: 2)
Failed tests: 1-2
t/decrypt.t (Wstat: 0 Tests: 4 Failed: 4)
Failed tests: 1-4
t/detach_sign.t (Wstat: 0 Tests: 2 Failed: 2)
Failed tests: 1-2
t/get_public_keys.t (Wstat: 0 Tests: 3 Failed: 1)
Failed test: 3
t/get_secret_keys.t (Wstat: 0 Tests: 2 Failed: 2)
Failed tests: 1-2
t/list_secret_keys.t (Wstat: 0 Tests: 4 Failed: 1)
Failed test: 2
t/passphrase_handling.t (Wstat: 0 Tests: 3 Failed: 3)
Failed tests: 1-3
t/sign.t (Wstat: 0 Tests: 2 Failed: 2)
Failed tests: 1-2
t/sign_and_encrypt.t (Wstat: 0 Tests: 2 Failed: 2)
Failed tests: 1-2
Files=20, Tests=52, 17 wallclock secs ( 0.08 usr 0.02 sys + 5.15 cusr 0.63 csys = 5.88 CPU)
Result: FAIL
Failed 9/20 test programs. 19/52 subtests failed.
Makefile:805: recipe for target ‘test_dynamic’ failed
make: *** [test_dynamic] Error 255
ALEXMV/GnuPG-Interface-0.52.tar.gz
/usr/bin/make test – NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports ALEXMV/GnuPG-Interface-0.52.tar.gz

I see other folks have had issues over the years with installing GNUPg::Interface. Have you tried a pre-packaged binary if your platform has one? For example Redhat6/CentOS6 have it in perl-GnuPG-Interface and on my Debian 8 workstation its in libgnupg-interface-perl.

Also what version of GnuPG are your using this with? I’ve read that there were difficulties with some of the Perl bindings when folk moved the underlying binaries from v1.x to v2.

2 Likes

Thank you!

Installing libgnupg-interface-perl and it’s dependencies solved the issue. I’m running ubuntu 18.04.

testdeps now shows GnuPG::Interface as ‘found’