Le vendredi 20 avril 2012 09:20:57, vous avez écrit : > Package: latex-xcolor > Version: 2.11-1 > Severity: serious > User: debian...@lists.debian.org > Usertags: piuparts > > Hi, > > during a test with piuparts I noticed your package left unowned files on > the system after purge, which is a violation of policy 6.8: > http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-removed > etails > > As putting files into /usr/local is also a violation of > http://www.debian.org/doc/debian-policy/ch-opersys.html#s9.1.2 > I'm setting the severity to serious. > > >>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. > > Otherwise run mktexlsr with the tree as argument where the package > installs its files, which is usually > mktexlsr /usr/share/texmf > > There has been some further discussion about these bugs in this thread: > http://lists.debian.org/debian-tex-maint/2012/04/msg00306.html > > Please have a look at the Debian-TeX-Policy (in the tex-common package) > for the current practice of handling TeX packages. For further TeX > packaging related questions contact debian-tex-ma...@lists.debian.org > > > cheers, > > Andreas
Here is a patch I made according to the suggestion of the thread named above. I'll find a DD to do an NMU in case you don't have the time to do the upload yourself. As recommanded by devref, I took care of only fixing this issue, All the best, Thomas Preud'homme
diff -u latex-xcolor-2.11/debian/rules latex-xcolor-2.11/debian/rules --- latex-xcolor-2.11/debian/rules +++ latex-xcolor-2.11/debian/rules @@ -72,6 +72,7 @@ binary-indep: build install dh_testdir dh_testroot + dh_prep dh_installchangelogs ChangeLog dh_installdocs dh_installexamples xcolor?.tex @@ -87,6 +88,7 @@ # dh_installinfo dh_installman dh_link + dh_installtex dh_strip dh_compress dh_fixperms diff -u latex-xcolor-2.11/debian/control latex-xcolor-2.11/debian/control --- latex-xcolor-2.11/debian/control +++ latex-xcolor-2.11/debian/control @@ -1,6 +1,6 @@ Source: latex-xcolor Section: tex -Build-Depends: debhelper (>= 4.0.0) +Build-Depends: debhelper (>= 4.0.0), tex-common Build-Depends-Indep: texlive-latex-base Priority: optional Maintainer: OHURA Makoto <oh...@debian.org> reverted: --- latex-xcolor-2.11/debian/postinst +++ latex-xcolor-2.11.orig/debian/postinst @@ -1,46 +0,0 @@ -#! /bin/sh -# postinst script for latex-xcolor -# -# see: dh_installdeb(1) - -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 http://www.debian.org/doc/debian-policy/ or -# the debian-policy package -# - -case "$1" in - configure) - - if [ -x /usr/bin/mktexlsr ] ; then - /usr/bin/mktexlsr - fi - - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 - - diff -u latex-xcolor-2.11/debian/changelog latex-xcolor-2.11/debian/changelog --- latex-xcolor-2.11/debian/changelog +++ latex-xcolor-2.11/debian/changelog @@ -1,3 +1,12 @@ +latex-xcolor (2.11-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * debian/rules: + - Call dh_installtex instead of mktexlsr in postinst to avoid creating + /usr/local/share/texmf/ls-R file (Closes: #669587). + + -- Thomas Preud'homme <robo...@celest.fr> Wed, 23 May 2012 17:07:57 +0200 + latex-xcolor (2.11-1) unstable; urgency=low * New upstream release reverted: --- latex-xcolor-2.11/debian/postrm +++ latex-xcolor-2.11.orig/debian/postrm @@ -1,40 +0,0 @@ -#! /bin/sh -# postrm script for latex-xcolor -# -# see: dh_installdeb(1) - -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 http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) - if [ -x /usr/bin/mktexlsr ] ; then - /usr/bin/mktexlsr - fi - - ;; - - *) - echo "postrm called with unknown argument \`$1'" >&2 - exit 1 - -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0
signature.asc
Description: This is a digitally signed message part.