r18455 - in /trunk/libdigest-sha-perl: Changes META.yml Makefile.PL README SHA.pm debian/changelog examples/dups shasum src/hmac.c src/hmac.h src/sha.c src/sha.h

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Thu Apr 10 14:05:37 UTC 2008


Author: gregoa-guest
Date: Thu Apr 10 14:05:36 2008
New Revision: 18455

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=18455
Log:
New upstream release.

Modified:
    trunk/libdigest-sha-perl/Changes
    trunk/libdigest-sha-perl/META.yml
    trunk/libdigest-sha-perl/Makefile.PL
    trunk/libdigest-sha-perl/README
    trunk/libdigest-sha-perl/SHA.pm
    trunk/libdigest-sha-perl/debian/changelog
    trunk/libdigest-sha-perl/examples/dups
    trunk/libdigest-sha-perl/shasum
    trunk/libdigest-sha-perl/src/hmac.c
    trunk/libdigest-sha-perl/src/hmac.h
    trunk/libdigest-sha-perl/src/sha.c
    trunk/libdigest-sha-perl/src/sha.h

Modified: trunk/libdigest-sha-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdigest-sha-perl/Changes?rev=18455&op=diff
==============================================================================
--- trunk/libdigest-sha-perl/Changes (original)
+++ trunk/libdigest-sha-perl/Changes Thu Apr 10 14:05:36 2008
@@ -1,4 +1,11 @@
 Revision history for Perl extension Digest::SHA.
+
+5.46  Wed Apr  9 05:04:00 MST 2008
+	- modified Addfile to recognize leading and trailing
+		whitespace in filenames (ref. rt.cpan.org #34690)
+	- minor C source code modification (ref. hmac.c)
+	- use const in sha.c for clean builds with -Wwrite-strings
+		-- thanks to Robin Barker for patch
 
 5.45  Tue Jun 26 02:36:00 MST 2007
 	- extended portability to earlier Perls

Modified: trunk/libdigest-sha-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdigest-sha-perl/META.yml?rev=18455&op=diff
==============================================================================
--- trunk/libdigest-sha-perl/META.yml (original)
+++ trunk/libdigest-sha-perl/META.yml Thu Apr 10 14:05:36 2008
@@ -1,10 +1,12 @@
 --- #YAML:1.0
 name: Digest-SHA
-version: 5.45
+version: 5.46
 abstract: Perl extension for SHA-1/224/256/384/512
 license: perl
 author:
   - Mark Shelor, mshelor at cpan.org
+requires:
+  perl: 5.003
 meta-spec:
   version: 1.3
   url: http://module-build.sourceforge.net/META-spec-v1.3.html

Modified: trunk/libdigest-sha-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdigest-sha-perl/Makefile.PL?rev=18455&op=diff
==============================================================================
--- trunk/libdigest-sha-perl/Makefile.PL (original)
+++ trunk/libdigest-sha-perl/Makefile.PL Thu Apr 10 14:05:36 2008
@@ -32,7 +32,7 @@
 	'EXE_FILES'	=> [ 'shasum' ],
 );
 
-$att{NO_META} = 1
-	unless $ExtUtils::MakeMaker::VERSION < 6.10_03;
+my $MMversion = $ExtUtils::MakeMaker::VERSION || 0;
+$att{NO_META} = 1 unless $MMversion < 6.10_03;
 
 WriteMakefile(%att);

Modified: trunk/libdigest-sha-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdigest-sha-perl/README?rev=18455&op=diff
==============================================================================
--- trunk/libdigest-sha-perl/README (original)
+++ trunk/libdigest-sha-perl/README Thu Apr 10 14:05:36 2008
@@ -1,4 +1,4 @@
-Digest::SHA version 5.45
+Digest::SHA version 5.46
 ========================
 
 Digest::SHA is a complete implementation of the NIST Secure Hash
@@ -34,7 +34,7 @@
 
 COPYRIGHT AND LICENSE
 
