On Mon, Mar 05, 2001 at 05:04:59PM +0100, Jan Nieuwenhuizen wrote:
> José Romildo Malaquias <[EMAIL PROTECTED]> writes:
> 
> > The output of the latest is attached. Basicaly, mktextfm
> > is trying to write to the /usr/local/share/lilypond dir:
> > 
> >     mktextfm --destdir /usr/local/share/ lilypond/tfm  feta16
> > 
> > That is not allowed for a normal user.
> > 
> > Any hints?
> 
> Yes, TFM creation was changed to allow the TFM files to be created
> only once.  You need to prepend a lilypond directory you can write to,
> to your $TEXINPUTS and $TFMFONTS variables, eg,
> $HOME/usr/src/lilypond/tfm, or '.'
> 
> 17:01:46 appel ~/usr/src/lilypond$ echo $TEXINPUTS 
> .
> 17:01:52 appel ~/usr/src/lilypond$ echo $TFMFONTS 
> .
> 17:02:04 appel ~/usr/src/lilypond$ lilypond input/example-1.ly 
> [..]
> mktextfm: /home/fred/usr/share/lilypond/tfm/feta-nummer10.tfm: successfully 
>generated.
> 17:03:38 appel ~/usr/src/lilypond$ dvips -o x.ps example-1
> [..]
> mktexpk: /home/fred/usr/src/lilypond/feta20.600pk: successfully generated.
> 
> 
> See:
> 
>     http://mail.gnu.org/pipermail/gnu-music-discuss/2001-March/001213.html

  $ echo $TFMFONTS
  .
  $ echo $TEXINPUTS
  .
  $ make htmldoc
  [...]
  Running mktextfm --destdir /usr/local/share/lilypond/tfm  cmr8
  [...]

The patch http://www.cs.uu.nl/~hanwen/public/software/mktexnam-patch did
not applied cleanly in my system. The reject file is attached. As I am
not a kpathsea expert I do not know the details on how to change the file
/usr/share/texmf/web2c/mktexnam to correctly apply the patch. Note
that my texmf system is configured for writing the fonts in the
/var/lib/texmf/ directory.

Any sugestion?

Romildo
-- 
Prof. José Romildo Malaquias <[EMAIL PROTECTED]>
Departamento de Computação
Universidade Federal de Ouro Preto
Brasil
***************
*** 158,167 ****
        MT_PKDESTDIR=$DEST
        MT_TFMDESTDIR=$DEST
        MT_MFDESTDIR=$DEST
-       MT_DESTROOT=foobar
-       MT_NAMEPART=;;
     *) # Relative destdir => append to the default.
-       MT_NAMEPART=$DEST;;
  esac
  
  if test -z "$MT_DESTROOT"; then
--- 161,175 ----
        MT_PKDESTDIR=$DEST
        MT_TFMDESTDIR=$DEST
        MT_MFDESTDIR=$DEST
+ 
+       # make sure that the next IF (that overwrites MT_xxxDESTDIR) fails
+       MT_DESTROOT=foobar      
+       MT_NAMEPART=
+       ;;
+ 
     *) # Relative destdir => append to the default.
+       MT_NAMEPART=$DEST
+       ;;
  esac
  
  if test -z "$MT_DESTROOT"; then

Reply via email to