Skip Menu |

This queue is for tickets about the IO-Zlib CPAN distribution.

Report information
The Basics
Id: 77954
Status: new
Priority: 0/
Queue: IO-Zlib

People
Owner: Nobody in particular
Requestors: chip [...] pobox.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.10
Fixed in: (no value)



Subject: [PATCH] find gzip in /bin
On some Debian systems, gzip is in /bin, not /usr/bin. The external test can't find it there. Here is a patch. diff --git cpan/IO-Zlib/t/external.t cpan/IO-Zlib/t/external.t index 1d90d7f..1f3ae5a 100644 --- cpan/IO-Zlib/t/external.t +++ cpan/IO-Zlib/t/external.t @@ -4,14 +4,12 @@ # This limits the testing to UNIX-like # systems but that should be enough. -my $gzip = "/usr/bin/gzip"; - -unless( -x $gzip && - ":$ENV{PATH}:" =~ m!:/usr/bin:! && - -d "/usr/bin" && -x "/usr/bin") { +my ($gzipdir) = grep { ":$ENV{PATH}:" =~ /:$_:/ && -d && -x && -x "$_/gzip" } qw( /usr/bin /bin ); +unless ($gzipdir) { print "1..0 # Skip: no $gzip\n"; exit 0; } +my $gzip = "$gzipdir/gzip"; sub ok {