-Copyright (C) 2003-2007 Mark Shelor
+Copyright (C) 2003-2008 Mark Shelor
 
 This library is free software; you can redistribute it and/or modify
 it under the same terms as Perl itself.

Modified: trunk/libdigest-sha-perl/SHA.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdigest-sha-perl/SHA.pm?rev=18455&op=diff
==============================================================================
--- trunk/libdigest-sha-perl/SHA.pm (original)
+++ trunk/libdigest-sha-perl/SHA.pm Thu Apr 10 14:05:36 2008
@@ -6,7 +6,7 @@
 use integer;
 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
 
-$VERSION = '5.45';
+$VERSION = '5.46';
 
 require Exporter;
 require DynaLoader;
@@ -114,7 +114,10 @@
 	my $text = -T $file;
 
 	local *FH;
-	open(FH, "<$file") or _bail("Open failed");
+		# protect any leading or trailing whitespace in $file;
+		# otherwise, 2-arg "open" will ignore them
+	$file =~ s#^(\s)#./$1#;
+	open(FH, "< $file\0") or _bail("Open failed");
 	binmode(FH) if $binary || $portable;
 
 	unless ($portable && $text) {
@@ -655,7 +658,7 @@
 
 =head1 COPYRIGHT AND LICENSE
 
-Copyright (C) 2003-2007 Mark Shelor
+Copyright (C) 2003-2008 Mark Shelor
 
 This library is free software; you can redistribute it and/or modify
 it under the same terms as Perl itself.

Modified: trunk/libdigest-sha-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdigest-sha-perl/debian/changelog?rev=18455&op=diff
==============================================================================
--- trunk/libdigest-sha-perl/debian/changelog (original)
+++ trunk/libdigest-sha-perl/debian/changelog Thu Apr 10 14:05:36 2008
@@ -1,8 +1,12 @@
-libdigest-sha-perl (5.45-3) UNRELEASED; urgency=low
+libdigest-sha-perl (5.46-1) UNRELEASED; urgency=low
 
+  [ Joachim Breitner ]
   * Removed myself from uploaders.
 
- -- Joachim Breitner <nomeata at debian.org>  Wed, 13 Feb 2008 23:28:12 +0000
+  [ gregor herrmann ]
+  * New upstream release.
+
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Thu, 10 Apr 2008 16:04:16 +0200
 
 libdigest-sha-perl (5.45-2) unstable; urgency=low
 

Modified: trunk/libdigest-sha-perl/examples/dups
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdigest-sha-perl/examples/dups?rev=18455&op=diff
==============================================================================
--- trunk/libdigest-sha-perl/examples/dups (original)
+++ trunk/libdigest-sha-perl/examples/dups Thu Apr 10 14:05:36 2008
@@ -49,9 +49,9 @@
 my @files = grep { -f $_ } @ARGV;
 
 my %dups;
-for my $file (@files) {
-	my $digest = Digest::SHA->new->addfile($file, "b")->hexdigest;
-	push(@{$dups{$digest}}, $file);
+for (@files) {
+	my $digest = Digest::SHA->new->addfile($_, "b")->hexdigest;
+	push(@{$dups{$digest}}, $_);
 }
 
 for (keys %dups) {

Modified: trunk/libdigest-sha-perl/shasum
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdigest-sha-perl/shasum?rev=18455&op=diff
==============================================================================
--- trunk/libdigest-sha-perl/shasum (original)
+++ trunk/libdigest-sha-perl/shasum Thu Apr 10 14:05:36 2008
@@ -2,10 +2,10 @@
 
 	# shasum: filter for computing SHA digests (analogous to sha1sum)
 	#
-	# Copyright (C) 2003-2007 Mark Shelor, All Rights Reserved
+	# Copyright (C) 2003-2008 Mark Shelor, All Rights Reserved
 	#
-	# Version: 5.45
-	# Tue Jun 26 02:36:00 MST 2007
+	# Version: 5.46
+	# Wed Apr  9 05:04:00 MST 2008
 
 =head1 NAME
 
@@ -61,7 +61,7 @@
 
 =head1 AUTHOR
 
-Copyright (c) 2003-2007 Mark Shelor <mshelor at cpan.org>.
+Copyright (c) 2003-2008 Mark Shelor <mshelor at cpan.org>.
 
 =head1 SEE ALSO
 
@@ -74,7 +74,7 @@
 use FileHandle;
 use Getopt::Long;
 
-my $VERSION = "5.45";
+my $VERSION = "5.46";
 
 
 	# Try to use Digest::SHA, since it's faster.  If not installed,

Modified: trunk/libdigest-sha-perl/src/hmac.c
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdigest-sha-perl/src/hmac.c?rev=18455&op=diff
==============================================================================
--- trunk/libdigest-sha-perl/src/hmac.c (original)
+++ trunk/libdigest-sha-perl/src/hmac.c Thu Apr 10 14:05:36 2008
@@ -5,8 +5,8 @@
  *
  * Copyright (C) 2003-2007 Mark Shelor, All Rights Reserved
  *
- * Version: 5.45
- * Tue Jun 26 02:36:00 MST 2007
+ * Version: 5.46
+ * Wed Apr  9 05:04:00 MST 2008
  *
  */
 
@@ -94,8 +94,8 @@
 /* hmacclose: de-allocates digest object */
 int hmacclose(HMAC *h)
 {
-	shaclose(h->osha);
 	if (h != NULL) {
+		shaclose(h->osha);
 		memset(h, 0, sizeof(HMAC));
 		SHA_free(h);
 	}

Modified: trunk/libdigest-sha-perl/src/hmac.h
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdigest-sha-perl/src/hmac.h?rev=18455&op=diff
==============================================================================
--- trunk/libdigest-sha-perl/src/hmac.h (original)
+++ trunk/libdigest-sha-perl/src/hmac.h Thu Apr 10 14:05:36 2008
@@ -5,8 +5,8 @@
  *
  * Copyright (C) 2003-2007 Mark Shelor, All Rights Reserved
  *
- * Version: 5.45
- * Tue Jun 26 02:36:00 MST 2007
+ * Version: 5.46
+ * Wed Apr  9 05:04:00 MST 2008
  *
  */
 

Modified: trunk/libdigest-sha-perl/src/sha.c
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdigest-sha-perl/src/sha.c?rev=18455&op=diff
==============================================================================
--- trunk/libdigest-sha-perl/src/sha.c (original)
+++ trunk/libdigest-sha-perl/src/sha.c Thu Apr 10 14:05:36 2008
@@ -5,8 +5,8 @@
  *
  * Copyright (C) 2003-2007 Mark Shelor, All Rights Reserved
  *
- * Version: 5.45
- * Tue Jun 26 02:36:00 MST 2007
+ * Version: 5.46
+ * Wed Apr  9 05:04:00 MST 2008
  *
  */
 
@@ -560,7 +560,7 @@
 /* ldvals: checks next line in dump file against tag, and loads values */
 static int ldvals(
 	SHA_FILE *f,
-	char *tag,
+	const char *tag,
 	int type,
 	void *pval,
 	int reps,

Modified: trunk/libdigest-sha-perl/src/sha.h
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdigest-sha-perl/src/sha.h?rev=18455&op=diff
==============================================================================
--- trunk/libdigest-sha-perl/src/sha.h (original)
+++ trunk/libdigest-sha-perl/src/sha.h Thu Apr 10 14:05:36 2008
@@ -5,8 +5,8 @@
  *
  * Copyright (C) 2003-2007 Mark Shelor, All Rights Reserved
  *
- * Version: 5.45
- * Tue Jun 26 02:36:00 MST 2007
+ * Version: 5.46
+ * Wed Apr  9 05:04:00 MST 2008
  *
  */
 




More information about the Pkg-perl-cvs-commits mailing list