Skip Menu |

This queue is for tickets about the Crypt-GCrypt CPAN distribution.

Report information
The Basics
Id: 112504
Status: open
Priority: 0/
Queue: Crypt-GCrypt

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

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



From: gregoa [...] cpan.org
Subject: libcrypt-gcrypt-perl: FTBFS against libgcrypt 1.7.0 beta
We have the following bug reported to the Debian package of Crypt-GCrypt (https://bugs.debian.org/816104): It doesn't seem to be a bug in the packaging, so you may want to take a look. Thanks! ------8<-----------8<-----------8<-----------8<-----------8<----- Package: libcrypt-gcrypt-perl Version: 1.26-3 Severity: important Hello, the package FTBFS against libgcrypt 1.7.0 beta with the folowing error: Test Summary Report ------------------- t/01-cipher.t (Wstat: 11 Tests: 19 Failed: 0) Non-zero wait status: 11 Parse errors: Bad plan. You planned 20 tests but ran 19. Files=11, Tests=234, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.20 cusr 0.01 csys = 0.24 CPU) Result: FAIL Failed 1/11 test programs. 0/234 subtests failed. Makefile:1003: recipe for target 'test_dynamic' failed make[1]: *** [test_dynamic] Error 255 libgcrypt 1.7.0 beta is available in Debian/experimental under a faked version number (1.6.5+gitXXX). Upstream intends to publish this as new stable release soonish. cu Andreas -- `What a good friend you are to him, Dr. Maturin. His other friends are so grateful to you.' `I sew his ears on from time to time, sure' ------8<-----------8<-----------8<-----------8<-----------8<----- Thanks for considering, gregor herrmann, Debian Perl Group
From: ntyni [...] iki.fi
Show quoted text
> the package FTBFS against libgcrypt 1.7.0 beta with the folowing > error: > > > Test Summary Report > ------------------- > t/01-cipher.t (Wstat: 11 Tests: 19 Failed: 0) > Non-zero wait status: 11 > Parse errors: Bad plan. You planned 20 tests but ran 19.
Here's a trivial patch for this. -- Niko Tyni ntyni@debian.org
Subject: 0001-Use-an-encryption-key-in-the-test-suite.patch
From cf6ef66ab447c696d465d3d1123685c2f281e8c2 Mon Sep 17 00:00:00 2001 From: Niko Tyni <ntyni@debian.org> Date: Sat, 23 Apr 2016 16:49:57 +0300 Subject: [PATCH] Use an encryption key in the test suite While encrypting without calling setkey() used to work before libgcrypt 1.7.0, this was accidental and not supported. It causes a SIGSEGV in 1.7.0 and will return an error in future versions. See <http://thread.gmane.org/gmane.comp.encryption.gpg.libgcrypt.devel/4487> Bug-Debian: https://bugs.debian.org/816104 --- t/01-cipher.t | 1 + 1 file changed, 1 insertion(+) diff --git a/t/01-cipher.t b/t/01-cipher.t index 3f7de37..0bbdf0a 100644 --- a/t/01-cipher.t +++ b/t/01-cipher.t @@ -102,6 +102,7 @@ ok(substr($d, 0, length $p) eq $p) algorithm => 'aes', padding => 'none' ); + $c->setkey($key); $c->start('encrypting'); ok(!eval {my $e2 = $c->encrypt('aaa'); 1}); # this should die ok(eval { my $e2 = $c->encrypt('aaaaaaaaaaaaaaaa') . $c->finish; 1 }); # this should not die -- 2.8.0.rc3