reassign 343104 jadetex tags 343104 patch thank
On Mon, 12 Dez 2005, Marko Kaiser wrote: > Warning: fmtutil is being run as root; fmtutil-sys should probably be > used instead. If this is done by a Debian package upon installation, > upgrade, or removal, please file a bug against that package. This is not a but in tetex, but in jadetex. Dear jadetex maintainers: Your postinst script is very close to work with tetex2 and tetex3, but there was small miss: YOu define the variable fmtutil=fmtutil and if fmtutil-sys is present, then you redefine it to fmtutil=fmtutil-sys But later on you call fmtutil instead of $fmtutil Attached patch fixes your postinst script: Best wishes Norbert ------------------------------------------------------------------------------- Dr. Norbert Preining <preining AT logic DOT at> Università di Siena gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 ------------------------------------------------------------------------------- Arthur's consciousness approached his body as from a great distance, and reluctantly. It had had some bad times in there. Slowly, nervously, it entered and settled down into its accustomed position. Arthur sat up. `Where am I?' he said. `Lord's Cricket Ground,' said Ford. `Fine,' said Arthur, and his consciousness stepped out again for a quick breather. His body flopped back on the grass. --- Arthur coping with his return to Earth as best as he --- could. --- Douglas Adams, The Hitchhikers Guide to the Galaxy
--- postinst 2005-12-13 08:39:32.000000000 +0100 +++ jadetex.postinst.fixed 2005-12-12 22:11:45.000000000 +0100 @@ -58,10 +58,13 @@ checkfmt ( ) { format=$1 baseformat=`basename $1 .fmt` + fmtutil=fmtutil + if [ -x /usr/bin/fmtutil-sys ]; then fmtutil=fmtutil-sys; fi + if ! ( kpsewhich $baseformat.fmt || kpsewhich $baseformat.efmt ) > /dev/null ; then warn "WARNING: memory dump $format not found, attempting to reconstruct ..." - echo "running 'fmtutil --byfmt $baseformat'" >> $MYTMPFILE - fmtutil --byfmt $baseformat >> $MYTMPFILE + echo "running '$fmtutil --byfmt $baseformat'" >> $MYTMPFILE + $fmtutil --byfmt $baseformat >> $MYTMPFILE if kpsewhich $format > /dev/null ; then warn " ok, reconstructed" else @@ -90,9 +93,9 @@ warn "or else purge then reinstall this package to restore default configuration." return 0 else - log "running 'fmtutil --byfmt $fmt'..." - if ! fmtutil --byfmt $fmt >> $MYTMPFILE; then - warn "ERROR: $fmt fmtutil failed" + log "running '$fmtutil --byfmt $fmt'..." + if ! $fmtutil --byfmt $fmt >> $MYTMPFILE; then + warn "ERROR: $fmt $fmtutil failed" return 1 else log "successfully created $fmt memory dump"