reproducible build fix.

20_reproducible_sig.diff: Use timestamp et al. from debian/changelog
instead of current time/user/host for binary signature generation.
Upload to unstable.
parent 4cae81ad
enblend-enfuse (4.1.4+dfsg-2) unstable; urgency=low
* 20_reproducible_sig.diff: Use timestamp et al. from debian/changelog
instead of current time/user/host for binary signature generation.
* Upload to unstable.
-- Andreas Metzler <ametzler@debian.org> Sat, 10 Oct 2015 14:11:52 +0200
enblend-enfuse (4.1.4+dfsg-1) experimental; urgency=medium
* New upstream version.
......
Description: reproducible binary signature
Use timestamp et al. from debian/changelog instead of current
time/user/host for binary signature generation.
Author: Andreas Metzler <ametzler@debian.org>
Origin: vendor
Last-Update: 2015-10-10
--- enblend-enfuse-4.1.4+dfsg.orig/src/DefaultSig.pm
+++ enblend-enfuse-4.1.4+dfsg/src/DefaultSig.pm
@@ -122,12 +122,17 @@ sub update_date_and_time {
sub signature {
my $self = shift;
+ chomp(my $DEBIANVERSION=`dpkg-parsechangelog -l $ENV{'DEB_TOP_DIR'}/debian/changelog -S Version`);
+chomp(my $DEBIANDISTRIBUTION=`dpkg-parsechangelog -l $ENV{'DEB_TOP_DIR'}/debian/changelog -S Distribution`);
+chomp(my $DEBIANCHANGELOGTIME=`dpkg-parsechangelog -l $ENV{'DEB_TOP_DIR'}/debian/changelog -S Date`);
+
+ return sprintf("Version %s/%s - %s",
+ $DEBIANVERSION, $DEBIANDISTRIBUTION, $DEBIANCHANGELOGTIME);
+# $self->get_hostname(),
+# $self->get_username(),
+# $self->get_date(),
+# $self->get_time());
- return sprintf("Compiled on %s by %s on %s, %s.",
- $self->get_hostname(),
- $self->get_username(),
- $self->get_date(),
- $self->get_time());
}
20_reproducible_sig.diff
......@@ -10,6 +10,8 @@
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
#used by debian/patches/20_reproducible_sig.diff
export DEB_TOP_DIR:=$(CURDIR)
CONFARGS=--host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment