Skip to content
Permalink
Browse files Browse the repository at this point in the history
share: sort tar file list
if available (in GNU tar >= 1.28)
and use ustar format to not have pax headers add nondetermistic bits
to make skins2/default.vlt reproducible.

See https://reproducible-builds.org/ for why this is good.

This patch was done while working on reproducible builds for openSUSE.

Signed-off-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
  • Loading branch information
bmwiedemann authored and tguillem committed Jan 23, 2020
1 parent c9a5e55 commit 87ea3c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion share/Makefile.am
Expand Up @@ -93,8 +93,11 @@ skins2_default_vlt_FILES = \
skins2/default.vlt: $(skins2_default_vlt_FILES)
$(AM_V_at)mkdir -p skins2
$(AM_V_at)rm -f -- skins2/default.vlt.tmp
$(AM_V_GEN)GZIP=--no-name \
$(AM_V_GEN)tarsort= ; \
tar --help|grep -q sort=ORDER && tarsort=--sort=name ; \
GZIP=--no-name \
tar cvvzf skins2/default.vlt.tmp \
--format=ustar $$tarsort \
--owner=root --group=root --directory="$(srcdir)/skins2" \
default/
$(AM_V_at)mv -f -- skins2/default.vlt.tmp skins2/default.vlt
Expand Down

0 comments on commit 87ea3c0

Please sign in to comment.