It looks to me like the problem here is simply that "dbverify" is a very generic name being used for a very specific utility.

As far as I can tell, the 'dbverify' utility in Atheme is completely unrelated to that in 389-ds. Neither works as a replacement for the other. It is just a namespace clash. Therefore, I think a Replaces relation would be inappropriate here. Perhaps it would be possible to use Breaks on its own to make the situation be reflected properly in dependency handling?

The proper solution is for the utility to be either renamed or removed from the package. It is an administrative utility not called by anything else in Atheme, therefore this should not break anything except possibly administrators' local scripts - but Atheme's 'dbverify' does not exist prior to version 7.0.0 so this does not affect anything using a version from Debian stable/testing/unstable.

The attached patch renames the utility to "atheme-dbverify".

389-ds may also be at fault in this - I am not sure to what extent "dbverify" exists as a traditional name for a particular utility.

- Christopher Elsby

On Tue, 11 Nov 2014 20:16:25 +0100 Andreas Beckmann <a...@debian.org> wrote:
Package: atheme-services
Version: 7.0.7-1~exp0
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package fails to upgrade from
'sid' to 'experimental'.
It installed fine in 'sid', then the upgrade to 'experimental' fails
because it tries to overwrite other packages files without declaring a
Breaks+Replaces relation.

See policy 7.6 at
http://www.debian.org/doc/debian-policy/ch-relationships.html#s-replaces

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

  Selecting previously unselected package atheme-services.
  Preparing to unpack .../atheme-services_7.0.7-1~exp0_amd64.deb ...
  Unpacking atheme-services (7.0.7-1~exp0) ...
  dpkg: error processing archive 
/var/cache/apt/archives/atheme-services_7.0.7-1~exp0_amd64.deb (--unpack):
   trying to overwrite '/usr/sbin/dbverify', which is also in package 
389-ds-base 1.3.3.5-2
  Errors were encountered while processing:
   /var/cache/apt/archives/atheme-services_7.0.7-1~exp0_amd64.deb


cheers,

Andreas
Description: Rename dbverify utility to atheme-dbverify
 The name dbverify is overly generic and clashes with 389-ds.
 This is an administrative tool and not called by other parts of atheme.
Bug-Debian: https://bugs.debian.org/769145
Forwarded: no
Author: Christopher Elsby <chr...@chrise.me.uk>
Last-Update: 2015-03-18
Index: atheme-services-7.0.7/src/dbverify/Makefile
===================================================================
--- atheme-services-7.0.7.orig/src/dbverify/Makefile	2014-02-10 22:38:10.000000000 +0000
+++ atheme-services-7.0.7/src/dbverify/Makefile	2015-03-18 11:50:41.296103200 +0000
@@ -1,4 +1,4 @@
-PROG		= dbverify${PROG_SUFFIX}
+PROG		= atheme-dbverify${PROG_SUFFIX}
 HELP_LINGUAS	= es ru
 
 SRCS = main.c

Reply via email to