git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
To: Wolfgang Denk <wd@denx.de>
Cc: Petr Baudis <pasky@suse.cz>, git@vger.kernel.org
Subject: Re: cg-export incompatible with older versions of GNU tar
Date: Thu, 22 Sep 2005 21:13:26 +0200	[thread overview]
Message-ID: <43330256.7000505@lsrfire.ath.cx> (raw)
In-Reply-To: <20050922124338.246D535267B@atlas.denx.de>

Wolfgang Denk wrote:
> In message <20050922120841.GH21019@pasky.or.cz> you wrote:
> 
>>>-> tar jxf foo.tar.bz2 
>>>tar: pax_global_header: Unknown file type 'g', extracted as normal file
>>>...
> 
> 
>>It is unclear if the tar actually extracts the archive or not, though.
>>Does it just complain with those warnings, or are they fatal errors?
> 
> 
> In this case extraction went fine, except for the warning message.

And you get an extra file, pax_global_header, containing the commit ID
of the archive's contents.

> I had other error reports from customers befroe, where unpacking  the
> tarballs failed - instead of the origianl source tree just a bunch of
> *.data  and  *.paxheader  were created; error messages in these cases
> looked like this:
> 
> tar: pax_global_header: Unknown file type 'g', extracted as normal file
> tar: ea1efd7f213469bcde030e00ac9f89ed16256869.paxheader: Unknown file type 'x', extracted as normal file

[snip]

This happens when you have pathes inside the tar file that are longer
than 100 characters.  Is this taken from a real-world project or is it
just some test?

All your files with pathes longer than 100 chars will be extracted as
<SHA1>.data, with an accompanying <SHA1>.paxheader file.  The latter
contains the real filename.  You could then repair the mess by renaming
them manually or write a script that does it for you.  Or you could
simply update tar. :-)

Lately I noticed that the tar version used by the BSDs also doesn't
understand Pax extended headers.  I guess they're not that popular a
feature.

> [But this was with older versions of git / cogito, so I'm not sure if
> this still applies.]

Nothing has changed in this respect, basicly since git-tar-tree went in.

René

      reply	other threads:[~2005-09-22 19:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-22 11:23 cg-export incompatible with older versions of GNU tar Wolfgang Denk
2005-09-22 12:08 ` Petr Baudis
2005-09-22 12:43   ` Wolfgang Denk
2005-09-22 19:13     ` Rene Scharfe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43330256.7000505@lsrfire.ath.cx \
    --to=rene.scharfe@lsrfire.ath.cx \
    --cc=git@vger.kernel.org \
    --cc=pasky@suse.cz \
    --cc=wd@denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).