git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] t: use configured TAR instead of tar

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
May 22, 2021, 18:58 UTC
Message-ID
<YKlUYKNm0V6ReJ2f@camp.crustytoothpaste.net>
In-Reply-To
<xmqqk0nrqn8q.fsf@gitster.g>
On 2021-05-22 at 06:46:45, Junio C Hamano wrote:
Show 12 quoted lines
> Đoàn Trần Công Danh  <congdanhqx@gmail.com> writes:
> 
> > Despite that tar is available everywhere, it's not required by POSIX.
> > And, we're allow users to specify which tar they want to use in Makefile
> 
> s/we're/we/;
> 
> > knobs, and we prefer GNU tar in autotools script.
> 
> The last part I didn't know about---it is sad if autotools require
> use of gtar (but since use of autoconf and autotools is not required
> to build Git, I do not deeply care ;-)).

I don't believe we do require it. macOS ships bsdtar (that is, the one from libarchive) and to the best of my knowledge, everything works fine there.

I suspect the reason that gtar is preferred is because on some systems, the tar(1) command is relatively incapable and doesn't support things like POSIX tar archives or pax extensions.

-- 
brian m. carlson (he/him or they/them)
Houston, Texas, US
Previous: Junio C HamanoNext: Đoàn Trần Công Danh
Message 3 of 4 in “t: use configured TAR instead of tar”
  1. t: use configured TAR instead of tarĐoàn Trần Công Danh, May 22, 2021
  2. Junio C HamanoMay 22, 2021
  3. brian m. carlsonMay 22, 2021
  4. t: use configured TAR instead of tarĐoàn Trần Công Danh, May 22, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.