summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-04-17 20:31:02 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-04-17 20:31:02 +0200
commit3c11eb20ca3a64ce5918f7a72490febaa6551c2f (patch)
treecca4af368fd90cf16ba6522e3098b23990e1d59d /debian
parent1fff8c452c81ace4b6b074bd2e1d576fb55cb774 (diff)
make the build reproducibly
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog3
-rwxr-xr-xdebian/rules4
2 files changed, 4 insertions, 3 deletions
diff --git a/debian/changelog b/debian/changelog
index 61311fc..c87b0ba 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,9 @@ shotwell (0.22.1-1) UNRELEASED; urgency=medium
+ Replaces: shotwell (<< 0.12.3-1)
* Set compat level to 10 (no changes required).
* Correct typo at shotwell-dbg.README.Debian.
+ * debian/rules:
+ - To make the build reproducibly use the solution from
+ https://wiki.debian.org/ReproducibleBuilds/TimestampsInTarball.
-- Jörg Frings-Fürst <debian@jff-webhosting.net> Sun, 17 Apr 2016 07:26:27 +0200
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: