Closed alexshpilkin closed 2 years ago
MRE:
# env -i `which mktextfm` rsfs10
/nix/store/k74kiyaxbn5vnhwxpgyqn20fnh5p962z-texlive-texlive-scripts-58791/scripts/texlive/mktextfm: line 11: sed: command not found
/nix/store/k74kiyaxbn5vnhwxpgyqn20fnh5p962z-texlive-texlive-scripts-58791/scripts/texlive/mktextfm: line 14: sed: command not found
/nix/store/rw08g6pn4hh97lgbx5llcv991fsm0kxy-texlive-combined-full-2021.20210408/share/texmf/web2c/mktex.opt: line 32: uname: command not found
/nix/store/rw08g6pn4hh97lgbx5llcv991fsm0kxy-texlive-combined-full-2021.20210408/share/texmf/web2c/mktex.opt: line 62: mkdir: command not found
/nix/store/rw08g6pn4hh97lgbx5llcv991fsm0kxy-texlive-combined-full-2021.20210408/share/texmf/web2c/mktex.opt: line 1: rm: command not found
Packages generated with
<nixpkgs>.texlive.combine
(all of them, as far as I can tell, whether the standardtexlive.combined.*
ones or custom ones) include amktexmf
script that depends onsed
, but don’t declare a dependency on it.Steps To Reproduce
Steps to reproduce the behavior:
texlive.combined.basic
.share/texmf/scripts/texlive/mktexmf
inside it.sed
invocations in the initial lines of the script.Additional context
I initially observed this problem while trying to build a Cyrillic document on a Nix-on-Droid installation, but as far as I can tell this part of it is just taken verbatim from Nixpkgs (the maintainer there observes, though, that e.g. stdenv is intentionally not installed, but an implicit dependency is evil in any case).
I’m not including a more actionable reproduction because the only way I can actually get
mktexmf
to run is by requesting Cyrillic fonts in a LaTeX document, which requires a fairly extensive TeXLive environment. Themktexmf
script is normally invoked (viamktextfm
) for any (font, size) pair not previously used on the system, but the standard Latin-only Computer Modern fonts seem to come with metrics already.Depending on how TeX packaging is intended to work in Nixpkgs (I’ve no idea), it might be that all font metrics are intended to be included in the packages and
mktexmf
is not intended to run at all after installation, in which case the bug is in a different place and I’ll need to post an example document after all.A closer look at
mktexmf
reveals that all thesed
invocations accomplish is the moral equivalent ofbasename
anddirname
, so in an ideal world somebody (me?) should probably just go bug upstream to get rid of them altogether.(This report was initially filed as t184256/nix-on-droid#152.)
Notify maintainers
@veprbl @xworld21
Metadata
(This is the Nix-on-Droid environment I originally observed this in.)
Maintainer information: