From 7e298ddcd9facad3ab643f8cd27fe5559a1ad9e5 Mon Sep 17 00:00:00 2001 From: Mike Sperber Date: Fri, 3 Jan 2020 11:11:02 +0100 Subject: [PATCH] texlive: make updmap actually regenerate (#76826) The --syncwithtrees flag only updates the config files, so run it again without --syncwithtrees to generate the actual map files. --- pkgs/tools/typesetting/tex/texlive/combine.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/typesetting/tex/texlive/combine.nix b/pkgs/tools/typesetting/tex/texlive/combine.nix index 6622a03decc..ab40cdb86d0 100644 --- a/pkgs/tools/typesetting/tex/texlive/combine.nix +++ b/pkgs/tools/typesetting/tex/texlive/combine.nix @@ -214,7 +214,11 @@ in buildEnv { texlinks.sh "$out/bin" && wrapBin (perl `type -P fmtutil.pl` --sys --all || true) | grep '^fmtutil' # too verbose #texlinks.sh "$out/bin" && wrapBin # do we need to regenerate format links? + # Note that --syncwithtrees *only* removes the missing files from the configuration, + # but does not generate map files. echo y | perl `type -P updmap.pl` --sys --syncwithtrees --force + # This does generate the map files. + perl `type -P updmap.pl` --sys --force perl `type -P mktexlsr.pl` ./share/texmf-* # to make sure '' + # install (wrappers for) scripts, based on a list from upstream texlive