* [ptxdist] [PATCH] Make sure tar archives created from svn URLs are reproducible.
@ 2017-03-29 10:35 Guillermo Rodriguez
0 siblings, 0 replies; only message in thread
From: Guillermo Rodriguez @ 2017-03-29 10:35 UTC (permalink / raw)
To: ptxdist; +Cc: Guillermo Rodriguez
By default, tar.gz archives store a mod time in the gzip header.
This means that archives created from the same files will still
have different md5 sums. Fix this by passing gzip option -n to tar.
---
scripts/lib/ptxd_make_get.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/lib/ptxd_make_get.sh b/scripts/lib/ptxd_make_get.sh
index 2bac978..33b76c2 100644
--- a/scripts/lib/ptxd_make_get.sh
+++ b/scripts/lib/ptxd_make_get.sh
@@ -265,7 +265,7 @@ ptxd_make_get_svn() {
lmtime=$(svn info -r ${rev} "${mirror}" | \
awk '/^Last Changed Date:/ {print $4 " " $5 " " $6}') &&
echo "${PROMPT}svn: last modification time '${lmtime}'" &&
- tar --exclude-vcs --show-stored-names ${tarcomp} \
+ GZIP=-n tar --exclude-vcs --show-stored-names ${tarcomp} \
--mtime="${lmtime}" --transform "s|^\.|${prefix}|g" \
--create --file "${path}" -C "${mirror}" .
ptxd_make_serialize_put
--
1.9.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-03-29 10:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-29 10:35 [ptxdist] [PATCH] Make sure tar archives created from svn URLs are reproducible Guillermo Rodriguez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox