Bug#731638: ulogd2: Incomplete handover of /var/log/ulogd ownership from ulogd

2014-04-13 Thread Chris Boot
Control: tags -1 wontfix

On 07/12/13 17:57, Sam Morris wrote:
> Upon installing ulogd2 on a system that formerly ran ulogd:
>
>   # apt-get install -t testing ulogd2
[snip]
> Note that ulogd was removed rather than upgraded; therefore its postrm
> script will still remove /var/log/ulog if purged. I don't see how to fix
> this other than to have one of ulogd2's maintainer scripts nuke the
> offending lines from ulogd.postrm.

This situation is covered if you upgrade the ulogd package, which is a
transitional package that depends on ulogd2, rather than just installing
ulogd2. This will remove ulogd's postrm script, which will prevent it
from removing the log directory.

Modifying files under /var/lib/dpkg/info is not something I'm prepared
to do, and is most likely a very serious policy violation.

Cheers,
Chris

-- 
Chris Boot
deb...@bootc.net
GPG: 8467 53CB 1921 3142 C56D  C918 F5C8 3C05 D9CE 


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



Bug#731638: ulogd2: Incomplete handover of /var/log/ulogd ownership from ulogd

2013-12-07 Thread Sam Morris
Package: ulogd2
Version: 2.0.2-4
Severity: normal

Upon installing ulogd2 on a system that formerly ran ulogd:

# apt-get install -t testing ulogd2
Reading package lists... Done
Building dependency tree   
Reading state information... Done
The following extra packages will be installed:
  libmnl0 libnetfilter-acct1 libnetfilter-conntrack3 libnetfilter-log1
Suggested packages:
  ulogd2-dbi ulogd2-mysql ulogd2-pgsql ulogd2-pcap ulogd2-sqlite3
The following packages will be REMOVED:
  ulogd
The following NEW packages will be installed:
  libmnl0 libnetfilter-acct1 libnetfilter-conntrack3 libnetfilter-log1 
ulogd2
0 upgraded, 5 newly installed, 1 to remove and 2 not upgraded.
Need to get 173 kB of archives.
After this operation, 474 kB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://http.debian.net/debian/ wheezy/main libmnl0 i386 1.0.3-3 
[12.1 kB]   
Get:2 http://http.debian.net/debian/ jessie/main libnetfilter-acct1 
i386 1.0.2-1 [7,296 B]
Get:3 http://http.debian.net/debian/ wheezy/main 
libnetfilter-conntrack3 i386 1.0.1-1 [39.5 kB]
Get:4 http://http.debian.net/debian/ wheezy/main libnetfilter-log1 i386 
1.0.0-1 [9,178 B]
Get:5 http://http.debian.net/debian/ jessie/main ulogd2 i386 2.0.2-4 
[105 kB]
Fetched 173 kB in 4s (41.5 kB/s) 
(Reading database ... 57648 files and directories currently installed.)
Removing ulogd ...
[ ok ] Stopping ulogd (via systemctl): ulogd.service.
Processing triggers for man-db ...
Selecting previously unselected package libmnl0:i386.
(Reading database ... 57623 files and directories currently installed.)
Unpacking libmnl0:i386 (from .../libmnl0_1.0.3-3_i386.deb) ...
Selecting previously unselected package libnetfilter-acct1:i386.
Unpacking libnetfilter-acct1:i386 (from 
.../libnetfilter-acct1_1.0.2-1_i386.deb) ...
Selecting previously unselected package libnetfilter-conntrack3:i386.
Unpacking libnetfilter-conntrack3:i386 (from 
.../libnetfilter-conntrack3_1.0.1-1_i386.deb) ...
Selecting previously unselected package libnetfilter-log1.
Unpacking libnetfilter-log1 (from 
.../libnetfilter-log1_1.0.0-1_i386.deb) ...
Selecting previously unselected package ulogd2.
Unpacking ulogd2 (from .../ulogd2_2.0.2-4_i386.deb) ...
Processing triggers for man-db ...
Setting up libmnl0:i386 (1.0.3-3) ...
Setting up libnetfilter-acct1:i386 (1.0.2-1) ...
Setting up libnetfilter-conntrack3:i386 (1.0.1-1) ...
Setting up libnetfilter-log1 (1.0.0-1) ...
Setting up ulogd2 (2.0.2-4) ...
Installing new version of config file /etc/ulogd.conf ...
adduser: Warning: The home directory `/var/log/ulog' does not belong to 
the user you are currently creating.
insserv: script ulogd2: service ulogd already provided!
insserv: script ulogd: service ulogd already provided!
[ ok ] Starting ulogd2 (via systemctl): ulogd2.service.

Note that ulogd was removed rather than upgraded; therefore its postrm
script will still remove /var/log/ulog if purged. I don't see how to fix
this other than to have one of ulogd2's maintainer scripts nuke the
offending lines from ulogd.postrm.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (540, 'testing'), (530, 'unstable'), (520, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


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