Source: flashcache
Version: 3.1.2+git20140801-1
Severity: wishlist
Tags: patch
Usertags: timestamps


While working on Debian's “reproducible builds” effort [1], we have
noticed that flashcache doesn't build reproducibly.
It embeds the current date into files and directory names.

Because a part of the version string is duplicated in debian/rules,
it was also forgotten to bump it to match the current changelog version.

The attached patch fixes both problems by using the changelog version
as the version that will be used.



diff --git a/debian/rules b/debian/rules
index 000bf05..c0ec68b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,7 +14,7 @@
 export DH_VERBOSE=1
 MODULE_NAME := flashcache
-VERSION := $(shell echo "3.1.1+git`date +%Y%m%d`")
+VERSION := $(shell dpkg-parsechangelog -S Version)
 DKMS_DIR := debian/tmp/usr/src/flashcache-$(VERSION)/
 MANPAGES := $(patsubst debian/%.markdown, debian/%.8, $(wildcard debian/*.markdown))
 HLP_FILES := $(patsubst, %, $(wildcard debian/*.in))

Attachment: signature.asc
Description: OpenPGP digital signature

Reproducible-builds mailing list

Reply via email to