Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Data-Printer CPAN distribution.

Report information
The Basics
Id: 95571
Status: resolved
Priority: 0/
Queue: Data-Printer

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

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



Subject: install fails: Failed test 'Digest::SHA'

Message body is not shown because it is too large.

There might be two unrelated problems present. Show quoted text
> DBIx::Class::Storage::DBI::_warn_undetermined_driver(): This version > of DBIC does not yet seem to supply a driver for your particular RDBMS > and/or connection method ('DBM'). While we will attempt to continue > anyway, the results are likely to be underwhelming. Please upgrade > DBIC, and if this message does not go away, file a bugreport including > the following info: > { > DBD => "DBD::DBM(RaiseError=1)", > DBD_VER => undef, > DBIC_DRIVER => "DBIx::Class::Storage::DBI", > DBIC_DSN => "dbi:DBM(RaiseError=1):", > DBIC_VER => "0.08270", > DBI_VER => "1.631" > } > t/13.2-filter_db.t .......... ok
15:21 < haarg> that warning didn't exist when the test was written 15:24 < davewood> well... the warning is werid because DBD::DBM is installed. 15:25 < davewood> and further down some tests are failing. the DBIC warning is the first thing that was irregular in the log. 15:28 < haarg> i don't think they are related 15:28 < haarg> and dbic doesn't have any explicit support for DBD::DBM, which it generally needs to work well And the second issues is about failing test, all of them related to digests Show quoted text
> # Failed test 'Digest::SHA' > # at t/13.3-filter_digest.t line 39. > # got: 'Digest::SHA { > # Parents Exporter, DynaLoader > # Linear @ISA Digest::SHA, Exporter, DynaLoader > # public methods (99) : add, add_bits, addfile, algorithm, > bootstrap, b64digest, clone, DESTROY, digest, dump, FD_CLOEXEC, > F_DUPFD, F_EXLCK, F_GETFD, F_GETFL, F_GETLK, F_GETLK64, F_GETOWN, > F_RDLCK, F_SETFD, F_SETFL, F_SETLK, F_SETLKW, F_SETLKW64, F_SETLK64, > F_SETOWN, F_SHLCK, F_UNLCK, F_WRLCK, getstate, hashsize, hexdigest, > hmac_sha1, hmac_sha1_base64, hmac_sha1_hex, hmac_sha224, > hmac_sha224_base64, hmac_sha224_hex, hmac_sha256, hmac_sha256_base64, > hmac_sha256_hex, hmac_sha384, hmac_sha384_base64, hmac_sha384_hex, > hmac_sha512, hmac_sha512_base64, hmac_sha512_hex, hmac_sha512224, > hmac_sha512224_base64, hmac_sha512224_hex, hmac_sha512256, > hmac_sha512256_base64, hmac_sha512256_hex, load, new, newSHA, > O_ACCMODE, O_APPEND, O_ASYNC, O_CREAT, O_DIRECT, O_DIRECTORY, O_DSYNC, > O_EXCL, O_NDELAY, O_NOCTTY, O_NONBLOCK, O_RDONLY, O_RDWR, O_RSYNC, > O_SYNC, O_TEXT, O_TRUNC, O_WRONLY, putstate, shainit, sharewind, > shawrite, sha1, sha1_base64, sha1_hex, sha224, sha224_base64, > sha224_hex, sha256, sha256_base64, sha256_hex, sha384, sha384_base64, > sha384_hex, sha512, sha512_base64, sha512_hex, sha512224, > sha512224_base64, sha512224_hex, sha512256, sha512256_base64, > sha512256_hex > # private methods (6) : _addfilebin, _addfileuniv, _bail, > _getstate, _istext, _putstate > # internals: 27459104 > # }' > # expected: '9e5ebb86f1ebe5a5fd6fbc7df41b1281c1abb318' > # Failed test 'Digest::SHA with class name' > # at t/13.3-filter_digest.t line 40. > # got: 'Digest::SHA { > # Parents Exporter, DynaLoader > # Linear @ISA Digest::SHA, Exporter, DynaLoader > # public methods (99) : add, add_bits, addfile, algorithm, > bootstrap, b64digest, clone, DESTROY, digest, dump, FD_CLOEXEC, > F_DUPFD, F_EXLCK, F_GETFD, F_GETFL, F_GETLK, F_GETLK64, F_GETOWN, > F_RDLCK, F_SETFD, F_SETFL, F_SETLK, F_SETLKW, F_SETLKW64, F_SETLK64, > F_SETOWN, F_SHLCK, F_UNLCK, F_WRLCK, getstate, hashsize, hexdigest, > hmac_sha1, hmac_sha1_base64, hmac_sha1_hex, hmac_sha224, > hmac_sha224_base64, hmac_sha224_hex, hmac_sha256, hmac_sha256_base64, > hmac_sha256_hex, hmac_sha384, hmac_sha384_base64, hmac_sha384_hex, > hmac_sha512, hmac_sha512_base64, hmac_sha512_hex, hmac_sha512224, > hmac_sha512224_base64, hmac_sha512224_hex, hmac_sha512256, > hmac_sha512256_base64, hmac_sha512256_hex, load, new, newSHA, > O_ACCMODE, O_APPEND, O_ASYNC, O_CREAT, O_DIRECT, O_DIRECTORY, O_DSYNC, > O_EXCL, O_NDELAY, O_NOCTTY, O_NONBLOCK, O_RDONLY, O_RDWR, O_RSYNC, > O_SYNC, O_TEXT, O_TRUNC, O_WRONLY, putstate, shainit, sharewind, > shawrite, sha1, sha1_base64, sha1_hex, sha224, sha224_base64, > sha224_hex, sha256, sha256_base64, sha256_hex, sha384, sha384_base64, > sha384_hex, sha512, sha512_base64, sha512_hex, sha512224, > sha512224_base64, sha512224_hex, sha512256, sha512256_base64, > sha512256_hex > # private methods (6) : _addfilebin, _addfileuniv, _bail, > _getstate, _istext, _putstate > # internals: 27459104 > # }' > # expected: '9e5ebb86f1ebe5a5fd6fbc7df41b1281c1abb318 > (Digest::SHA)' > > # Failed test 'inline and class filters together (Digest::SHA)' > # at t/13.3-filter_digest.t line 42. > # got: '[ > # [0] Digest::SHA { > # Parents Exporter, DynaLoader > # Linear @ISA Digest::SHA, Exporter, DynaLoader > # public methods (99) : add, add_bits, addfile, algorithm, > bootstrap, b64digest, clone, DESTROY, digest, dump, FD_CLOEXEC, > F_DUPFD, F_EXLCK, F_GETFD, F_GETFL, F_GETLK, F_GETLK64, F_GETOWN, > F_RDLCK, F_SETFD, F_SETFL, F_SETLK, F_SETLKW, F_SETLKW64, F_SETLK64, > F_SETOWN, F_SHLCK, F_UNLCK, F_WRLCK, getstate, hashsize, hexdigest, > hmac_sha1, hmac_sha1_base64, hmac_sha1_hex, hmac_sha224, > hmac_sha224_base64, hmac_sha224_hex, hmac_sha256, hmac_sha256_base64, > hmac_sha256_hex, hmac_sha384, hmac_sha384_base64, hmac_sha384_hex, > hmac_sha512, hmac_sha512_base64, hmac_sha512_hex, hmac_sha512224, > hmac_sha512224_base64, hmac_sha512224_hex, hmac_sha512256, > hmac_sha512256_base64, hmac_sha512256_hex, load, new, newSHA, > O_ACCMODE, O_APPEND, O_ASYNC, O_CREAT, O_DIRECT, O_DIRECTORY, O_DSYNC, > O_EXCL, O_NDELAY, O_NOCTTY, O_NONBLOCK, O_RDONLY, O_RDWR, O_RSYNC, > O_SYNC, O_TEXT, O_TRUNC, O_WRONLY, putstate, shainit, sharewind, > shawrite, sha1, sha1_base64, sha1_hex, sha224, sha224_base64, > sha224_hex, sha256, sha256_base64, sha256_hex, sha384, sha384_base64, > sha384_hex, sha512, sha512_base64, sha512_hex, sha512224, > sha512224_base64, sha512224_hex, sha512256, sha512256_base64, > sha512256_hex > # private methods (6) : _addfilebin, _addfileuniv, _bail, > _getstate, _istext, _putstate > # internals: 27459104 > # }, > # [1] this is a hash > # ]' > # expected: '[ > # [0] 9e5ebb86f1ebe5a5fd6fbc7df41b1281c1abb318, > # [1] this is a hash > # ]' > > # Failed test 'reset Digest::SHA' > # at t/13.3-filter_digest.t line 48. > # got: 'Digest::SHA { > # Parents Exporter, DynaLoader > # Linear @ISA Digest::SHA, Exporter, DynaLoader > # public methods (99) : add, add_bits, addfile, algorithm, > bootstrap, b64digest, clone, DESTROY, digest, dump, FD_CLOEXEC, > F_DUPFD, F_EXLCK, F_GETFD, F_GETFL, F_GETLK, F_GETLK64, F_GETOWN, > F_RDLCK, F_SETFD, F_SETFL, F_SETLK, F_SETLKW, F_SETLKW64, F_SETLK64, > F_SETOWN, F_SHLCK, F_UNLCK, F_WRLCK, getstate, hashsize, hexdigest, > hmac_sha1, hmac_sha1_base64, hmac_sha1_hex, hmac_sha224, > hmac_sha224_base64, hmac_sha224_hex, hmac_sha256, hmac_sha256_base64, > hmac_sha256_hex, hmac_sha384, hmac_sha384_base64, hmac_sha384_hex, > hmac_sha512, hmac_sha512_base64, hmac_sha512_hex, hmac_sha512224, > hmac_sha512224_base64, hmac_sha512224_hex, hmac_sha512256, > hmac_sha512256_base64, hmac_sha512256_hex, load, new, newSHA, > O_ACCMODE, O_APPEND, O_ASYNC, O_CREAT, O_DIRECT, O_DIRECTORY, O_DSYNC, > O_EXCL, O_NDELAY, O_NOCTTY, O_NONBLOCK, O_RDONLY, O_RDWR, O_RSYNC, > O_SYNC, O_TEXT, O_TRUNC, O_WRONLY, putstate, shainit, sharewind, > shawrite, sha1, sha1_base64, sha1_hex, sha224, sha224_base64, > sha224_hex, sha256, sha256_base64, sha256_hex, sha384, sha384_base64, > sha384_hex, sha512, sha512_base64, sha512_hex, sha512224, > sha512224_base64, sha512224_hex, sha512256, sha512256_base64, > sha512256_hex > # private methods (6) : _addfilebin, _addfileuniv, _bail, > _getstate, _istext, _putstate > # internals: 27459104 > # }' > # expected: 'da39a3ee5e6b4b0d3255bfef95601890afd80709 [reset]' > # Looks like you failed 4 tests of 20. > t/13.3-filter_digest.t ...... > Dubious, test returned 4 (wstat 1024, 0x400) > Failed 4/20 subtests > (less 4 skipped subtests: 12 okay)
The digest tests can all be fixed by requiring Digest::SHA 5.91 if the currently installed version is 5.90 (or maybe just require 5.91 in general).
On Mon May 26 07:53:52 2014, MITHALDU wrote: Show quoted text
> The digest tests can all be fixed by requiring Digest::SHA 5.91 if the > currently installed version is 5.90 (or maybe just require 5.91 in > general).
Indeed, the tests were failing because Digest::SHA 5.90 didn't subclass Digest::base. Since the digest filter itself contains such verification, I just added it to the test (commit 672737a) and everything should be right with the universe again :) Thanks a lot for reporting and working through this issue, everyone!
CC: DAVEWOOD [...] cpan.org
Subject: Re: [rt.cpan.org #95571] install fails: Failed test 'Digest::SHA'
Date: Mon, 22 Dec 2014 09:17:03 +0100
To: bug-Data-Printer [...] rt.cpan.org
From: David Schmidt <mail [...] davidschmidt.at>
Awesome, thanks for the good work! On 22 December 2014 at 08:40, Breno G. de Oliveira via RT <bug-Data-Printer@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=95571 > > > On Mon May 26 07:53:52 2014, MITHALDU wrote:
>> The digest tests can all be fixed by requiring Digest::SHA 5.91 if the >> currently installed version is 5.90 (or maybe just require 5.91 in >> general).
> > Indeed, the tests were failing because Digest::SHA 5.90 didn't subclass Digest::base. Since the digest filter itself contains such verification, I just added it to the test (commit 672737a) and everything should be right with the universe again :) > > Thanks a lot for reporting and working through this issue, everyone!