diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-04-17 20:31:02 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-04-17 20:31:02 +0200 |
commit | 3c11eb20ca3a64ce5918f7a72490febaa6551c2f (patch) | |
tree | cca4af368fd90cf16ba6522e3098b23990e1d59d /debian/rules | |
parent | 1fff8c452c81ace4b6b074bd2e1d576fb55cb774 (diff) |
make the build reproducibly
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules index 6b9f82f..a64e2c5 100755 --- a/debian/rules +++ b/debian/rules @@ -5,7 +5,6 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all export VALAFLAGS:=$(foreach w,$(CPPFLAGS) $(CFLAGS) $(LDFLAGS),-X $(w)) CHDATE:=$(shell dpkg-parsechangelog --show-field=Date) -B_DATE:=$(shell date -d "$(CHDATE)") %: dh $@ @@ -21,8 +20,7 @@ override_dh_install: mkdir -p debian/shotwell-dbg/usr/share/doc/shotwell-dbg/temp-source find -type f -name '*.c' -exec cp --parent '{}' debian/shotwell-dbg/usr/share/doc/shotwell-dbg/temp-source/ ';' cd debian/shotwell-dbg/usr/share/doc/shotwell-dbg && \ - find . -newermt '$(B_DATE)' -print0 | xargs -0r touch --no-dereference --date='$(B_DATE)' && \ - tar --mtime="$(B_DATE)" -cJf temp-source.tar.xz temp-source + tar --mtime="$(CHDATE)" -cJf temp-source.tar.xz temp-source rm -fr debian/shotwell-dbg/usr/share/doc/shotwell-dbg/temp-source override_dh_installchangelogs: |