[tex-live] updmap and /

Lars Madsen daleif at imf.au.dk
Tue Mar 3 01:29:02 CET 2009


Karl Berry wrote:
>       $ rm -r ../todelete
> 
> I cannot find anywhere that .. is used in updmap.
> 
> 
> Anyway, Lars, can you please report your actual updmap invocation and
> the actual error message from updmap (as opposed to from your manual
> tests)?  Perhaps run bash -vx updmap <args>, in fact.
> 
> I can believe that it is the permissions of / that are the issue, but
> nothing in all the zillions of messages written so far have proved it,
> as far as I can tell.
> 
> If that is indeed the case, it could perhaps be fixed, as Zdenek
> suggested, by cd-ing to the script's original cwd instead of / before
> doing the rm -rf $tmpdir.
> 
> karl

easy

$ updmap-sys --enable Map lm.map
updmap: This is updmap, version 1211742332
updmap: using transcript file 
`/vol/packages/TL/2008/texmf-var/web2c/updmap.log'
updmap: initial config file is 
`/vol/packages/TL/2008/texmf-config/web2c/updmap.cfg'
updmap: configuration (updmap.cfg) unchanged. Map files will not be 
recreated.
rm: cannot get current directory: Permission denied

anything that runs the cleanup method in the updmap script

I my case I saw it when enabling other map files, but just realised that 
  this gives it as well.

output from

bash -vx updmap <args>


I removed the listing of the contents of the program itself

