Skip Menu |

This queue is for tickets about the GnuPG-Interface CPAN distribution.

Report information
The Basics
Id: 133039
Status: open
Priority: 0/
Queue: GnuPG-Interface

People
Owner: Nobody in particular
Requestors: PUCK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.00
Fixed in: (no value)



Subject: t/Interfaces.t throws a warning if gnupg doesn't exist
Hey, On Debian we don't have a gnupg binary available which causes t/Interfaces.t to throw a warning since gnupg can't be executed to look for a version. The attached patch ensures that dummy scripts are available for all of gpg, gpg1 and gnupg. At least one real binary - most likely gpg - must be present. Cheers, Andrew
Subject: test-dummy-binaries
Download test-dummy-binaries
application/octet-stream 1.5k

Message body not shown because it is not plain text.

On Thu Jul 23 07:34:52 2020, PUCK wrote: Show quoted text
> Hey, > > On Debian we don't have a gnupg binary available which causes > t/Interfaces.t to throw a warning since gnupg can't be executed to > look for a version. The attached patch ensures that dummy scripts are > available for all of gpg, gpg1 and gnupg. At least one real binary - > most likely gpg - must be present.
Hi Andrew, Is there a reason to install GnuPG::Interface if you don't have gpg? Jim
Hey Jim, The issue that this patch is trying to resolve is the bogus warning generated in t/Interfaces.t when running: $gnupg->gnupg_call( $v2 ) Debian provides gpg, but not gnupg. When this test is run on Debian we get: puck@dirk:~/work/RT/libgnupg-interface-perl$ perl t/Interface.t 1..2 ok 1 Can't exec "gnupg": No such file or directory at /usr/share/perl5/GnuPG/Interface.pm line 343. exec() error: No such file or directory at /usr/share/perl5/GnuPG/Interface.pm line 343. Use of uninitialized value $line in pattern match (m//) at /usr/share/perl5/GnuPG/Interface.pm line 815. Use of uninitialized value $a in split at /usr/share/perl5/GnuPG/Interface.pm line 829. Use of uninitialized value $a in split at /usr/share/perl5/GnuPG/Interface.pm line 829. GnuPG Version 1.4 or 2.2+ required at /usr/share/perl5/GnuPG/Interface.pm line 74. Which is rather off putting, even though the test passes. Cheers, Andrew