support/download: really, really make git archives reproducible
PATCH 1/1 support/download: really, really make git archives reproducible
The way we use it, gzip will store the current time in the header, which leads to unreproducible archives.
Fiss that by telling gzip to not store the name and date of the file it compresses, with the -n option. Since it compresses its stdin, there was already no filename stored; now there's even no date stored.
Note: gzip has had -n since at least 1.2.4, released in 1993, so virtually every gzip out there nowadays has it.
--- support/download/git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
support/download/git +1 -1
@@ -55,4 +55,4 @@ fi GIT_DIR="${basename}" \ _git archive --prefix="'${basename}/'" -o "'${output}.tmp'" --format=tar "'${cset}'" -gzip <"${output}.tmp" >"${output}" +gzip -n <"${output}.tmp" >"${output}"
Signature · 1 line
1.9.1
PATCH 1/1 support/download: really, really make git archives reproducible
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Yann" == Yann E MORIN <[email protected]> writes:
The way we use it, gzip will store the current time in the header, which leads to unreproducible archives.
Quoted 8 lines
Fiss that by telling gzip to not store the name and date of the file it compresses, with the -n option. Since it compresses its stdin, there was already no filename stored; now there's even no date stored.
Note: gzip has had -n since at least 1.2.4, released in 1993, so virtually every gzip out there nowadays has it.
Signed-off-by "Yann E. MORIN" <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard