Bug#766750: libapache2-mod-apparmor: owned after purge (policy 6.8 + 10.7.3)

2015-05-02 Thread intrigeri
Control: tag -1 + pending

 The problem is rather that its postrm doesn't clean up the directories
 that are manually (as in: without any dh_* helper) created in its
 postinst. I'm on it.

Fixed in r1555 on the collab-maint/apparmor-experimental branch:
I installed the resulting libapache2-mod-apparmor in a sid chroot,
then purged it, and there was no /etc/apparmor.d left.


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



Bug#766750: libapache2-mod-apparmor: owned after purge (policy 6.8 + 10.7.3)

2015-05-02 Thread intrigeri
Hi,

intrigeri wrote (10 Nov 2014 16:57:46 GMT) :
 Holger Levsen wrote (25 Oct 2014 14:00:22 GMT) :
 0m32.3s ERROR: FAIL: Package purging left files on system:
   /etc/apparmor.d/   owned by: libapache2-mod-apparmor
   /etc/apparmor.d/disable/   not owned

 May you please test if the attached patch fixes this bug?

Actually this bug has nothing to do with #773870, since
libapache2-mod-apparmor doesn't use dh-apparmor.

The problem is rather that its postrm doesn't clean up the directories
that are manually (as in: without any dh_* helper) created in its
postinst. I'm on it.

Cheers,
--
intrigeri


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



Bug#766750: libapache2-mod-apparmor: owned after purge (policy 6.8 + 10.7.3)

2014-11-10 Thread intrigeri
Hi Holger,

Holger Levsen wrote (25 Oct 2014 14:00:22 GMT) :
 0m32.3s ERROR: FAIL: Package purging left files on system:
   /etc/apparmor.d/   owned by: libapache2-mod-apparmor
   /etc/apparmor.d/disable/   not owned

May you please test if the attached patch fixes this bug?

=== modified file 'debian/debhelper/postrm-apparmor'
--- debian/debhelper/postrm-apparmor	2012-06-11 21:40:33 +
+++ debian/debhelper/postrm-apparmor	2014-11-10 16:56:10 +
@@ -2,5 +2,7 @@
 rm -f /etc/apparmor.d/disable/#PROFILE# || true
 rm -f /etc/apparmor.d/force-complain/#PROFILE# || true
 rm -f /etc/apparmor.d/local/#PROFILE# || true
-rmdir /etc/apparmor.d/local 2/dev/null || true
+rmdir /etc/apparmor.d/disable 2/dev/null || true
+rmdir /etc/apparmor.d/local   2/dev/null || true
+rmdir /etc/apparmor.d 2/dev/null || true
 fi



Bug#766750: libapache2-mod-apparmor: owned after purge (policy 6.8 + 10.7.3)

2014-10-25 Thread Holger Levsen
Package: libapache2-mod-apparmor
Version: 2.9.0-1
Severity: important
User: debian...@lists.debian.org
Usertags: piuparts piuparts.d.o

Hi fellow maintainers,

as requested on IRC

During a test with piuparts I noticed your package left owned 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...):

0m32.3s ERROR: FAIL: Package purging left files on system:
  /etc/apparmor.d/   owned by: libapache2-mod-apparmor
  /etc/apparmor.d/disable/   not owned


cheers,
Holger
Start: 2014-10-18 23:10:17 UTC

Package: libapache2-mod-apparmor
Source: apparmor
Version: 2.9.0-1
Installed-Size: 78
Maintainer: Debian AppArmor Team pkg-apparmor-t...@lists.alioth.debian.org
Architecture: amd64
Depends: libapparmor1 (= 2.7.0~beta1+bzr1772), libc6 (= 2.4), apache2-api-20120211
Description: changehat AppArmor library as an Apache module
Homepage: http://apparmor.net/
Description-md5: a5901c8ca6f4b08d12fc507332ec3d1f
Tag: role::shared-lib
Section: httpd
Priority: extra
Filename: pool/main/a/apparmor/libapache2-mod-apparmor_2.9.0-1_amd64.deb
Size: 54034
MD5sum: a367612d1d235a9476d34a0359a40be5
SHA1: 9b7c07c403b1baf7176545e9afbaaa7aaba4b6aa
SHA256: 741bbe2b19a54bbaf128c993cde9e5f300bb1354efe9c71b85c9c9ebb89d6764

Executing: sudo env PYTHONPATH=/srv/piuparts.debian.org/lib/python2.7/dist-packages timeout -s INT -k 5m 35m /srv/piuparts.debian.org/sbin/piuparts --skip-logrotatefiles-test --warn-on-others --scriptsdir /etc/piuparts/scripts --no-eatmydata --allow-database --scriptsdir /etc/piuparts/scripts-leftovers --mirror 'http://mirror.bm.debian.org/debian/ main' --tmpdir /srv/piuparts.debian.org/tmp --arch amd64 -b /srv/piuparts.debian.org/slave/basetgz/sid_amd64.tar.gz -d sid --no-upgrade-test --apt libapache2-mod-apparmor=2.9.0-1
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 https://wiki.debian.org/piuparts/FAQ
0m0.0s INFO: The FAQ also explains how to contact us in case you think piuparts is wrong.
0m0.0s INFO: --
0m0.0s INFO: piuparts version 0.59 starting up.
0m0.0s INFO: Command line arguments: /srv/piuparts.debian.org/sbin/piuparts --skip-logrotatefiles-test --warn-on-others --scriptsdir /etc/piuparts/scripts --no-eatmydata --allow-database --scriptsdir /etc/piuparts/scripts-leftovers --mirror 'http://mirror.bm.debian.org/debian/ main' --tmpdir /srv/piuparts.debian.org/tmp --arch amd64 -b /srv/piuparts.debian.org/slave/basetgz/sid_amd64.tar.gz -d sid --no-upgrade-test --apt libapache2-mod-apparmor=2.9.0-1
0m0.0s INFO: Running on: Linux piu-slave-bm-a 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2 x86_64
0m0.0s DEBUG: Created temporary directory /srv/piuparts.debian.org/tmp/tmpgLJquA
0m0.0s DEBUG: Unpacking /srv/piuparts.debian.org/slave/basetgz/sid_amd64.tar.gz into /srv/piuparts.debian.org/tmp/tmpgLJquA
0m0.0s DEBUG: Starting command: ['tar', '-C', '/srv/piuparts.debian.org/tmp/tmpgLJquA', '-zxf', '/srv/piuparts.debian.org/slave/basetgz/sid_amd64.tar.gz']
0m2.2s DEBUG: Command ok: ['tar', '-C', '/srv/piuparts.debian.org/tmp/tmpgLJquA', '-zxf', '/srv/piuparts.debian.org/slave/basetgz/sid_amd64.tar.gz']
0m2.2s DEBUG: Starting command: ['chroot', '/srv/piuparts.debian.org/tmp/tmpgLJquA', 'mount', '-t', 'proc', 'proc', '/proc']
0m2.3s DEBUG: Command ok: ['chroot', '/srv/piuparts.debian.org/tmp/tmpgLJquA', 'mount', '-t', 'proc', 'proc', '/proc']
0m2.3s DEBUG: sources.list:
  deb http://mirror.bm.debian.org/debian/ sid main
0m2.3s DEBUG: Created policy-rc.d and chmodded it.
0m2.3s DEBUG: Starting command: ['chroot', '/srv/piuparts.debian.org/tmp/tmpgLJquA', 'apt-get', 'update']
0m7.8s DUMP: 
  Get:1 http://mirror.bm.debian.org sid InRelease [242 kB]
  Get:2 http://mirror.bm.debian.org sid/main amd64 Packages [7046 kB]
  Get:3 http://mirror.bm.debian.org sid/main Translation-en [4792 kB]
  Fetched 12.1 MB in 3s (3484 kB/s)
  Reading package lists...
0m7.8s DEBUG: Command ok: ['chroot', '/srv/piuparts.debian.org/tmp/tmpgLJquA', 'apt-get', 'update']
0m7.8s DEBUG: Starting command: ['chroot', '/srv/piuparts.debian.org/tmp/tmpgLJquA', 'apt-get', '-yf', 'dist-upgrade']
0m8.6s DUMP: 
  Reading package lists...
  Building dependency tree...
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0m8.6s DEBUG: Command ok: ['chroot', '/srv/piuparts.debian.org/tmp/tmpgLJquA', 'apt-get', '-yf', 'dist-upgrade']
0m8.6s DEBUG: Copying scriptsdir /etc/piuparts/scripts to /srv/piuparts.debian.org/tmp/tmpgLJquA/tmp/scripts/
0m8.6s DEBUG: Copying scriptsdir /etc/piuparts/scripts-leftovers to /srv/piuparts.debian.org/tmp/tmpgLJquA/tmp/scripts/
0m8.6s INFO: Running scripts