tags 328749 patch thanks Hilmar Preusse <[EMAIL PROTECTED]> wrote:
> Your package fails to install, when one has teTeX 3.0 from > experimental installed: Now that teTeX 3.0 is in unstable, this bug is RC. Here is a patch, for explanations please see the Debian TeX Policy in the tex-common package, or ask on debian-tetex-maint. Will you be able to do the upload soon? Regards, Frank diff -Nur xmltex-1.9.orig/debian/changelog xmltex-1.9/debian/changelog --- xmltex-1.9.orig/debian/changelog 2005-10-20 14:37:08.000000000 +0200 +++ xmltex-1.9/debian/changelog 2005-10-20 14:49:29.959066814 +0200 @@ -1,3 +1,15 @@ +xmltex (1.9-10.1) unreleased; urgency=low + + * In postinst, do not check for the created format files, because the + names have changed (and might change again). Instead, rely on + fmtutil-sys' return code, in accord with Debian TeX Policy (closes: + #328749) + * Change all invocations of fmtutil to fmtutil-sys + * Do not check for LaTeX/pdfLaTeX format files, they are provided if + tetex-bin is configured + + -- Frank Küster <[EMAIL PROTECTED]> Thu, 20 Oct 2005 14:49:29 +0200 + xmltex (1.9-10) unstable; urgency=high * debian/postinst,debian/postrm: updated to support .fmt as well as .efmt diff -Nur xmltex-1.9.orig/debian/postinst xmltex-1.9/debian/postinst --- xmltex-1.9.orig/debian/postinst 2005-10-20 14:37:08.000000000 +0200 +++ xmltex-1.9/debian/postinst 2005-10-20 14:49:00.161338049 +0200 @@ -68,8 +68,8 @@ baseformat=$(basename $1 .efmt) if ! kpsewhich $format > /dev/null ; then warn "WARNING: $format not found, attempting to reconstruct ..." - echo "running 'fmtutil --byfmt $baseformat'" >> $MYTMP - fmtutil --byfmt $baseformat >> $MYTMP + echo "running 'fmtutil-sys --byfmt $baseformat'" >> $MYTMP + fmtutil-sys --byfmt $baseformat >> $MYTMP if kpsewhich $format > /dev/null ; then warn "Success" else @@ -84,14 +84,14 @@ local goterror goterror=false - if ! fmtutil --byfmt xmltex >> $MYTMP + if ! fmtutil-sys --byfmt xmltex >> $MYTMP then - warn "ERROR: xmltex fmtutil failed" 1>&2 + warn "ERROR: xmltex fmtutil-sys failed" 1>&2 goterror=true fi - if ! fmtutil --byfmt pdfxmltex >> $MYTMP + if ! fmtutil-sys --byfmt pdfxmltex >> $MYTMP then - warn "ERROR: pdfxmltex fmtutil failed" 1>&2 + warn "ERROR: pdfxmltex fmtutil-sys failed" 1>&2 goterror=true fi if $goterror; then @@ -152,18 +152,14 @@ MYTMP=$(mktemp /tmp/xmltex-postinst.XXXXXX) : >| $MYTMP - echo -e "Checking for TeX format files we depend on ... \c" - checkfmt latex.fmt - checkfmt pdflatex.fmt - echo "done." - echo "Creating xmltex format files..." - if makexmltexfmt && xmltexfmtcheck; then + if makexmltexfmt; then + rm $MYTMP echo "Done." else - echo "Trying fmtutil --all" - fmtutil --all >>$MYTMP - if xmltexfmtcheck; then + echo "Trying fmtutil-sys --all" + if fmtutil-sys --all >>$MYTMP; then + rm $MYTMP echo " done." else echo "*** ERROR: can't make xmltex fmt files, bailing " -- Frank Küster Inst. f. Biochemie der Univ. Zürich Debian Developer