Bug 11560 - download ccache-3.2.4.tar.gz invalid gzip file
Summary: download ccache-3.2.4.tar.gz invalid gzip file
Status: CLOSED WORKSFORME
Alias: None
Product: ccache
Classification: Unclassified
Component: ccache (show other bugs)
Version: 3.2.4
Hardware: x64 Linux
: P5 major
Target Milestone: ---
Assignee: Joel Rosdahl
QA Contact: Joel Rosdahl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-16 03:28 UTC by George
Modified: 2015-10-19 20:39 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George 2015-10-16 03:28:38 UTC
I have shell script which installs ccache but when it downloads it, the tarbal gzipped file ends up invalid

Download ccache-3.2.4.tar.gz ...
ccache 3.2.4 Archive found, skipping download...

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Error: ccache-3.2.4.tar.gz extraction failed.

On centos 6.7 64bit

when i manually download it to my windows 8 pc, similar thing is notice a drastic difference in size of the 3.2.4 tarball file

for instance

ccache-3.2.2.tar.gz downloaded on windows 8 is 427KB in size

vs

ccache-3.2.4.tar.gz downloaded on windows 8 is 1730KB in size

To confirm, I extracted ccache-3.2.4.tar.gz contents via windows 7zip app, and re-tar'd it + re-gzipped and now ccache-3.2.4.tar.gz is 387KB in size and my shell script downloads the file and extracts it properly.
Comment 1 Joel Rosdahl 2015-10-16 15:31:07 UTC
My guess is that your shell script somehow doesn't handle http redirects properly. http://samba.org/ftp/ccache/ccache-3.2.4.tar.gz redirects to https://samba.org/ftp/ccache/ccache-3.2.4.tar.gz which redirects to https://www.samba.org/ftp/ccache/ccache-3.2.4.tar.gz. What happens if you download the third URL instead?
Comment 2 Joel Rosdahl 2015-10-19 20:39:22 UTC
The archive is correct, so closing the bug.

I have changed the download links to refer directly to https://www.samba.org/ftp/ccache/ instead, however.