Bug#1143944: wireless-tools: libiw30t64 fails to install, conflicts with libiw30 on upgrade

Ahmed Alaoui <[email protected]>
Newsgroups gmane.linux.debian.devel.bugs.rc
Message-ID <CAG6PAWEfV5dPnZvCQUWaZzJYYRtL2maHfBpAsnzH33mnM_Rf=w@mail.gmail.com>
Package: wireless-tools
Version: 30~pre9-22
Severity: serious
Justification: fails to upgrade from testing

libiw30t64 fails to install when libiw30 is present, because the
Conflicts field hardcodes a version bound that the installed
libiw30 (e.g. 30~pre9-16+b1) does not satisfy:

  Conflicts: libiw30 (<< 30~pre9)

dpkg --compare-versions "30~pre9-16+b1" ge "30~pre9" is true, so the
conflict never triggers and libiw30t64 tries to overwrite a file still
owned by libiw30:

  dpkg: error processing archive .../libiw30t64_30~pre9-22_amd64.deb
(--unpack):
   trying to overwrite '/usr/lib/x86_64-linux-gnu/libiw.so.30', which is
   also in package libiw30:amd64 (30~pre9-16+b1)

Fix: use unconditional Conflicts/Replaces, since libiw30t64 and libiw30
can never coexist regardless of version:

  Conflicts: libiw30
  Replaces: libiw30

Reported by a user via email after upgrading from testing.

-- Ahmed Alaoui
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.