Debian Bug report logs - #1002671
python-parse-type: reproducible builds: Timestamps, timing and hostname in result.xml

Package: src:python-parse-type; Maintainer for src:python-parse-type is Debian Python Team <team+python@tracker.debian.org>;

Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>

Date: Mon, 27 Dec 2021 01:54:01 UTC

Severity: normal

Tags: patch

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian Python Team <team+python@tracker.debian.org>:
Bug#1002671; Package src:python-parse-type. (Mon, 27 Dec 2021 01:54:03 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Debian Python Team <team+python@tracker.debian.org>. (Mon, 27 Dec 2021 01:54:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: python-parse-type: reproducible builds: Timestamps, timing and hostname in result.xml
Date: Sun, 26 Dec 2021 17:52:07 -0800
[Message part 1 (text/plain, inline)]
Source: python-parse-type
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps hostname
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

There are two result.xml files shipped in the .deb package which contain
timestamp, timing, and hostname information about the build environment:

  ./usr/lib/python3/dist-packages/build/testing/report.xml

  - <testsuite name="pytest" errors="0" failures="0" skipped="0"
  tests="218" time="0.660" timestamp="2021-12-26T13:32:24.664241"
  hostname="osuosl174-amd64">

vs.
  
  + <testsuite name="pytest" errors="0" failures="0" skipped="0"
  tests="218" time="0.654" timestamp="2022-10-18T19:37:34.113136"
  hostname="osuosl174-amd64">


The attached patch fixes this by removing these files from debian/rules
in a dh_install override.


If it is not appropriate to remove the result.xml files, another
approach might be to sanitize out all the timestamps, timing and
hostname, although this might become a game of whack-a-mole over time.


With this patch applied, python-parse-type should build reproducibly on
tests.reproducible-builds.org.


Thanks for maintaining python-parse-type!


live well,
  vagrant
[0001-debian-rules-Delete-test-suite-log-from-dh_install-o.patch (text/x-diff, inline)]
From 385bf9f6385cdbea8bc480290c10936f44df5f89 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 27 Dec 2021 01:41:53 +0000
Subject: [PATCH] debian/rules: Delete test suite log from dh_install override.

---
 debian/rules | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/debian/rules b/debian/rules
index 02c38ce..62b5543 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,3 +4,10 @@ export PYBUILD_NAME=parse-type
 
 %:
 	dh $@ --with python3 --buildsystem=pybuild
+
+override_dh_install:
+	# Delete log of test suite which contains dates and timing
+	# information for reproducible builds.
+	find debian/python3-parse-type/usr/lib/python*/dist-packages/build/testing/ \
+		-name report.xml -delete -print
+	dh_install
-- 
2.34.1

[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 11:09:31 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.