Bug#527614: owned and unowned files after purge (policy 6.8 + 10.7.3)

2009-06-02 Thread Chris Taylor
tag 527614 patch
thanks

The following patch should fix this bug. It adds the file 
debian/emile-bootblocks.postrm which
will call rm -rf on /boot/emile and /lib/emile when package is being purged.


-Chris

--- /dev/null
+++ b/debian/emile-bootblocks.postrm
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+case $1 in
+purge)
+rm -rf /boot/emile
+rm -rf /lib/emile
+;;
+esac
+#DEBHELPER#
+exit 0



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



Bug#527614: owned and unowned files after purge (policy 6.8 + 10.7.3)

2009-05-08 Thread Holger Levsen
Package: emile-bootblocks
Version: 0.11-2
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts piuparts.d.o

Hi, 

during a test with piuparts I noticed your package left owned and 
unowned files on the system after purge, which is a violation of policy 6.8 
and 10.7.3:

http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-removedetails
http://www.debian.org/doc/debian-policy/ch-files.html#s10.7.3

From the attached log (scroll to the bottom...):

0m25.0s ERROR: FAIL: Package purging left files on system:
  /boot/emileowned by: emile-bootblocks
  /boot/emile/second_scsinot owned
  /lib/emile owned by: emile-bootblocks
  /lib/emile/second_floppy   not owned


regards,
Holger
Start: 2009-04-08 11:32:24 UTC

Package: emile-bootblocks
Priority: optional
Section: admin
Installed-Size: 180
Maintainer: Debootloaders EMILE Maintainers Team debootloaders-em...@lists.alioth.debian.org
Architecture: all
Source: emile
Version: 0.11-2
Filename: pool/main/e/emile/emile-bootblocks_0.11-2_all.deb
Size: 52246
MD5sum: 60f3ea1a326a8609b2aaf4747dfec0e3
SHA1: e3f01e88f1567e31aec74a5e97517523c4b85a44
SHA256: d2bf75c3c6564e53cd49df903f7e367b3dcb8370186eb18687f572ee92f2f8b7
Description: Boot blocks for EMILE, the Early Mac Image LoadEr
 EMILE provides a way to natively boot Macintosh computers which
 normally require Penguin to boot.
 .
 It is however still in an unfinished state; users unfamiliar with Linux
 should note that Penguin currently is a more safe option.
 .
 This package contains the boot blocks which are written to disk by
 EMILE; to install and manage the boot blocks, please install the emile
 package.
Homepage: http://emile.sourceforge.net/
Tag: admin::boot, implemented-in::c, interface::commandline

Executing: sudo /org/piuparts.debian.org/sbin/piuparts --no-symlinks --scriptsdir /etc/piuparts/scripts/ --tmpdir /org/piuparts.debian.org/tmp -ad sid -b sid.tar.gz emile-bootblocks
Guessed: debian
0m0.0s INFO: --
0m0.0s INFO: To quickly glance what went wrong, scroll down to the bottom of this logfile.
0m0.0s INFO: FAQ available at http://wiki.debian.org/piuparts/FAQ
0m0.0s INFO: --
0m0.0s INFO: piuparts version 0.36~20090408 starting up.
0m0.0s INFO: Command line arguments: /org/piuparts.debian.org/sbin/piuparts --no-symlinks --scriptsdir /etc/piuparts/scripts/ --tmpdir /org/piuparts.debian.org/tmp -ad sid -b sid.tar.gz emile-bootblocks
0m0.0s INFO: Running on: Linux piatti 2.6.29.1-dsa-amd64 #2 SMP Sun Apr 5 00:16:11 CEST 2009 x86_64
0m0.0s DEBUG: Created temporary directory /org/piuparts.debian.org/tmp/tmpFXElva
0m0.0s DEBUG: Unpacking sid.tar.gz into /org/piuparts.debian.org/tmp/tmpFXElva
0m0.0s DEBUG: Starting command: ['tar', '-C', '/org/piuparts.debian.org/tmp/tmpFXElva', '-zxf', 'sid.tar.gz']
0m3.1s DEBUG: Command ok: ['tar', '-C', '/org/piuparts.debian.org/tmp/tmpFXElva', '-zxf', 'sid.tar.gz']
0m3.1s DEBUG: Created policy-rc.d and chmodded it.
0m3.1s DEBUG: Starting command: ['chroot', '/org/piuparts.debian.org/tmp/tmpFXElva', 'apt-get', 'update']
0m13.1s DUMP: 
  Get:1 http://ftp.fi.debian.org sid Release.gpg [197B]
  Get:2 http://ftp.fi.debian.org sid Release [93.2kB]
  Get:3 http://ftp.fi.debian.org sid/main Packages/DiffIndex [2038B]
  Get:4 http://ftp.fi.debian.org sid/main Packages [7567kB]
  Fetched 7662kB in 1s (4796kB/s)
  Reading package lists...
0m13.1s DEBUG: Command ok: ['chroot', '/org/piuparts.debian.org/tmp/tmpFXElva', 'apt-get', 'update']
0m13.1s DEBUG: Starting command: ['chroot', '/org/piuparts.debian.org/tmp/tmpFXElva', 'mount', '-t', 'proc', 'proc', '/proc']
0m13.2s DEBUG: Command ok: ['chroot', '/org/piuparts.debian.org/tmp/tmpFXElva', 'mount', '-t', 'proc', 'proc', '/proc']
0m13.2s DEBUG: Starting command: ['chroot', '/org/piuparts.debian.org/tmp/tmpFXElva', 'apt-get', '-yf', 'upgrade']
0m20.8s DUMP: 
  Reading package lists...
  Building dependency tree...
  Reading state information...
  The following packages have been kept back:
debianutils
  The following packages will be upgraded:
base-passwd coreutils grep libc6 libncurses5 libpam-modules libpam-runtime
libpam0g libslang2 lsb-base mktemp ncurses-base ncurses-bin tar tzdata
  15 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
  Need to get 13.7MB of archives.
  After this operation, 16.4kB of additional disk space will be used.
  WARNING: The following packages cannot be authenticated!
coreutils grep mktemp ncurses-bin tar libc6 base-passwd libncurses5
ncurses-base libpam-modules libpam-runtime libpam0g libslang2 lsb-base
tzdata
  Authentication warning overridden.
  Get:1 http://ftp.fi.debian.org sid/main coreutils 7.2-1 [4832kB]
  Get:2 http://ftp.fi.debian.org sid/main grep 2.5.4-4 [317kB]
  Get:3 http://ftp.fi.debian.org sid/main mktemp 1.6-3 [11.7kB]
  Get:4