Differences between revisions 4 and 5
Revision 4 as of 2015-05-03 17:17:48
Size: 902
Revision 5 as of 2015-05-15 20:12:46
Size: 895
Editor: Lunar
Comment: Remove unneeded -depth. Thanks Santiago Vila.
Deletions are marked like this. Additions are marked like this.
Line 31: Line 31:
       find '$(DIR)' -depth -newermt '$(BUILD_DATE)' -print0 | \        find '$(DIR)' -newermt '$(BUILD_DATE)' -print0 | \

Tarballs contain mtimes. They will not be reproducible if files have been generated or patched during build time.

Known affected packages


Example debbindiff output


Known yet.



If indivdiual mtimes don't matter, then use the --mtime option:

           set mtime for added files from DATE-OR-FILE

Adjusting mtimes

Use find, xargs, and touch to adjust file mtimes before tar is run. Example:

BUILD_DATE := $(shell dpkg-parsechangelog --show-field=Date)
       find '$(DIR)' -newermt '$(BUILD_DATE)' -print0 | \
               xargs -0r touch --no-dereference --date='$(BUILD_DATE)'
       […] tar […]