Source: libcache-perl
Version: 2.04-2
Severity: normal
Tags: patch
User: debian-p...@lists.debian.org
Usertags: digest-sha-perl-transition

Hi Dominic

As you migth already know we would like to drop libdigest-sha1-perl
at some point, see [1]. 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.

Digest::SHA is in Perl core since version 5.9.3 and thus is in
Debian's perl since Lenny.

Changing use of Digest::SHA1 to Digest::SHA would thus reduce external
dependencies by one.

 [1] http://deb.li/digestsha

There are "long time" no new upstream versions, but popcon is high for
libcache-perl. and it has liburi-fetch-perl reccomending
libcache-perl. Could you apply the patch for this?

Regards,
Salvatore

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
diff -urN libcache-perl-2.04.orig//META.yml libcache-perl-2.04//META.yml
--- libcache-perl-2.04.orig//META.yml	2006-02-02 05:01:08.000000000 +0100
+++ libcache-perl-2.04//META.yml	2011-08-04 22:32:11.313598820 +0200
@@ -7,7 +7,7 @@
 requires:
     Date::Parse:                   2.24
     DB_File:                       1.72
-    Digest::SHA1:                  2.01
+    Digest::SHA:                   0
     Fcntl:                         1.03
     File::Find:                    0
     File::NFSLock:                 1.2
diff -urN libcache-perl-2.04.orig//Makefile.PL libcache-perl-2.04//Makefile.PL
--- libcache-perl-2.04.orig//Makefile.PL	2005-10-20 14:33:52.000000000 +0200
+++ libcache-perl-2.04//Makefile.PL	2011-08-04 22:32:24.729600549 +0200
@@ -15,7 +15,7 @@
 	File::Spec		=> 0.8,
 	File::Path		=> 1.00,
 	File::NFSLock		=> 1.20,
-	Digest::SHA1		=> 2.01,
+	Digest::SHA		=> 0,
 	Symbol			=> 1.02,
 	IO::Handle		=> 1.21,
 	IO::File		=> 1.08,
diff -urN libcache-perl-2.04.orig//lib/Cache/File.pm libcache-perl-2.04//lib/Cache/File.pm
--- libcache-perl-2.04.orig//lib/Cache/File.pm	2006-01-31 16:23:58.000000000 +0100
+++ libcache-perl-2.04//lib/Cache/File.pm	2011-08-04 22:32:32.641602287 +0200
@@ -25,7 +25,7 @@
 use warnings;
 use Cache::File::Heap;
 use Cache::File::Entry;
-use Digest::SHA1 qw(sha1_hex);
+use Digest::SHA qw(sha1_hex);
 use Fcntl qw(LOCK_EX LOCK_NB);
 use Symbol ();
 use File::Spec;

Reply via email to