Merge pull request #169080 from iblech/patch-texlive-repro

texlive: improve reproducibility

authored by Artturi and committed by GitHub 6e4f70e8 325fb715

+10 -2
+10 -2
pkgs/tools/typesetting/tex/texlive/combine.nix
··· 225 225 226 226 perl `type -P mktexlsr.pl` --sort ./share/texmf 227 227 ${bin.texlinks}/bin/texlinks "$out/bin" && wrapBin 228 - perl `type -P fmtutil.pl` --sys --all | grep '^fmtutil' # too verbose 228 + FORCE_SOURCE_DATE=1 perl `type -P fmtutil.pl` --sys --all | grep '^fmtutil' # too verbose 229 229 #${bin.texlinks}/bin/texlinks "$out/bin" && wrapBin # do we need to regenerate format links? 230 230 231 231 # Disable unavailable map files 232 232 echo y | perl `type -P updmap.pl` --sys --syncwithtrees --force 233 233 # Regenerate the map files (this is optional) 234 234 perl `type -P updmap.pl` --sys --force 235 + 236 + # sort entries to improve reproducibility 237 + [[ -f "$TEXMFSYSCONFIG"/web2c/updmap.cfg ]] && sort -o "$TEXMFSYSCONFIG"/web2c/updmap.cfg "$TEXMFSYSCONFIG"/web2c/updmap.cfg 235 238 236 239 perl `type -P mktexlsr.pl` --sort ./share/texmf-* # to make sure 237 240 '' + ··· 299 302 ) 300 303 fi 301 304 '' 302 - + bin.cleanBrokenLinks 305 + + bin.cleanBrokenLinks + 306 + # Get rid of all log files. They are not needed, but take up space 307 + # and render the build unreproducible by their embedded timestamps. 308 + '' 309 + find $TEXMFSYSVAR/web2c -name '*.log' -delete 310 + '' 303 311 ; 304 312 }).overrideAttrs (_: { allowSubstitutes = true; }) 305 313 # TODO: make TeX fonts visible by fontconfig: it should be enough to install an appropriate file