tag 669395 patch
thanks

On Thu, Apr 19, 2012 at 04:34:25PM +0200, Andreas Beckmann wrote:
[...]
>>>From the attached log (scroll to the bottom...):
>
> 0m53.8s ERROR: FAIL: Package purging left files on system:
>   /usr/local/share/texmf/        not owned
>   /usr/local/share/texmf/ls-R    not owned
>
> This problem is usually caused by running mktexlsr (or texhash) without
> path arguments from a maintainer script.
>
> The recommende solution is to switch to use dh_installtex and have this
> generate most (or perhaps even all) of the maintainer scripts content.

dh_installtex does indeed fix this.  If you're busy, I can do an NMU,
along with Bug#666645.

--- whizzytex-1.3.2~/debian/rules
+++ whizzytex-1.3.2/debian/rules
@@ -84,6 +84,7 @@
        dh_installman
        dh_installinfo -v debian/tmp-info/whizzytex.info*
        dh_installchangelogs CHANGES
+       dh_installtex
        dh_link
        dh_strip
        dh_compress
--- whizzytex-1.3.2~/debian/control
+++ whizzytex-1.3.2/debian/control
@@ -2,7 +2,7 @@
 Section: tex
 Priority: optional
 Maintainer: Junichi Uekawa <dan...@debian.org>
-Build-Depends-Indep: hevea (>= 1.08), texlive-pstricks, texlive-latex-extra, 
advi, texlive-latex-recommended
+Build-Depends-Indep: hevea (>= 1.08), texlive-pstricks, texlive-latex-extra, 
advi, texlive-latex-recommended, tex-common
 Build-Depends: debhelper (>> 3.0.0), dpatch
 Standards-Version: 3.7.2
 
--- whizzytex-1.3.2~/debian/postrm
+++ whizzytex-1.3.2/debian/postrm
@@ -5,35 +5,6 @@
 
 set -e
 
-# summary of how this script can be called:
-#        * <postrm> `remove'
-#        * <postrm> `purge'
-#        * <old-postrm> `upgrade' <new-version>
-#        * <new-postrm> `failed-upgrade' <old-version>
-#        * <new-postrm> `abort-install'
-#        * <new-postrm> `abort-install' <old-version>
-#        * <new-postrm> `abort-upgrade' <old-version>
-#        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
-# for details, see /usr/share/doc/debian-policy/
-
-TEXCONFIG=/usr/bin/mktexlsr
-
-case "$1" in
-    purge|remove|failed-upgrade|abort-install|abort-upgrade|disappear)
-       if [ -e $TEXCONFIG ]
-           then
-           $TEXCONFIG
-       fi  
-       
-        ;;
-    upgrade)
-       ;;
-    *)
-        echo "postrm called with unknown argument \`$1'" >&2
-        exit 0
-
-esac
-
 # dh_installdeb will replace this with shell code automatically
 # generated by other debhelper scripts.
 
--- whizzytex-1.3.2~/debian/postinst
+++ whizzytex-1.3.2/debian/postinst
@@ -5,44 +5,6 @@
 
 set -e
 
-# summary of how this script can be called:
-#        * <postinst> `configure' <most-recently-configured-version>
-#        * <old-postinst> `abort-upgrade' <new version>
-#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-#          <new-version>
-#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-#          <failed-install-package> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see /usr/share/doc/debian-policy/
-#
-# quoting from the policy:
-#     Any necessary prompting should almost always be confined to the
-#     post-installation script, and should be protected with a conditional
-#     so that unnecessary prompting doesn't happen if a package's
-#     installation fails and the `postinst' is called with `abort-upgrade',
-#     `abort-remove' or `abort-deconfigure'.
-
-TEXCONFIG=/usr/bin/mktexlsr
-
-case "$1" in
-    configure)
-       if [ -e $TEXCONFIG ]
-       then
-           $TEXCONFIG
-       fi   
-
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
 # dh_installdeb will replace this with shell code automatically
 # generated by other debhelper scripts.
 

Cheers,

Matej



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to