+ main --enable Map lm.map
+ progname=updmap
+ cmd=
+ log=
+ chicken_mode=false
+ link_cmd='ln -s'
+ copy_cmd=cp
+ copy=false
+ cfgparam=
+ outputdirparam=
+ cfgmaint=
+ texhashEnabled=true
+ mkmapEnabled=true
+ verbose=true
+ needsCleanup=false
+ cnfFileShort=updmap.cfg
+ cnfFile=
+ dvipsoutputdir=
+ pdftexoutputdir=
+ dvipdfmoutputdir=
kpsewhich -var-value=TEXMFMAIN
++ kpsewhich -var-value=TEXMFMAIN
+ : /vol/packages/TL/2008/texmf
+ tmpdir=/home/latex/tmp/updmap.5762
+ tmp1=/home/latex/tmp/updmap.5762/a
+ tmp2=/home/latex/tmp/updmap.5762/b
+ tmp3=/home/latex/tmp/updmap.5762/c
+ tmp4=/home/latex/tmp/updmap.5762/d
+ tmp5=/home/latex/tmp/updmap.5762/e
+ tmp6=/home/latex/tmp/updmap.5762/f
+ tmp7=/home/latex/tmp/updmap.5762/g
+ tmp8=/home/latex/tmp/updmap.5762/h
+ mapWarnCalled=/home/latex/tmp/updmap.5762/mapWarnCalled
+ catMapsFailed=/home/latex/tmp/updmap.5762/catMapsFailed
+ processOptions --enable Map lm.map
+ case $1 in
+ cfgmaint=1
+ cmd=enable
+ case $2 in
+ test 3 -ge 3
+ enableMapType=Map
+ enableMapFile=lm.map
+ shift
+ shift
+ test 1 -gt 0
+ shift
+ case $1 in
+ break
+ test -n ''
+ test -n ''
+ test -n ''
+ test -n ''
+ case "$cmd" in
+ setupCfgFile
+ case "$cnfFile" in
locateWeb2c $cnfFileShort
++ locateWeb2c updmap.cfg
++ kpsewhich '--format=web2c files' updmap.cfg
+ cnfFile=/vol/packages/TL/2008/texmf-config/web2c/updmap.cfg
+ case "$cnfFile" in
+ setupLog
kpsewhich -var-value=TEXMFVAR
++ kpsewhich -var-value=TEXMFVAR
+ vartexmf=/home/latex/.texlive2008/texmf-var
+ dir=/home/latex/.texlive2008/texmf-var/web2c
+ mktexdir /home/latex/.texlive2008/texmf-var/web2c
+ log=/home/latex/.texlive2008/texmf-var/web2c/updmap.log
+ test -d /home/latex/.texlive2008/texmf-var/web2c
+ test -w /home/latex/.texlive2008/texmf-var/web2c
+ rm -f /home/latex/.texlive2008/texmf-var/web2c/updmap.log
+ test -w /home/latex/.texlive2008/texmf-var/web2c/updmap.log
+ false
+ date
+ verboseMsg 'updmap: This is updmap, version 1211742332'
+ test -n /home/latex/.texlive2008/texmf-var/web2c/updmap.log
+ echo 'updmap: This is updmap, version 1211742332'
+ true
+ echo 'updmap: This is updmap, version 1211742332'
updmap: This is updmap, version 1211742332
+ verboseMsg 'updmap: using transcript file 
`/home/latex/.texlive2008/texmf-var/web2c/updmap.log'\'''
+ test -n /home/latex/.texlive2008/texmf-var/web2c/updmap.log
+ echo 'updmap: using transcript file 
`/home/latex/.texlive2008/texmf-var/web2c/updmap.log'\'''
+ true
+ echo 'updmap: using transcript file 
`/home/latex/.texlive2008/texmf-var/web2c/updmap.log'\'''
updmap: using transcript file 
`/home/latex/.texlive2008/texmf-var/web2c/updmap.log'
+ case "$cmd" in
+ setupTmpDir
+ false
+ trap 'cleanup 1' 1 2 3 7 13 15
+ needsCleanup=true
+ mkdir /home/latex/tmp/updmap.5762
+ test -n 1
+ test -z ''
"$TEXMFMAIN/texconfig/tcfmgr" --tmp $tmpdir --cmd co --file $cnfFileShort
++ /vol/packages/TL/2008/texmf/texconfig/tcfmgr --tmp 
/home/latex/tmp/updmap.5762 --cmd co --file updmap.cfg
+ co='tfc5803 /home/latex/tmp/updmap.5762/tfc5803/in/updmap.cfg 
/home/latex/tmp/updmap.5762/tfc5803/out/updmap.cfg 
/vol/packages/TL/2008/texmf-config/web2c/updmap.cfg'
+ test 0 = 0
+ set x tfc5803 /home/latex/tmp/updmap.5762/tfc5803/in/updmap.cfg 
/home/latex/tmp/updmap.5762/tfc5803/out/updmap.cfg 
/vol/packages/TL/2008/texmf-config/web2c/updmap.cfg
+ shift
+ id=tfc5803
+ cnfFile=/home/latex/tmp/updmap.5762/tfc5803/out/updmap.cfg
+ orig=/vol/packages/TL/2008/texmf-config/web2c/updmap.cfg
+ verboseMsg 'updmap: initial config file is 
`/vol/packages/TL/2008/texmf-config/web2c/updmap.cfg'\'''
+ test -n /home/latex/.texlive2008/texmf-var/web2c/updmap.log
+ echo 'updmap: initial config file is 
`/vol/packages/TL/2008/texmf-config/web2c/updmap.cfg'\'''
+ true
+ echo 'updmap: initial config file is 
`/vol/packages/TL/2008/texmf-config/web2c/updmap.cfg'\'''
updmap: initial config file is 
`/vol/packages/TL/2008/texmf-config/web2c/updmap.cfg'
+ case "$cmd" in
+ enableMap Map lm.map
+ case $1 in
+ disableMap lm.map
+ map=lm.map
egrep "^(MixedMap|Map)[ 	]*$map( |	|$)" "$cnfFile" | awk '{print $1}' | 
sort | uniq
++ egrep '^(MixedMap|Map)[ 	]*lm.map( |	|$)' 
/home/latex/tmp/updmap.5762/tfc5803/out/updmap.cfg
++ awk '{print $1}'
++ sort
++ uniq
+ mapType=Map
+ for type in '$mapType'
+ configReplace /home/latex/tmp/updmap.5762/tfc5803/out/updmap.cfg 
'^Map[ 	]*lm.map' '#! Map lm.map'
+ file=/home/latex/tmp/updmap.5762/tfc5803/out/updmap.cfg
+ pat='^Map[ 	]*lm.map'
+ line='#! Map lm.map'
+ grep '^Map[ 	]*lm.map' /home/latex/tmp/updmap.5762/tfc5803/out/updmap.cfg
+ ed /home/latex/tmp/updmap.5762/tfc5803/out/updmap.cfg
+ configReplace /home/latex/tmp/updmap.5762/tfc5803/out/updmap.cfg 
'^#![ 	]*Map[ 	]*lm.map' 'Map lm.map'
+ file=/home/latex/tmp/updmap.5762/tfc5803/out/updmap.cfg
+ pat='^#![ 	]*Map[ 	]*lm.map'
+ line='Map lm.map'
+ grep '^#![ 	]*Map[ 	]*lm.map' 
/home/latex/tmp/updmap.5762/tfc5803/out/updmap.cfg
+ ed /home/latex/tmp/updmap.5762/tfc5803/out/updmap.cfg
+ unchanged=true
+ test -z ''
"$TEXMFMAIN/texconfig/tcfmgr" --tmp $tmpdir --cmd ci --id $id
++ /vol/packages/TL/2008/texmf/texconfig/tcfmgr --tmp 
/home/latex/tmp/updmap.5762 --cmd ci --id tfc5803
+ ci=
+ test 0 = 0
+ case "$ci" in
+ :
+ case $unchanged in
+ true
+ verboseMsg 'updmap: configuration (updmap.cfg) unchanged. Map files 
will not be recreated.'
+ test -n /home/latex/.texlive2008/texmf-var/web2c/updmap.log
+ echo 'updmap: configuration (updmap.cfg) unchanged. Map files will not 
be recreated.'
+ true
+ echo 'updmap: configuration (updmap.cfg) unchanged. Map files will not 
be recreated.'
updmap: configuration (updmap.cfg) unchanged. Map files will not be 
recreated.
+ mkmapEnabled=false
+ false
+ return
cleanup 0
+ cleanup 0
+ rc=0
+ true
+ test -n /home/latex/tmp/updmap.5762
+ test -d /home/latex/tmp/updmap.5762
+ cd /
+ rm -rf /home/latex/tmp/updmap.5762
rm: cannot get current directory: Permission denied
+ exit 0
+ exit 0


/daleif


More information about the tex-live mailing list