use of Digest::SHA instead of Digest::SHA1 in checksum #196

carnil opened this Issue May 7, 2011 · 2 comments


None yet

2 participants

carnil commented May 7, 2011


lib/perl5i/1/Meta/ and lib/perl5i/2/Meta/ both use Digest::SHA1 for the sha1 checksum. Digest::SHA is part of the standard perl distribution since perl v5.9.3 so this reduces the number of external dependencies by one.

Would it be possible to have perl5i using Digest::SHA? Most of the functionality (except sha1_transform) of Digest::SHA1 is also provided by Digest::SHA. Switching from Digest::SHA1 to Digest::SHA should be in principle as easy as substituting the use of Digest::SHA1 with Digest::SHA.

Many thanks for consideration! Backgound behind this request is in [1], the Debian Perl Group would like to drop the package providing Digest::SHA1, since Digest::SHA in perl core since 5.9.3 provides a similar interface.



schwern commented May 10, 2011

Less dependencies good. I don't think I realized one was core and one is not when it was written.

Approved. Do it.

@doherty doherty added a commit to doherty/perl5i that referenced this issue Jun 5, 2011
@doherty doherty Use core module Digest::SHA instead of Digest::SHA1
Fixes #196
@schwern schwern added a commit that referenced this issue Sep 25, 2011
@schwern schwern Use the core Digest::SHA instead of Digest::SHA1.
Eliminate a CPAN dependency.  We don't need the rest of Digest::SHA1 yet.

For #196
schwern commented Sep 25, 2011


@schwern schwern closed this Sep 25, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment