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

Bug#177094: tetex-bin: /var/cache/fonts problems: mode query and /etc/texmf/texmf.d patch for texconfig



Package: tetex-bin
Version: 1.0.7+20021025-8
Severity: normal
Tags: patch

(1) I think you want to install a world-writable /var/cache/fonts/ls-R when you create 
    /var/cache/fonts.  Otherwise you get errors like:
        Font metrics written on cmti10.tfm.
        Output written on cmti10.300gf (128 characters, 13592 bytes).
        Transcript written on cmti10.log.
        mktexlsr: /var/cache/fonts: directory not writable. Skipping...
        /usr/share/texmf/web2c/mktexupd: /var/cache/fonts/ls-R unwritable.
        mktexpk: /var/cache/fonts/pk/ricoh/public/cm/cmti10.300pk: successfully generated.
        kpathsea: Running mktexpk --mfmode ricoh --bdpi 300 --mag 1+0/300 --dpi 300 cmss10

(2) Missing ".cnf" extension in the code.

(3) I think that texconfig ought to check the permissions on /var/cache/fonts and perhaps its 
    subdirs, when /var/cache/fonts exists, rather than just assuming everything is OK and exiting.


The following patch fixes (1) and (2) but not (3).


--- texconfig.orig	2003-01-16 03:03:30.000000000 -0500
+++ texconfig	2003-01-16 21:01:26.000000000 -0500
@@ -1517,7 +1517,10 @@
   test -d "$vardir/source" ||
     { mkdir "$vardir/source" && chmod 1777 "$vardir/source"; } || return 1
 
-  config_replace "/etc/texmf/texmf.d/05TeXMF" '^VARTEXFONTS' "VARTEXFONTS  = $vardir"
+  mktexlsr "$vardir"
+  chmod 666 "$vardir/ls-R"
+
+  config_replace "/etc/texmf/texmf.d/05TeXMF.cnf" '^VARTEXFONTS' "VARTEXFONTS  = $vardir"
   test -x /usr/sbin/update-texmf && /usr/sbin/update-texmf || return 1
 }
 

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux beth 2.4.20 #1 Wed Jan 15 16:59:59 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages tetex-bin depends on:
ii  debconf                 1.2.21           Debian configuration management sy
ii  debianutils             1.16.7           Miscellaneous utilities specific t
ii  dpkg                    1.10.9           Package maintenance system for Deb
ii  ed                      0.2-19           The classic unix line editor
ii  libc6                   2.2.5-14.3       GNU C Library: Shared libraries an
ii  libkpathsea3            1.0.7+20021025-8 shared libkpathsea for teTeX
ii  libpng12-0              1.2.5-5          PNG library - runtime
ii  libwww-ssl0 [libwww0]   5.4.0-5          The W3C-WWW library (SSL support)
ii  libxaw7                 4.2.1-3          X Athena widget set library
ii  t1lib1                  1.3.1-1          Type 1 font rasterizer library - r
ii  tetex-base              1.0.2+20021025-7 basic teTeX library files
ii  xlibs                   4.2.1-3          X Window System client libraries
ii  zlib1g                  1:1.1.4-6        compression library - runtime

-- debconf information:
  tetex-bin/oldcfg: true
* tetex-bin/cnf_name: 
* tetex-bin/lsr-perms: true
* tetex-bin/userperm: false
* tetex-bin/groupname: users
* tetex-bin/groupperm: true




Reply to: