Commit 804ee6ef authored by Ingo Blechschmidt's avatar Ingo Blechschmidt
Browse files

texlive: improve reproducibility

parent 671960c8
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -225,7 +225,7 @@ in (buildEnv {

    perl `type -P mktexlsr.pl` --sort ./share/texmf
    ${bin.texlinks}/bin/texlinks "$out/bin" && wrapBin
    perl `type -P fmtutil.pl` --sys --all | grep '^fmtutil' # too verbose
    FORCE_SOURCE_DATE=1 perl `type -P fmtutil.pl` --sys --all | grep '^fmtutil' # too verbose
    #${bin.texlinks}/bin/texlinks "$out/bin" && wrapBin # do we need to regenerate format links?

    # Disable unavailable map files
@@ -233,6 +233,9 @@ in (buildEnv {
    # Regenerate the map files (this is optional)
    perl `type -P updmap.pl` --sys --force

    # sort entries to improve reproducibility
    [[ -f "$TEXMFSYSCONFIG"/web2c/updmap.cfg ]] && sort -o "$TEXMFSYSCONFIG"/web2c/updmap.cfg "$TEXMFSYSCONFIG"/web2c/updmap.cfg

    perl `type -P mktexlsr.pl` --sort ./share/texmf-* # to make sure
  '' +
    # install (wrappers for) scripts, based on a list from upstream texlive
@@ -299,7 +302,12 @@ in (buildEnv {
      )
    fi
  ''
    + bin.cleanBrokenLinks
    + bin.cleanBrokenLinks +
  # Get rid of all log files. They are not needed, but take up space
  # and render the build unreproducible by their embedded timestamps.
  ''
    find $TEXMFSYSVAR/web2c -name '*.log' -delete
  ''
  ;
}).overrideAttrs (_: { allowSubstitutes = true; })
# TODO: make TeX fonts visible by fontconfig: it should be enough to install an appropriate file