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

A timezone and potentially locale dependent date is embedded in
/usr/bin/dustmite:

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

  Aug··3·2022
  vs.
  Aug··4·2022

The attached patch to dustmite.d fixes this by removing the use
of__DATE__.

This is not the only issue affecting the reproducibility of dustmite,
but another patch regarding build paths was recently submitted,
Bug#1020878.

According to my local tests, with both patches applied, dustmite should
build reproducibly on tests.reproducible-builds.org!

Thanks for maintaining dustmite!

live well,
  vagrant
From aa1d96af9415960d74cc9d1128bc6cbb8b0ae5d1 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Tue, 27 Sep 2022 21:05:55 +0000
Subject: [PATCH 2/2] dustmite.d: Avoid embedding timezone and locale-specific
 build date in the binary.

https://reproducible-builds.org/docs/timestamps/
---
 dustmite.d | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dustmite.d b/dustmite.d
index 3177cbe..918f49e 100644
--- a/dustmite.d
+++ b/dustmite.d
@@ -209,7 +209,7 @@ int main(string[] args)
 			enum source = import("source");
 		else
 			enum source = "upstream";
-		stdout.writeln("DustMite build ", __DATE__, " (", source, "), built with ", __VENDOR__, " ", __VERSION__);
+		stdout.writeln("DustMite build (", source, "), built with ", __VENDOR__, " ", __VERSION__);
 		if (args.length == 1)
 			return 0;
 	}
-- 
2.37.2

Attachment: signature.asc
Description: PGP signature

Reply via email to