#1003449 texlive-base: Reproducible configuration file ls-R: sychronise both variants of mktexlsr

#1003449#5
Date:
2022-01-10 11:41:50 UTC
From:
To:
Hello Debian TeX Task Force,

While working on the “reproducible builds” effort [1], I have noticed that the
output of the shell script and the output of the Perl script for 'mktexlsr'
produce different output, as seen in '/var/lib/texmf/ls-R'.

This was demonstrated in the Cinnamon live image for bookworm and sid [2], as
built on Jenkins [3].
If the Perl version is used as the last step in postinst (e.g. when invoked
from fmtutil), the output is not reproducible.

I've attached two patches, feel free to use either of them.

The file synchronise_mktexlsr_shell_and_perl.patch makes the output identical,
assuming that the Perl script is started with '--sort':
* The shell script occasionally outputs a double empty line, 'cat -s' removes
this
* The Perl script had an empty line before './:' and had a trailing empty line

The file synchronise_mktexlsr_shell_and_perl_and_remove_sort.patch contains the
same and additionally removes the functionality of the '--sort' flag (by always
sorting), while still allowing the flag to be passed.

 [1]: https://wiki.debian.org/ReproducibleBuilds
 [2]: https://tests.reproducible-builds.org/debian_live_build/cinnamon-
unstable.html
 [3]:
https://jenkins.debian.net/view/live/job/reproducible_debian_live_build_cinnamon_sid