Skip Menu |

This queue is for tickets about the Archive-Extract CPAN distribution.

Report information
The Basics
Id: 90189
Status: resolved
Priority: 0/
Queue: Archive-Extract

People
Owner: Nobody in particular
Requestors: fraserbn [...] gmail.com
Cc:
AdminCc:

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



Subject: Android-compatible flags for gzip
Howdy, Turns out that on *some* android devices/versions, gzip won't take compound flags like '-cdf', but it'll accept them as '-c -d -f'. For example, -cdf worked on my OUYA, but fails on my phone and on a 4.0.3 emulator with: # gzip -cdf f -cdf: No such file or directory # gzip -c -d -f f gzip: can't gzopen f The patch for Archive::Extract is pretty simple: - my $cmd = [ $self->bin_gzip, '-cdf', $self->archive ]; + my $cmd = [ $self->bin_gzip, '-c', '-d', '-f', $self->archive ]; But I'm not sure if that might cause problems on other platforms?
On Sat Nov 09 13:56:19 2013, Hugmeir wrote: Show quoted text
> Howdy, > > Turns out that on *some* android devices/versions, gzip won't take > compound flags like '-cdf', but it'll accept them as '-c -d -f'. For > example, -cdf worked on my OUYA, but fails on my phone and on a 4.0.3 > emulator with: > > # gzip -cdf f > -cdf: No such file or directory > # gzip -c -d -f f > gzip: can't gzopen f > > The patch for Archive::Extract is pretty simple: > > - my $cmd = [ $self->bin_gzip, '-cdf', $self->archive ]; > + my $cmd = [ $self->bin_gzip, '-c', '-d', '-f', $self->archive ]; > > But I'm not sure if that might cause problems on other platforms?
It worked for me on FreeBSD so I have made the changes and pushed 0.70 to CPAN. Many thanks.