#1136323 dh_strip_nondeterminism does not process LibreOffice zip-based files

#1136323#5
Date:
2026-05-11 20:46:03 UTC
From:
To:
dh_strip_nondeterminism currently ignores all zip-based file types
produced or used by LibreOffice (for example template files, or color
palettes), although it is able to remove timestamps and other sources of
nondeterminism from other zip-based file formats.

This hinders the reproducibility of many packages that build and ship
LibreOffice files (for instance libreoffice-commons and libreoffice-l10n-*).

This issue is in part due to the fact that `file` is not able to
properly tell these files apart from normal (or apparently malformed)
zip files, as reported in <https://bugs.debian.org/1136317>.

Regards,

#1136323#12
Date:
2026-05-18 11:16:06 UTC
From:
To:
what filename endings have those files?

so maybe this bug should be reassigned to src:file?

#1136323#17
Date:
2026-05-18 11:16:06 UTC
From:
To:
what filename endings have those files?

so maybe this bug should be reassigned to src:file?

#1136323#22
Date:
2026-05-18 11:25:06 UTC
From:
To:
The sure ones are .bau, .dat, .so{b,p}. Then there are a couple extra
that will need further inspection.

1136317 blocks this bug. dh_strip_nondeterminism will need extra code to
handle these file extensions. As far as I can see from the code,
dh_strip_nondeterminism does not blindly strip timestamps & Co. from all
zip-based file types.

#1136323#27
Date:
2026-06-06 09:55:07 UTC
From:
To:
Hi,

Am 06.06.26 um 11:12 schrieb Christoph Biedl:

strip-nondeterminism seems to work when called manually.

dh_strip_nondeterminism doesn't. (uses file).

Yes, that seems to  be the the essence for dh_strip_nondeterminism.

If it's not detected as zip file is not done.

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1136323, too

The problem is that it relies solely on file. I'd argue .zip being enough to know it's a .zip and be done.

Just testing https://people.debian.org/~rene/manual-strip-nondeterminism.diff (for probably even more file endings, though), but that of course does not scale.


Regards,


Rene