Source: archvsync
Version: 20170204
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that archvsync could not be built reproducibly.

Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2017-03-05 16:45:47.705903597 +0000
--- b/debian/rules      2017-03-05 16:54:28.296978100 +0000
@@ -17,5 +17,6 @@
 
 override_dh_builddeb:
        dh_builddeb
-       tar -c -C debian/ftpsync-tar distrib | gzip -n > ../$(TARNAME)
+       find debian/ftpsync-tar -print0 | xargs -0r touch --no-dereference 
--date="@${SOURCE_DATE_EPOCH}"
+       (cd debian/ftpsync-tar && find -print0 | LC_ALL=C sort -z | tar 
--no-recursion --null -T - -c) | gzip -n > ../$(TARNAME)
        dpkg-distaddfile $(TARNAME) raw-ftpsync -

Reply via email to