On Tue, Apr 26, 2011 at 03:55:40PM -0700, Russ Allbery wrote:
> Dominic Hargreaves <d...@earth.li> writes:
> > On Sun, Apr 24, 2011 at 05:09:31PM +0100, Dominic Hargreaves wrote:
> 
> >> src/Makefile.PL uses the libafs version number and tries to make a perl
> >> version object out of it. Unfortunately this is currently
> >> 1.6.0~pre4-1-debian, which version.pm doesn't like.
> 
> > The attached naive patch appears to fix this (to the extent of reaching
> > the next build failure, #621999 -- so I can't test what effect this
> > has on the package).
> 
> Looks like the patch wasn't attached?

Sorry, it is now.

Dominic.

-- 
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)
--- src/Makefile.PL.orig	2011-04-26 23:25:50.000000000 +0100
+++ src/Makefile.PL	2011-04-26 23:26:35.000000000 +0100
@@ -145,7 +145,9 @@
 my ($v_string, $v_numb) = ('', '');
 if ($version =~ />(\S+?)\s+(\S+)</) {
     $v_string = $1;
-    $v_numb   = version->new($2);
+    my $v_tmp = $2;
+    $v_tmp =~ s/\~.*//;
+    $v_numb   = version->new($v_tmp);
 }
 elsif ($version =~ />(\S+?)</) {
     $v_string = 'Transarc/IBM AFS';

Reply via email to