summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog8
-rwxr-xr-xdebian/rules8
2 files changed, 15 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 4b9b2cc..212f652 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+shotwell (0.22.0-3) UNRELEASED; urgency=medium
+
+ * debian/rules:
+ - To make build reproducible touch temporary c files
+ with date of d/changelog
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Mon, 02 Nov 2015 22:21:02 +0100
+
shotwell (0.22.0-2) unstable; urgency=medium
* debian/control:
diff --git a/debian/rules b/debian/rules
index 7db8dc6..6b9f82f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,9 @@ 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 $@
@@ -12,11 +15,14 @@ override_dh_auto_configure:
override_dh_install:
dh_install
+ # touch temporary c files with date of d/changelog
+ # find -type f -name '*.c' -exec touch -r $(CURDIR)/debian/changelog {} \;
# install temporary c files for debuging
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 && \
- tar cJf temp-source.tar.xz temp-source
+ find . -newermt '$(B_DATE)' -print0 | xargs -0r touch --no-dereference --date='$(B_DATE)' && \
+ tar --mtime="$(B_DATE)" -cJf temp-source.tar.xz temp-source
rm -fr debian/shotwell-dbg/usr/share/doc/shotwell-dbg/temp-source
override_dh_installchangelogs: