[tex-live] Recent change to _create_config_files broke installation in user mode

Ken Brown kbrow1i at gmail.com
Fri May 6 17:41:13 CEST 2016


On 5/5/2016 11:40 AM, Norbert Preining wrote:
> I have a different approach, copying to updmap.cfg.backup and
> regenerating it in usermode.

Thanks, this works well.

While testing it, however, I found another glitch in _create_config_files, unrelated to the usermode issue.  Namely, writing to $dest shouldn't be conditioned on $#lines >= 0.  If there are no lines to write, then updmap.cfg should still be written, with no map lines.  This can happen after the removal of packages, if there are no more packages left with map files.

Here's the example that bit me (which happens to be in usermode, but that's irrelevant):

$ tlmgr --usermode install noto
tlmgr: package repository http://www.math.utah.edu/pub/texlive/tlpretest/ (verified)
[1/1, ??:??/??:??] install: noto [4401k]
tlmgr: package log updated: /home/kbrown/texmf/web2c/tlmgr.log
running mktexlsr ...
done running mktexlsr.
running updmap ...
done running updmap.

kbrown at moufang ~
$ tlmgr --usermode remove noto
tlmgr: removing package noto
tlmgr: ultimately removed these packages: noto
tlmgr: package log updated: /home/kbrown/texmf/web2c/tlmgr.log
running mktexlsr ...
done running mktexlsr.
running updmap ...

tlmgr: updmap failed (status 1), output:
updmap will read the following updmap.cfg files (in precedence order):
  /home/kbrown/texmf/web2c/updmap.cfg
  /usr/local/texlive/2016/texmf-dist/web2c/updmap.cfg
updmap may write changes to the following updmap.cfg file:
  /home/kbrown/texmf/web2c/updmap.cfg
dvips output dir: "/home/kbrown/.texlive2016/texmf-var/fonts/map/dvips/updmap"
pdftex output dir: "/home/kbrown/.texlive2016/texmf-var/fonts/map/pdftex/updmap"
dvipdfmx output dir: "/home/kbrown/.texlive2016/texmf-var/fonts/map/dvipdfmx/updmap"
updmap [ERROR]: The following map file(s) couldn't be found:
updmap [ERROR]:         noto.map (in /home/kbrown/texmf/web2c/updmap.cfg)
updmap [ERROR]: Did you run mktexlsr?
[...]

Ken


More information about the tex-live mailing list