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

Bug#391348: updmap-sys neglects /usr/local/share/texmf



Juhapekka Tolvanen <juhtolv@cc.jyu.fi> wrote:

> Package: texlive-base-bin
> Version: 2005.dfsg.1-1
> Severity: important
>
>
> I installed fpl-neu from this WWW-site to /usr/local/share/texmf :
>
> http://home.vrweb.de/~was/x/FPL/
>
> Then I run commands "texhash" and "updmap-sys --enable Map fp9.map ;
> updmap-sys". updmap-sys seems to do nothing in /usr/local/share/texmf .

Hm, this should work.  Can you please send the output of the following
commands:

ls -l /etc/texmf/updmap.d/
grep fp9 /etc/texmf/updmap.d/*

as well as the contents of the files given by the last command.  


However, while trying to investigate this, I have found a couple of bugs
in debianize-updmap.  I first tried it with updmap, not updmap-sys:

- if ~/texmf-config/updmap.d does not exist, it must be created with
  --enable, but this is not done.  This can be fixed with

--- debianize-updmap.orig	2006-10-06 11:43:31.000000000 +0200
+++ debianize-updmap	2006-10-06 11:56:45.000000000 +0200
@@ -254,10 +254,15 @@
   mapName=$1
   # Do we know about a user-specific directory?
   DebianSyswideMode || debianuserdir=`FindDebianUserdir`
-  if (! DebianSyswideMode) && [ -d "$debianuserdir" ]; then
-      DebCnfFile=`pickLocalFile $mapName $debianuserdir`
-  else
+  if DebianSyswideMode; then
     DebCnfFile=`pickLocalFile $mapName /etc/texmf/updmap.d`
+  else
+    texmfconf=`kpsewhich -var-value=TEXMFCONFIG`
+    debianuserdir=$texmfconf/updmap.d
+    if [ ! -w "$debianuserdir" ]; then
+      /usr/share/texmf/web2c/mktexdir "$debianuserdir"
+    fi
+      DebCnfFile=`pickLocalFile $mapName $debianuserdir`
   fi
   # configReplace will try to grep in the file: touch it to prevent a error message
   touch $DebCnfFile

- After that, it still doesn't work because it re-executes itself and in
  the second run uses the same updmap.cfg file (that in TEXMFSYSVAR)
  instead of the newly created one in TEXMFVAR.  In order to fix this,
  one has to understand properly how that all works together, because if
  the user explicitly gave a --cnffile commandline option, we should not
  change it (maybe instead instruct update-updmap to use it).

With updmap-sys, it seems to work for me, at least I get 

!!! ERROR! The map file `fp9.map' has not been found at all.

    Either put this file into the right place or remove the
    reference from the configuration file. An automatic way
    to disable unavailable map files is to call
      updmap-sys --syncwithtrees

    For manual editing, call
      updmap-sys --edit


when I try to --enable Map fp9.map without installing it, and an entry
in /etc/texmf/updmap.d/10local.cfg.  So according to this, it should
have worked also for Juhapekka, and there's something else.  However,
--disable does not work, it still gives the same error. 

debianize-updmap should also be a bit more verbose about which files it
edits. 

Regards, Frank
-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Reply to: