login
Header Space

 
 

WHY linux-2.6.git......tar.gz git patches do not uncompress with gunzip????

August 1, 2008 - 5:16am
Submitted by Anonymous on August 1, 2008 - 5:16am.
Linux

I can't get git patches of .tar.gz format uncompressed. I get "not in gzip format" -error message. Any suggestions/tips? I have already tried to

  1. cut off the .gz extension,
  2. use ubuntu archive manager,
  3. tar -xz and
  4. 7-zip

without any success at all!!

Thanks in advance!

Paste your error message.

August 1, 2008 - 8:57am
Anonymous (not verified)

Paste your error message.

gunzip gives that "not in

August 1, 2008 - 11:23am
Anonymous (not verified)

gunzip gives that "not in gzip format",

others something resembling telling that format is not supported.

What does file say?

August 1, 2008 - 11:49am

What does file say? Have you tried looking at the contents of the file?

ehm

August 1, 2008 - 12:04pm
Anonymous (not verified)

for the hole kernel use tar -xzf foo, for the patches gzip -d foo, to just send the patch output to stdout zcat foo

which specific file (and perhaps which mirror)

August 1, 2008 - 1:39pm
TonyL (not verified)

I just pulled "patch-2.6.27-rc1-git2.gz" from kernel.org and it looks fine:

$ file patch-2.6.27-rc1-git2.gz
patch-2.6.27-rc1-git2.gz: gzip compressed data, from Unix, last modified: Thu Jul 31 00:01:03 2008, max compression
$ gunzip patch-2.6.27-rc1-git2.gz
$

I took that same

August 1, 2008 - 2:38pm
Anonymous (not verified)

I took that same 2.6.27-rc1-git2.tar.gz using gitweb also wget. URL in gitweb is :
http://git.kernel.org/?p=linux/kernel/git/kyle/linux-2.6-snaps.git;a=sna....

Patch retrieved will be named as linux-2.6-snaps.git-94ad374a0751f40d25e22e036c37f7263569d24c. So difference besides the name is that it has tar.gz extension. I shortened the name and tried to gunzip it with followint results:

gzip: linux-2.6.27-rc1-git2.tar.gz: not in gzip format

Quite similar results with wget besides even more terrible file name.

When i tired the file you

August 4, 2008 - 7:17pm
Anonymous (not verified)

When i tired the file you mentioned (using your link), it downloaded only 600+ bytes of it. Looks like that gitweb link is corrupted. (It is suppsed to be the whole snapshot of linux right, not a patch?)

gitweb seems to

August 4, 2008 - 10:12pm

gitweb seems to interrupt sending a page after some time, this may be a work around for overload -- gitweb is for viewing after all and creates lots of load due to its dynamical nature. at least that is happening with index pages and commit pages as well.

All the git snapshots are

August 3, 2008 - 12:31am
Anonymous (not verified)

All the git snapshots are .bz2 or .gz archives.
Your software must be corrupting the extension to .tar.gz.
Try renaming the files to .bz2 and use bunzip to open them.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
speck-geostationary