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

Various files produced related to test suites embed timestamp and build
paths into the files, breaking reproducible builds:
  
  
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/kallisto.html

It looks like version 0.48.0+dfsg-1 introduced these new files, with the
introduction of the snakemake tests.

The attached patch fixes this by removing the test suite log files and
other test suite metadata in a dh_install override from debian/rules.

With this patch applied, kallisto should build reproducibly on
tests.reproducible-builds.org!

Thanks for maintaining kallisto!

live well,
  vagrant
From 5c5e9ba026cb5acb27cca8ede0ddc41015b879c4 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Wed, 19 Jan 2022 22:58:14 +0000
Subject: [PATCH] debian/rules: Remove various test suite log files and
 metadata.

Various differences including timestamps, timing information, and
build paths are embedded in these files, which make it nearly
impossible to build the package reproducibly.

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

diff --git a/debian/rules b/debian/rules
index 23ee80e..3d9a422 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,3 +17,10 @@ override_dh_auto_configure:
 override_dh_auto_test:
 	dh_auto_test
 	cd test && PATH=$$(find ../obj-* -name src):$(PATH) HOME=$$(mktemp --directory) snakemake --cores 1
+
+override_dh_install:
+	dh_install
+	# Remove test suite logs and other metadata about the test suite
+	rm -rvf debian/kallisto-examples/usr/share/doc/kallisto/test/.snakemake
+	rm -vf debian/kallisto-examples/usr/share/doc/kallisto/test/bus_out/run_info.json
+	rm -vf debian/kallisto-examples/usr/share/doc/kallisto/test/quant_out/run_info.json
-- 
2.34.1

Attachment: signature.asc
Description: PGP signature

Reply via email to