[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1052298: metafun.mp refers to inexistent metafun.mpii



Dear Hilmar,

Le 22/09/2023 à 00:02, Preuße, Hilmar a écrit :
While investigating why mlpost now FTBFS (#1052232), I realized that
file /usr/share/texmf/metapost/context/base/mpiv/metafun.mpiv refers
to a "metafun.mpii" which doesn't exist.


I did a "grep -r metafun.mpii /home/hille/devel/TeXLive/github/context/texmf-dist" and the only relevant occurence of metafun.mpii is in

/home/hille/devel/TeXLive/github/context/texmf-dist/metapost/context/base/common/metafun.mp

, which reads:

<snip>
if known metafunversion : endinput ; fi ;

if known mplib :
     input metafun.mpiv
else :
     input metafun.mpii
fi ;
<snip>


mlpost generates files (e.g. foo.mp) that start with:

input metafun.mp ;

and runs them with e.g. `mpost -interaction=nonstopmode foo.mp`.

A file with only the line above exhibits the problem: mpost fails with the error:

This is MetaPost, version 2.02 (TeX Live 2023/Debian) (kpathsea version 6.3.5)
(/usr/share/texlive/texmf-dist/metapost/base/mpost.mp
(/usr/share/texlive/texmf-dist/metapost/base/plain.mp
Preloading the plain mem file, version 1.005) ) (./foo.mp
(/usr/share/texmf/metapost/context/base/common/metafun.mp
! I can't open file `metafun.mpii'.
l.6     input metafun.mpii
Please type another input file name
! Emergency stop.
l.6     input metafun.mpii
Transcript written on foo.log.


Note that the problem is new: mlpost compiled successfully on 2023-08-17. Context has been updated since them and the previous version did ship metafun.mpii that somehow got dropped in the new version. That's why I've submitted a bug here.


I do not know anything about metafun, but my impression is that you need to load a lib to combine metafun and mkiv. Please try to figure that yourself, I can't help here and I don't think we look at a general bug here.

Metafun documentation [1] says to use "input mp-tool" or "input metafun", but neither works.

[1] http://www.pragma-ade.nl/general/manuals/metafun-p.pdf

Using "input mp-tool.mpiv" seems to work, though (mlpost builds). Is that expected?


Cheers,

--
Stéphane


Reply to: