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

Re: [PATCH] supply '-n' to gzip to produce identical tarballs

From
Fraser Tweedale <frase@frase.id.au>
Date
Apr 11, 2011, 20:59 UTC
Message-ID
<20110411205934.GI1521@bacardi.wooloowin.frase.id.au>
In-Reply-To
<7vei58wq0a.fsf@alter.siamese.dyndns.org>
On Mon, Apr 11, 2011 at 12:24:05PM -0700, Junio C Hamano wrote:
Show 23 quoted lines
> Jakub Narebski <jnareb@gmail.com> writes:
> 
> >> > Perhaps it would be more clear to use
> >> > 
> >> >   +		'compressor' => ['gzip', '--no-name']},
> >
> >> Definitely, if the argument is the same (or even present) on all systems.
> >> On FreeBSD and GNU both '-n' and '--no-name' are do the job, but an audit
> >> of other systems should be done to ensure they don't break.  I chose '-n'
> >> as it seemed the more conservative choice.
> >
> > So you choose '-n' because it has more chance of being widely supported,
> > isn't it?  Good enough for me.
> 
> Interesting.  "gzip <COPYING" does get a consistent result because it can
> fstat to get the timestamp, but "cat COPYING | gzip" does change its
> output every time it is run.  Good catch and a solution.  Thanks, both.
> 
> So I should expect a pull request sometime after 1.7.5 final from you,
> with "an audit of other systems" done by others on the list noted in the
> final commit message?
> 
> 
Sure, no problem.
Thanks,
Fraser
Previous: Junio C Hamano
Message 6 of 6 in “supply '-n' to gzip to produce identical tarballs”
  1. supply '-n' to gzip to produce identical tarballsFraser Tweedale, Apr 10, 2011
  2. Jakub NarebskiApr 10, 2011
  3. Fraser TweedaleApr 10, 2011
  4. Jakub NarebskiApr 10, 2011
  5. Junio C HamanoApr 11, 2011
  6. Fraser TweedaleApr 11, 2011

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.