[vlc-commits] Build default.vlt in a reproducible fashion (fixes #4562)

Cristian Morales Vega git at videolan.org
Tue Mar 8 22:15:26 CET 2011


vlc | branch: master | Cristian Morales Vega <reddwarf at opensuse.org> | Tue Mar  8 23:13:04 2011 +0200| [ceacef3bbb0c34d67aa84e6ca91b360cbe2419e5] | committer: Rémi Denis-Courmont

Build default.vlt in a reproducible fashion (fixes #4562)

gzip was including a timestamp, and tar was enumerating files in an
unspecified/variable order.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(+ minor modifiations)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ceacef3bbb0c34d67aa84e6ca91b360cbe2419e5
---

 share/Makefile.am |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/share/Makefile.am b/share/Makefile.am
index fb9d776..5aeb844 100644
--- a/share/Makefile.am
+++ b/share/Makefile.am
@@ -82,7 +82,10 @@ skins2_default_vlt_FILES = \
 
 skins2/default.vlt: $(skins2_default_vlt_FILES)
 	mkdir -p skins2
-	tar cvvzf skins2/default.vlt -C $(srcdir)/skins2 default/
+	(cd "$(srcdir)/skins2"; find default -print0 | \
+		LC_ALL=C sort -z | \
+		tar cvv --exclude .svn --no-recursion --null -T -) | \
+	gzip -n > skins2/default.vlt
 
 DIST_http = \
 	http/.hosts \



More information about the vlc-commits mailing list