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

Re: Error upgrading tetex-extra (experimental)



Christoph Bier <christoph.bier@web.de> wrote:

> Frank Küster schrieb am 18.08.2005 12:41:
>
>> Christoph Bier <christoph.bier@web.de> wrote:
>
> [...]
>
>>> ... !!! ERROR! The map file `MinionPro.map' has not been found
>>> at all. ...
>>> 
>>> chris@lotus:~$ kpsewhich MinionPro.map 
>>> /home/chris/texmf/fonts/map/dvips/MinionPro/MinionPro.map
>>> 
>>> But Root doesn't find map files in $TEXMFHOME:
>>> 
>>> root@lotus:~# kpsewhich MinionPro.map root@lotus:~#
>> 
>> If you have map files in TEXMFHOME, you can't have them
>> referenced in /etc/texmf/updmap.d/.  You must use the mechanism
>> provided by update-updmap's option --conf-dir and --output-file.
>> This is only documented in "updmap --help".
>
> Which output file?

update-updmap without options (and run by root) creates a site-wide
updmap.cfg file in /var/lib/texmf/web2c/ out of the files in
/etc/texmf/updmap.d/.  These files must not contain any references to
map files outside the TEXMFSYS* trees.  This will give you a clean
install without problems and a working TeX installation, but of course
without the fonts in your home directory.

update-updmap -c /home/chris/.texmf-config/updmap.d/ -o /home/chris/.texmf-var/web2c/updmap.cfg

will take the files from /etc/texmf/updmap.d, except if there is a file
of the same name in /home/chris/.texmf-config/updmap.d/ which takes
precedence, plus any unique files in /home/chris/.texmf-config/updmap.d/
and create /home/chris/.texmf-var/web2c/updmap.cfg from them.  After
this, you can use updmap to create your user-specific font map files
which enable MinionPro and friends.

This is how it is supposed to work.

> root@lotus:~# update-updmap -c /home/chris/.texmf-config/

This takes all files matching /home/chris/.texmf-config/*.cfg in
addition to the ones in /etc/texmf/updmap.d.

> root@lotus:~# updmap
> updmap: This is updmap, version 1107552857
> updmap: using transcript file `/root/.texmf-var/web2c/updmap.log'
> ...
> !!! ERROR! The map file `MinionPro.map' has not been found at all.
> ...

This cannot work, since for root /home/chris/texmf or
/home/chris/.texmf-config are no TEXMF trees, and the map files cannot
be found.  You must run update-updmap and updmap as chris if you want to
enable things in your home directory.  On the other hand, root should
nearly always use updmap-sys.

>> We should probably retitle this bug "Please update
>> update-updmap's man page".
>
> I think it would be a good idea to inform the user about this
> options if updmap (or installation) fails because of the above. Or
> much better: can't it be automated? It's not that unusual to have
> own fonts and related files in $TEXMFHOME.

No, it cannot possibly automated.  First of all, I doubt that everybody
would like if root (who might well be a person with no Tex knowledge at
all) runs command in their home directories.  Second, if one user has
messed up their TeX configuration, the complete postinst would fail,
leaving TeX in a possibly unusable state for all users.  Or else we
could turn errors in user directories into warnings - but then the admin
would have to inform users about this (and the admin might have seen
more severe warnings that he can't just file under "DAU error").  In the
end, the user would not even notice that their setup is wrong.

Regards, Frank
-- 
Frank Küster
Inst. f. Biochemie der Univ. Zürich
Debian Developer



Reply to: