On 8/5/2012 6:29 AM, Ken Brown wrote:
On 8/4/2012 12:37 PM, Achim Gratz wrote:
It's updmap IIRC, the error message contains the line where the check is
happening. I see no downside in providing an empty texmf-site however,
parallel to some Emacs distributions.

I'm glad you told me about this. In TeX Live 2012 updmap has a new
feature that allows a system to have more than one updmap.cfg, with
preference given to one in TEXMFLOCAL (which is /usr/share/texmf-site on
Cygwin). Unfortunately, the script fails with the error message you got
if TEXMFLOCAL doesn't exist.

This means that all the updmap-sys commands in the existing
texlive-collection-*-20120628-1 postinstall scripts have failed. I need
to fix this before I pursue your suggestion further. I think the way to
fix it is to update texlive-collection-basic so that it contains (a)
/usr/share/texmf-site and (b) a postinstall script that will rerun the
'updmap-sys --enable' commands from the existing
/etc/postinstall/texlive-collection-*.sh.done scripts.

Suggestions for a better way to do this are welcome.

Another consequence of the fact that updmap reads more than one updmap.cfg file is that /usr/share/texmf-dist/web2c/updmap.cfg should not be included in the distribution. (It effectively enables all possible maps that are not explicitly disabled in /etc/texmf/web2c/updmap.cfg.) So my new release of texlive-collection-basic has to exclude this file.

If any TeX users on this list want to help make sure that I've got it right, you could test it as follows:

1. Save the attached script and make it executable.

2. Issue the following commands:

mkdir -p /usr/share/texmf-site
rm -f /usr/share/texmf-dist/web2c/updmap.cfg
/path/to/texlive_fix_updmap.sh

As a variation on this, you could first delete (or move) /etc/texmf/web2c/updmap.cfg. It should get recreated.

Thanks.

Ken
#! /bin/bash

# Users who installed texlive-collection-*-20120628-1 when
# /usr/share/texmf-site didn't exist found that the updmap-sys
# commands in the postinstall scripts failed
# (http://cygwin.com/ml/cygwin-apps/2012-08/msg00009.html).  This
# script runs those commands.

map_cmds=$(sed -n -e 's|^/usr/bin/updmap-sys --nohash --nomkmap \(--enable 
.*\)$|\1|p' /etc/postinstall/texlive-collection-*.sh.done)
if [ -n "$map_cmds" ]
then
    /usr/bin/updmap-sys $map_cmds
fi
/usr/bin/updmap-sys --syncwithtrees

Reply via email to