Bug#1093513: strip-nondeterminism: Claims to normalize `.mo` file when it in fact does not change it

Niels Thykier niels at thykier.net
Sun Jan 19 12:42:54 GMT 2025


Package: strip-nondeterminism
Version: 1.14.0-1
Severity: minor
X-Debbugs-Cc: niels at thykier.net

Hi

Reproducer:

```shell
$ TS=$(date -d"Fri, 17 Jan 2025 20:21:22 +0000" -u '+%s')
$ cp da.mo da_norm.mo
$ strip-nondeterminism -T"${TS}" --verbose da_norm.mo
Normalizing da_norm.mo
$ sha256sum da.mo da_norm.mo
52198c63891e23adf5281358c9a3ddd9f0926a1ed357270414eac95bbd77d629  da.mo
52198c63891e23adf5281358c9a3ddd9f0926a1ed357270414eac95bbd77d629  da_norm.mo
```

Besides the incorrect stdout message, this also implies that 
`strip-nondeterminism` rewrote the file for no reason.

I am not sure why this happened because at first glance, the 
`gettext.pm` handler does seem to the correct guards in place. 
Nevertheless, it must be returning a truth value, since the message appears.

Best regards,
Niels
-------------- next part --------------
A non-text attachment was scrubbed...
Name: da.mo
Type: application/octet-stream
Size: 199871 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-builds/attachments/20250119/aa8c7b1e/attachment.obj>


More information about the Reproducible-builds mailing list