delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/20/15:58:55

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:from:to:subject:date:in-reply-to
:references:content-type:content-transfer-encoding:mime-version;
q=dns; s=default; b=BhWJSWgRqtVVWGyM5B0cqgieGe5ND7xfHL3FNdYYyVs
GggxMABY17QGVyy1pDl5UQb6aSGs2nXdIuKu3t8AYXHV494mRAln+IM2rzZjH9pN
oy24RZEhp9r6ashaHOwa+EjHIpjxSqC4wXara4Ue5HLQXEUlJtNlbE7cbOMFhBLg
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:from:to:subject:date:in-reply-to
:references:content-type:content-transfer-encoding:mime-version;
s=default; bh=FaN12PJkTypRCXgU+n4iVdZbvH4=; b=ZdudvRtiHns64YpNt
JQqBoqOJkUnKeQSHQOmcpRMHaTZ/gX7uUc+1Qkbf9KJ2Wgm0MQi8s+/mp9L9f43f
pSn+6KmuUtG+PFXBb3mq+FYwy7RiWXIpVef/XDnPgtyodWmZMuoyeZ/KV9ofX46q
wl+y4CXK7fHM0+tIn8atcz6gDQ=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=3.8 required=5.0 tests=AWL,BAYES_50,CYGWIN_OWNER_BODY,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2
X-HELO: COL004-OMC4S7.hotmail.com
X-TMN: [RmX3JPCEk8/EuQuLU41xWOJYm/S5CqNv]
Message-ID: <COL130-W63FDBF5526D36BADF4F43BC2E00@phx.gbl>
From: Murthy Gandikota <murthy64 AT hotmail DOT com>
To: "Joi L. Ellis" <jlellis AT pavlovmedia DOT com>,
"cygwin AT sourceware DOT org" <cygwin AT sourceware DOT org>
Subject: RE: tar zxvf won't work with Redhat generated compressed tar file
Date: Mon, 20 Apr 2015 19:58:10 +0000
In-Reply-To: <cccb5603d7f341c89b166749472689c5@EX2013DAG-B.pavlovmedia.corp>
References: <COL130-W80F61D41DBC766A5C40206C2E00 AT phx DOT gbl>,<55354928 DOT 3090004 AT chunkz DOT net>,<COL130-W660D1B575445ACD2340D61C2E00 AT phx DOT gbl>,<55354CD2 DOT 7060407 AT chunkz DOT net>,<COL130-W944A76EC87FAC75AC6DC7BC2E00 AT phx DOT gbl>,<2748d7b76a6248fb853de6541f2582c6 AT EX2013DAG-B DOT pavlovmedia DOT corp>,<553550F1 DOT 1050906 AT chunkz DOT net>,<COL130-W7306AE63C9C0C963E097D1C2E00 AT phx DOT gbl> <55355682 DOT 1000301 AT chunkz DOT net>,<cccb5603d7f341c89b166749472689c5 AT EX2013DAG-B DOT pavlovmedia DOT corp>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t3KJwmO0007525

$ ldd /usr/bin/tar
        ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x772c0000)
        kernel32.dll => /cygdrive/c/Windows/system32/kernel32.dll (0x771a0000)
        KERNELBASE.dll => /cygdrive/c/Windows/system32/KERNELBASE.dll (0x7fefd0a0000)
        cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
        cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x3ffb80000)
        cygintl-8.dll => /usr/bin/cygintl-8.dll (0x3ffb60000)

$ ldd /usr/bin/gzip
        ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x772c0000)
        kernel32.dll => /cygdrive/c/Windows/system32/kernel32.dll (0x771a0000)
        KERNELBASE.dll => /cygdrive/c/Windows/system32/KERNELBASE.dll (0x7fefd0a0000)
        cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)

I am afraid the tar file can't be shared. I will see if I can ask my provider for a sample.

Thanks




----------------------------------------
> From: jlellis AT pavlovmedia DOT com
> To: bertrand DOT caplet AT chunkz DOT net; cygwin AT cygwin DOT com; murthy64 AT hotmail DOT com
> Subject: RE: tar zxvf won't work with Redhat generated compressed tar file
> Date: Mon, 20 Apr 2015 19:53:15 +0000
>
> The 'file' command isn't recursive. If you gzip a tar file, it will only say it's a compressed file, it won't say it's a compressed tar file. See the example I posted myself earlier in the thread.
>
> I had theorized that the original file is zipped, not gzipped, and perhaps the tar command is failing for that reason, but I did some tests with that assumption and it seems tar is able to uncompress a 'zip' format as well as a 'gzip' format.
>
> I really don't have an explanation why tar can't uncompress the file itself, unless (and this is a wild guess on my part) the method used to copy the file from RedHat to Cygwin introduced newline format issues (linux \n vs Windows \r\n). But that doesn't explain to me why manually gunzip before tar works, while tar alone doesn't.
>
> Is this compressed file under discussion something that can be shared? I think it will be useful to see if anyone else running 64bit Cygwin (which I am) can handle that file, or is it an issue limited to this one machine? The Cygwin packages are usually pretty good about getting dependencies installed correctly. I asked ldd for a list of library references for tar and gzip, and neither one referenced libz, which makes me presume they're both statically linked binaries. If so, it wouldn't matter if libz is installed or not.
>
> $ ldd /usr/bin/tar
> ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x7ffe15a90000)
> KERNEL32.DLL => /cygdrive/c/Windows/system32/KERNEL32.DLL (0x7ffe134d0000)
> KERNELBASE.dll => /cygdrive/c/Windows/system32/KERNELBASE.dll (0x7ffe12ff0000)
> cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
> cygiconv-2.dll => /usr/bin/cygiconv-2.dll (0x3fc6d0000)
> cygintl-8.dll => /usr/bin/cygintl-8.dll (0x3fad80000)
>
> $ ldd /usr/bin/gzip
> ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x7ffe15a90000)
> KERNEL32.DLL => /cygdrive/c/Windows/system32/KERNEL32.DLL (0x7ffe134d0000)
> KERNELBASE.dll => /cygdrive/c/Windows/system32/KERNELBASE.dll (0x7ffe12ff0000)
> cygwin1.dll => /usr/bin/cygwin1.dll (0x180040000)
>
> So, I'm back to asking, how is this file being created on redhat? There are a multitude of options to tar, and some of them are incompatible with Cygwin, I think.
>
> -----Original Message-----
> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Bertrand Caplet
> Sent: Monday, April 20, 2015 14:42
> To: cygwin AT cygwin DOT com
> Subject: Re: tar zxvf won't work with Redhat generated compressed tar file
>
>> Ran this command on Cygwin64
>>
>> $file mytar.gz
>> mytar.gz: gzip compressed data, from Unix
>>
>> Did you want me to run this command on Linux?
>>
>> Thanks
>
> Well as I said it's a gzip archive not a tar + gzip you can't extract it with tar.
> --
> CHUNKZ.NET - script kiddie and computer technician Bertrand Caplet, Flers (FR) Feel free to send encrypted/signed messages Key ID: 37F70C30 GPG FP: 134A 4027 518B 5F4D D409 558D BA9B 7BF0 37F7 0C30
>
 		 	   		  
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019