Source: fte
Version: 0.50.2b6-6
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: fileordering
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that fte could not be built reproducibly.
The created tarball with example files is not sorted.

The attached patch fixes this by telling tar to sort the files.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds

diff --git a/debian/rules b/debian/rules
index 6232948..e6a63de 100755
--- a/debian/rules
+++ b/debian/rules
@@ -26,7 +26,7 @@ override_dh_auto_clean:
 override_dh_install-indep:
 	cd config; $(CURDIR)/src/cfte main.fte $(CURDIR)/debian/fte/etc/fte/system.fterc
 	chmod -R go=rX config
-	tar cf $(CURDIR)/debian/fte-docs/usr/share/doc/fte/config-example.tar config
+	tar --sort=name -cf $(CURDIR)/debian/fte-docs/usr/share/doc/fte/config-example.tar config
 	gzip -9n $(CURDIR)/debian/fte-docs/usr/share/doc/fte/config-example.tar
 
 	dh_install -i

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to