Bug#1155386: strip-nondeterminism: wrong result for .clj files and odd -T values

Chris Lamb lamby at debian.org
Thu Nov 26 00:35:13 GMT 2026


Hi Rob,

> 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
> [..]

Nice investigation work. :)

And it seems like my 2017 comment in jar.pm was misleading. The ZIP
specification itself uses the MS-DOS timestamp format, so it is not
relevant whether the file is extracted to any filesystem (FAT/NTFS/ext4)
or not.

I'll push a fix now, correcting that comment also. I will release this
coming Friday.

Thanks for reminding me about the rather cute "$timestamp--;" fix. Having
to subtract 2 makes the whole fix even more of a weird quirk .

(Incidentally, should we be running this with .cljc files as well? The
current regex is only matching .clj.)


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org 🍥 chris-lamb.co.uk
       `-



More information about the Reproducible-builds mailing list