tags 669382 patch thanks Hi,
I've create a patch for this issue, make latex209-{bin,base} packages piuparts clean. Could you check attached patch, please? -- Regards, Hideki Yamane henrich @ debian.or.jp/org http://wiki.debian.org/HidekiYamane
diff -Nru latex209-25.mar.1992/debian/changelog latex209-25.mar.1992/debian/changelog --- latex209-25.mar.1992/debian/changelog 2012-05-18 15:08:59.000000000 +0900 +++ latex209-25.mar.1992/debian/changelog 2012-09-19 22:45:32.000000000 +0900 @@ -1,3 +1,20 @@ +latex209 (25.mar.1992-12.6) unstable; urgency=low + + * Non-maintainer upload, fix RC bug (Closes: #669382) + * debian/latex209-bin.{postrm,prerm} + - Fix "latex209-base: /etc/texmf/fmt.d/ owned by: texlive-latex-base, + texlive-base, tex-common" remove files in prerm and don't create .bak + file + * debian/latex209-base.{postinst,postrm} + - Fix "latex209-base: unowned file /usr/local/share/texmf/ls-R after + purge (policy 6.8, 9.1.2)": specify mktexlsr directory as /var/lib/texmf + See also Bug#607857 + * debian/latex209-bin.preinst + - add it to delete /usr/local/share/texmf if upgrade from previous + versions + + -- Hideki Yamane <henr...@debian.org> Wed, 19 Sep 2012 22:45:26 +0900 + latex209 (25.mar.1992-12.5) unstable; urgency=low * Non-maintainer upload. diff -Nru latex209-25.mar.1992/debian/latex209-base.postinst latex209-25.mar.1992/debian/latex209-base.postinst --- latex209-25.mar.1992/debian/latex209-base.postinst 2012-05-15 15:17:15.000000000 +0900 +++ latex209-25.mar.1992/debian/latex209-base.postinst 2012-09-19 22:46:48.000000000 +0900 @@ -22,11 +22,16 @@ # installation fails and the `postinst' is called with `abort-upgrade', # `abort-remove' or `abort-deconfigure'. -TEXMF=/usr/share/texmf +TEXMF="/var/lib/texmf" case "$1" in configure) - mktexlsr $TEXMF + tempfile=`mktemp -p /tmp mktexlsr.XXXXXXXX` + if updmap-sys --nohash > $tempfile 2>&1 ; then + #updmap-sys generates files under /var/lib/texmf/ + mktexlsr $TEXMF > $tempfile 2>&1 || exit 1 + fi + rm -f $tempfile ;; abort-upgrade|abort-remove|abort-deconfigure) ;; diff -Nru latex209-25.mar.1992/debian/latex209-base.postrm latex209-25.mar.1992/debian/latex209-base.postrm --- latex209-25.mar.1992/debian/latex209-base.postrm 2012-05-15 15:16:28.000000000 +0900 +++ latex209-25.mar.1992/debian/latex209-base.postrm 2012-09-19 22:47:07.000000000 +0900 @@ -16,13 +16,17 @@ # * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version> # for details, see /usr/doc/packaging-manual/ -TEXMF=/usr/share/texmf +TEXMF="/var/lib/texmf" case "$1" in remove|purge) - if [ -x /usr/bin/mktexlsr ]; then - mktexlsr $TEXMF - fi + tempfile=`mktemp -p /tmp mktexlsr.XXXXXXXX` + if updmap-sys --nohash > $tempfile 2>&1 ; then + #updmap-sys generates files under /var/lib/texmf/ + mktexlsr $TEXMF > $tempfile 2>&1 || exit 1 + fi + rm -f $tempfile + ;; upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; diff -Nru latex209-25.mar.1992/debian/latex209-bin.postrm latex209-25.mar.1992/debian/latex209-bin.postrm --- latex209-25.mar.1992/debian/latex209-bin.postrm 2010-04-06 10:50:14.000000000 +0900 +++ latex209-25.mar.1992/debian/latex209-bin.postrm 2012-09-19 22:24:53.000000000 +0900 @@ -19,15 +19,12 @@ case "$1" in purge) rm -f /etc/texmf/fmt.d/25latex209.cnf - rm -f /etc/texmf/fmt.d/25latex209.bak + [ ! -f /etc/texmf/fmt.d/25latex209.bak ] || rm -f /etc/texmf/fmt.d/25latex209.bak if [ -x /usr/sbin/update-fmtutil ]; then update-fmtutil fi ;; remove) - if [ -f /etc/texmf/fmt.d/25latex209.cnf ] ; then - mv -f /etc/texmf/fmt.d/25latex209.cnf /etc/texmf/fmt.d/25latex209.bak - fi if [ -x /usr/sbin/update-fmtutil ]; then update-fmtutil fi diff -Nru latex209-25.mar.1992/debian/latex209-bin.preinst latex209-25.mar.1992/debian/latex209-bin.preinst --- latex209-25.mar.1992/debian/latex209-bin.preinst 1970-01-01 09:00:00.000000000 +0900 +++ latex209-25.mar.1992/debian/latex209-bin.preinst 2012-09-19 22:22:31.000000000 +0900 @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +PKG_VERSION="25.mar.1992-12.6" + +case "$1" in +install|upgrade) + if dpkg --compare-versions "$2" lt-nl "$PKG_VERSION"; then + rm -rf /usr/local/share/texmf + fi +esac + +#DEBHELPER# +exit 0 + diff -Nru latex209-25.mar.1992/debian/latex209-bin.prerm latex209-25.mar.1992/debian/latex209-bin.prerm --- latex209-25.mar.1992/debian/latex209-bin.prerm 2010-04-06 10:50:48.000000000 +0900 +++ latex209-25.mar.1992/debian/latex209-bin.prerm 2012-09-19 21:47:02.000000000 +0900 @@ -16,15 +16,15 @@ # for details, see /usr/share/doc/packaging-manual/ case "$1" in - remove|upgrade|deconfigure) - rm -f /var/lib/texmf/web2c/latex209.fmt - rm -f /var/lib/texmf/web2c/latex209.log - if [ -x /usr/bin/mktexlsr ]; then - mktexlsr - fi + remove) + rm -f /etc/texmf/fmt.d/25latex209.cnf \ + /var/lib/texmf/web2c/latex209.fmt \ + /var/lib/texmf/web2c/latex209.log ;; - failed-upgrade) + + upgrade|deconfigure|failed-upgrade) ;; + *) echo "prerm called with unknown argument \`$1'" >&2 exit 0