Package: debhelper Version: 7.3.15 Severity: normal While examining piuparts log for one of my packages (xfonts-thai-nectec):
http://piuparts.debian.org/sid/fail/xfonts-thai-nectec_1:1.2.5-5.log the error detected was: ---8<--- 0m29.3s ERROR: FAIL: Package purging left files on system: /usr/share/fonts owned by: xfonts-utils, xfonts-thai-nectec, xfonts-encodings /usr/share/fonts/X11 owned by: xfonts-utils, xfonts-thai-nectec, xfonts-encodings /usr/share/fonts/X11/misc owned by: xfonts-thai-nectec /usr/share/fonts/X11/misc/fonts.alias not owned ---8<--- When checking the test sequence, this was what was done: - dpkg --remove xfonts-encodings [not removed, due to dependency] - dpkg --remove xfonts-utils [not removed, due to dependency] - ... remove other dependencies ... [not removed, due to dependency] - dpkg --remove xfonts-thai-nectec [removed] - dpkg --remove --pending [dependencies removed] - dpkg --purge xfonts-encodings \ - dpkg --purge xfonts-utils > [purged as expected] - ... purge other dependencies ... / - dpkg --purge xfonts-thai-nectec [conffiles purged, except the fonts.alias] The generated postrm for xfonts-thai-nectec was: ---8<--- # Automatically added by dh_installxfonts if [ -x "`which update-fonts-dir 2>/dev/null`" ]; then update-fonts-dir --x11r7-layout misc;update-fonts-alias misc fi # End automatically added section ---8<--- With xfonts-utils being removed before, the update-fonts-dir command is not available. So, the script does nothing. And fonts.alias is not cleaned as expected. This also happens to many other X fonts packages, for example: http://piuparts.debian.org/sid/fail/xfonts-100dpi_1:1.0.0-4.log http://piuparts.debian.org/sid/fail/xfonts-knickers_0.0.1-6.log http://piuparts.debian.org/sid/fail/xfonts-cmex-big5p_0.1-5.2.log http://piuparts.debian.org/sid/fail/xfonts-terminus_4.28-1.log http://piuparts.debian.org/sid/fail/xfonts-terminus-dos_4.28-1.log And from policy 7.2, in the 'Depends' description: "...Note, however, that the postrm cannot rely on any non-essential packages to be present during the purge phase..." It seems dh_installxfonts is generating postrm which breaks this policy. -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores) Locale: LANG=th_TH.UTF-8, LC_CTYPE=th_TH.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages debhelper depends on: ii binutils 2.19.51.20090805-1 The GNU assembler, linker and bina ii dpkg-dev 1.15.3.1 Debian package development tools ii file 5.03-1 Determines file type using "magic" ii html2text 1.3.2a-14 advanced HTML to text converter ii man-db 2.5.5-3 on-line manual pager ii perl 5.10.0-25 Larry Wall's Practical Extraction ii perl-base 5.10.0-25 minimal Perl system ii po-debconf 1.0.16 tool for managing templates file t debhelper recommends no packages. Versions of packages debhelper suggests: ii dh-make 0.48 tool that converts source archives -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org