Package: libspread-perl Version: 3.17.4-3 Severity: important Tags: patch Dear Maintainer,
Trying run a script on Wheezy that uses Spread now dies with an Invalid version format. This simple example gives the same message: puck@wheezy:~$ perl -MSpread -e 'print "hello\n"'; Invalid version format (non-numeric data) at /usr/lib/perl/5.14/DynaLoader.pm line 207. Compilation failed in require. BEGIN failed--compilation aborted. puck@wheezy:~$ Looking inside Spread.pm, I see that $VERSION is set to "3.17.0-1.04". It appears that DynaLoader between Perl 5.10 (Squeeze) and 5.14 (Wheezy) changed to require VERSION to be a number. The attached patch changes it to be a number - 3.1700000104 - which now allows me to use Spread.pm: puck@wheezy:~$ perl -MSpread -e 'print "hello\n"'; hello puck@wheezy:~$ Cheers! -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.2.14-vs2.3.2.8-beng (SMP w/2 CPU cores) Locale: LANG=en_NZ.UTF-8, LC_CTYPE=POSIX (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages libspread-perl depends on: ii libc6 2.13-32 ii libspread1 3.17.4-3 ii perl 5.14.2-10 ii perl-base [perlapi-5.14.2] 5.14.2-10 libspread-perl recommends no packages. libspread-perl suggests no packages. -- no debconf information
diff --git a/perl/Spread/Spread.pm b/perl/Spread/Spread.pm index 7ca8223..a9b4f9d 100644 --- a/perl/Spread/Spread.pm +++ b/perl/Spread/Spread.pm @@ -20,7 +20,7 @@ use Carp; use strict; use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $AUTOLOAD); -$VERSION = "3.17.0-1.04" ; +$VERSION = "3.1700000104" ; *SP_connect = \&Spread::connect; *SP_disconnect = \&Spread::disconnect;