Source: flashcache
Version: 3.1.2+git20140801-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps

Hi!

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.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds


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 %.in, %, $(wildcard debian/*.in))

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to