Source: qdbm
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

The file ./usr/share/qdbm/lib/qdbm.jar embeds the build time:

  
https://tests.reproducible-builds.org/debian/rb-pkg/bullseye/amd64/diffoscope-results/qdbm.html

  -rw----·····2.0·fat········0·bX·defN·22-Jan-08·04:40·META-INF/
  vs.
  -rw----·····2.0·fat········0·bX·defN·20-Dec-07·00:20·META-INF/


The attached patch fixes this by adding calls to dh_strip_nondeterminism
in debian/rules.


This patch should be sufficient to make qdbm reproducible in the
bullseye suite.


Thanks for maintaining qdbm!


live well,
  vagrant
From c47ed6a5fd02b99f090b4615bc81283020a7a3b9 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Sat, 2 Jan 2021 21:20:37 +0000
Subject: [PATCH] debian/rules: Add calls to dh_strip_nonderminism.

dh_strip_nondeterminism sets appropriate timestamps in the shipped
.jar files.

https://tests.reproducible-builds.org/debian/issues/unstable/timestamps_in_jar_issue.html
---
 debian/rules | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debian/rules b/debian/rules
index 4278b70..8545b04 100755
--- a/debian/rules
+++ b/debian/rules
@@ -176,6 +176,7 @@ binary-indep: build install
 #	dh_installman -i
 	dh_link -i
 	dh_strip -i
+	dh_strip_nondeterminism -i
 	dh_compress -i
 	dh_fixperms -i
 	dh_perl -i
@@ -197,6 +198,7 @@ binary-arch: build install
 	rm -f $(CURDIR)/debian/qdbm-util/usr/share/man/man1/*test
 	dh_link -a
 	dh_strip -a
+	dh_strip_nondeterminism -a
 	dh_compress -a
 	dh_fixperms -a
 	dh_perl -plibqdbm-perl
-- 
2.30.0

Attachment: signature.asc
Description: PGP signature

Reply via email to