bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] change default --format from gnu to posix


From: Paul Eggert
Subject: Re: [PATCH] change default --format from gnu to posix
Date: Tue, 14 Dec 2021 11:33:05 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1

On 12/13/21 21:56, Mike Frysinger wrote:

for automake, the limitations in the default v7 catch people off guard (like
filename limits).

This is a good reason to switch formats. That being said, a downside of --format=pax is that it gratuitously uses pax extensions when not needed by the uses of 'tar' that we're talking about. These pax extensions can cause trouble, as illustrated by MichaƂ's analysis.

This discussion suggests the need for a new, easy-to use format option, which is like '-Hpax' except that it omits atime and ctime, and omits the subseconds part of mtime. Using this format would mean that pax extensions won't be used unless they're needed (a file with a long name, a timestamp past the year 2246, etc.) and so the tarball would be more portable to platforms with older or buggy tarball extractors.

Maybe we could call this the 'art' format, for "archive reproducible tarball", so that people could use 'tar -Hart' for it. Like 'ustar', 'art' format would be a strict subset of 'pax' format so it would be POSIX-conforming.

We could introduce the new option in the next release of GNU tar, and think about changing the default format to it in a later release.

What do you think?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]