[From nobody Fri Nov 27 21:57:05 2026
Received: (at submit) by bugs.debian.org; 25 Nov 2026 22:21:30 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-11.0 required=4.0 tests=BAYES_00,HAS_PACKAGE,
 MD5_SHA1_SUM,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 26; hammy, 150; neutral, 61; spammy,
 0. spammytokens: hammytokens:0.000-+--sk:salsad, 0.000-+--sk:salsa.d,
 0.000-+--UD:salsa.debian.org, 0.000-+--salsadebianorg,
 0.000-+--salsa.debian.org
Return-path: &lt;rlb@defaultvalue.org&gt;
Received: from defaultvalue.org ([45.33.119.55]:47284)
 by buxtehude.debian.org with esmtp (Exim 4.96)
 (envelope-from &lt;rlb@defaultvalue.org&gt;) id 1xWLMo-00EzWO-37
 for submit@bugs.debian.org; Wed, 25 Nov 2026 22:21:30 +0000
Received: from trouble.defaultvalue.org (localhost [127.0.0.1])
 (Authenticated sender: rlb@defaultvalue.org)
 by defaultvalue.org (Postfix) with ESMTPSA id D12C620D74
 for &lt;submit@bugs.debian.org&gt;; Wed, 25 Nov 2026 16:13:50 -0600 (CST)
Received: by trouble.defaultvalue.org (Postfix, from userid 1000)
 id 1597F14E291; Wed, 25 Nov 2026 16:13:50 -0600 (CST)
From: Rob Browning &lt;rlb@defaultvalue.org&gt;
To: submit@bugs.debian.org
Subject: strip-nondeterminism: wrong result for .clj files and odd -T values
Date: Wed, 25 Nov 2026 16:13:49 -0600
Message-ID: &lt;87pkvsh84i.fsf@trouble.defaultvalue.org&gt;
MIME-Version: 1.0
Content-Type: text/plain
X-Greylist: delayed 459 seconds by postgrey-1.37 at buxtehude;
 Wed, 25 Nov 2026 22:21:30 UTC
Delivered-To: submit@bugs.debian.org


Package: strip-nondeterminism
Version: 1.14.1-2

While packaging clojure 1.12.7, I happened to notice that the resulting
jar ran &quot;time clojure -e ''&quot; much more slowly than expected.  Looking
inside the jar, I saw that the .clj files had the same timestamps as
their corresponding .class files when they should have had an older
timestamp.

I wondered if this might be due to the 2s jar/zip timestamp granularity,
and so I tested it directly, using the sbuild's timestamp via

  strip-nondeterminism -T 1788559311 clojure.jar

This demonstrated the problem (.clj and .class files had the same
timestamps).  Then I tried 

  strip-nondeterminism -T 1788559310 clojure.jar

which worked correctly (.class files were newer than corresponding .clj
files).

Without fully understanding the context, I wondered if, given the 2s
granularity, this decrement isn't large enough:

https://salsa.debian.org/reproducible-builds/strip-nondeterminism/-/blob/763f4f83710b1a072e96a476f064203738d68522/lib/File/StripNondeterminism/handlers/jar.pm#L123

cf. https://bugs.debian.org/877418 

Thanks
-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
]