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

Cristian Morales Vega git at videolan.org
Tue Mar 8 22:18:19 CET 2011


vlc/vlc-1.1 | branch: master | Cristian Morales Vega <reddwarf at opensuse.org> | Tue Mar  8 23:17:06 2011 +0200| [503b62f51502b6e44dcef5a98f8cb492cbc55aa9] | 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)
(cherry picked from commit ceacef3bbb0c34d67aa84e6ca91b360cbe2419e5)

Conflicts:

	share/Makefile.am

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

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

diff --git a/share/Makefile.am b/share/Makefile.am
index d550832..a3d6637 100644
--- a/share/Makefile.am
+++ b/share/Makefile.am
@@ -88,7 +88,10 @@ skins2_default_vlt_FILES = \
 
 skins2/default.vlt: $(skins2_default_vlt_FILES)
 	mkdir -p skins2
-	tar cvvzf skins2/default.vlt --exclude .svn -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