Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87581 - Can't build font tfm as non-root user using mktextfm with app-text/tetex-2.0.2-r5
Summary: Can't build font tfm as non-root user using mktextfm with app-text/tetex-2.0....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on: 124511
Blocks:
  Show dependency tree
 
Reported: 2005-04-01 09:43 UTC by Martin von Gagern
Modified: 2007-04-04 15:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2005-04-01 09:43:21 UTC
When I try to LaTeX a file that needs some fonts, I get many error messages and a missfont.log is created. If I just have a look at this and execute the given command, it looks like this:

Reproducible: Always
Steps to Reproduce:
1. mktextfm gttn0900

Actual Results:  
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode;
input gttn0900
This is METAFONT, Version 2.7182 (Web2C 7.4.5)

kpathsea: Running mktexmf gttn0900
/usr/bin/mktexmf: line 118: mf21244.tmp: Permission denied
chmod: cannot access `mf21244.tmp': No such file or directory
mv: cannot stat `mf21244.tmp': No such file or directory
mktexmf: /usr/share/texmf/fonts/source/public/cbgreek/gttn0900.mf: successfully
generated.
/usr/share/texmf/web2c/mktexupd:
/usr/share/texmf/fonts/source/public/cbgreek/gttn0900.mf not a file.
warning: kpathsea: mktexpk output
`/usr/share/texmf/fonts/source/public/cbgreek/gttn0900.mf' instead of a filename.
! I can't find file `gttn0900'.
<*> ...ljfour; mag:=1; nonstopmode; input gttn0900
                                                  
Please type another input file name
! Emergency stop.
<*> ...ljfour; mag:=1; nonstopmode; input gttn0900
                                                  
Transcript written on mfput.log.
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input
gttn0900' failed.


Expected Results:  
Font created somewhere in /var/cache/fonts where everybody has write permission.

/usr/share/texmf/fonts/source/public/cbgreek:
total 928
drwxr-xr-x   2 root root   4096 Jun  3  2004 .
drwxr-xr-x  28 root root   4096 Nov 10 10:41 ..
-rw-r--r--   1 root root  23852 Feb 11 14:10 cbaccent.mf
-rw-r--r--   1 root root  12718 Feb 11 14:10 cbbase.mf
-rw-r--r--   1 root root  39803 Feb 11 14:10 cbdigits.mf
-rw-r--r--   1 root root   1905 Feb 11 14:10 cbgreek.mf
-rw-r--r--   1 root root  12558 Feb 11 14:10 cblig.mf
...
-rw-r--r--   1 root root   4991 Feb 11 14:10 gttc.mf
-rw-r--r--   1 root root   4930 Feb 11 14:10 gtti.mf
-rw-r--r--   1 root root   4938 Feb 11 14:10 gttn.mf
-rw-r--r--   1 root root   4939 Feb 11 14:10 gtto.mf
-rw-r--r--   1 root root   4938 Feb 11 14:10 gttu.mf

/var/cache/fonts/:
total 24
drwxr-xr-x  5 root root 4096 Nov 10 10:43 .
drwxr-xr-x  6 root root 4096 Mar 29 08:44 ..
-rw-r--r--  1 root root 1002 Nov 10 10:43 ls-R
drwxrwxrwt  3 root root 4096 Jun 21  2004 pk
drwxrwxrwt  4 root root 4096 Jan  6 16:11 source
drwxrwxrwt  3 root root 4096 Jun 21  2004 tfm

I get this result even if I specify --destdir for mktextmf
Comment 1 Martin von Gagern 2005-04-03 15:59:13 UTC
Exporting "MT_FEATURES=nomfdrivers" seems a workaround.

Looking at "info kpathsea" one would probably want "fontmaps" configured in mktex.cnf, but as the referenced info documentation for fontname seems to be absent on my system, I don't know any details.
Comment 2 Martin Ehmsen (RETIRED) gentoo-dev 2006-05-25 05:06:48 UTC
This should be fixed in tetex-3.0 (if you don't have disabled font generation for users, in which case it is your own problem :-)
tetex-3.0_p1-r3 is very close to going stable, so I suggest you try that one out and see if it really is fixed.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-04-04 15:22:24 UTC
Closing as tetex-3.0_p1-r3 is stable now.