openbsd-ports/devel/automake/1.9/patches/patch-lib_Automake_Wrap_pm
dcoppa c78552504c Avoid a warning from perl-5.11
(upstream git commit 375912c466b28a6121d351b9ff5513133a1c7227)

OK landry@, jasper@
2011-05-05 12:30:16 +00:00

16 lines
394 B
Plaintext

$OpenBSD: patch-lib_Automake_Wrap_pm,v 1.1 2011/05/05 12:30:16 dcoppa Exp $
Avoid a warning from perl-5.11
--- lib/Automake/Wrap.pm.orig Thu May 5 11:15:13 2011
+++ lib/Automake/Wrap.pm Thu May 5 11:15:34 2011
@@ -57,7 +57,7 @@ sub tab_length($)
{
my ($txt) = @_;
my $len = length ($txt);
- $len += 7 * ($txt =~ tr/\t/\t/d);
+ $len += 7 * ($txt =~ tr/\t/\t/);
return $len;
}