From: "brian m. carlson" <sandals@crustytoothpaste.net>
To: Simon Richter <Simon.Richter@hogyros.de>
Cc: git <git@vger.kernel.org>, Ian Jackson <ijackson@chiark.greenend.org.uk>
Subject: Re: Git generated tarballs and Debian
Date: Tue, 28 Apr 2026 10:25:24 +0000 [thread overview]
Message-ID: <afCLFJX86yEPKKfk@fruit.crustytoothpaste.net> (raw)
In-Reply-To: <9030b26d-02ed-4452-b212-a69a4ff21e2d@hogyros.de>
[-- Attachment #1: Type: text/plain, Size: 1574 bytes --]
On 2026-04-28 at 08:40:05, Simon Richter wrote:
> Hi,
>
> in Debian, we're shipping "original" tarballs for each software package, and
> the Debian specific changes in a separate file.
>
> Historically, this users could do a bitwise comparison of the original
> tarball and the one in Debian to verify that these were unchanged.
>
> With git, some authors have stopped releasing official tarballs, so we're
> using git-archive a lot -- but this is reproducible only by accident. GitHub
> also prepares some release tarballs that may or not be bitwise identical to
> what git archive produces.
I'll just note that we don't make any guarantees that `git archive`
produces identical output across versions. Incorrectly making that
assumption broke kernel.org when we changed the format in the past.
Also, if you use `export-subst`, then it's possible to emit short object
IDs, which can differ in length depending on how many objects are in the
repository. It's also possible to use zlib or pigz instead of gzip to
produce tarballs, in which case the compressed data will also differ.
I had intended to create and emit a standard, reproducible format for
`git archive`, but never got around to finishing that. Perhaps I'll try
to pick it up at some point; I expect it will be easier to implement now
that we have Rust support in the tree.
When I was one of the maintainer of Git LFS, we intentionally produced
source tarballs specifically to emit bit-for-bit identical artifacts.
--
brian m. carlson (they/them)
Toronto, Ontario, CA
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 325 bytes --]
next prev parent reply other threads:[~2026-04-28 10:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-28 8:40 Git generated tarballs and Debian Simon Richter
2026-04-28 10:25 ` brian m. carlson [this message]
2026-04-28 11:32 ` Simon Richter
2026-04-28 11:50 ` Theodore Tso
2026-04-28 21:20 ` brian m. carlson
2026-04-29 7:30 ` Jeff King
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=afCLFJX86yEPKKfk@fruit.crustytoothpaste.net \
--to=sandals@crustytoothpaste.net \
--cc=Simon.Richter@hogyros.de \
--cc=git@vger.kernel.org \
--cc=ijackson@chiark.greenend.org.uk \
/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