Bug#32635: URGENT: dpkg Conflicts & Replaces errors
dpkg fails to install a package if it conflicts & replaces more than one
package at a time !
It's a big problem for me because I'm willing to package util-linux 2.9g-6 for
sparc (slink release) and this one has to replace 2 packages: fdisk & clock
(previously dedicated to sparc but now provided by util-linux).
Therefore I added fdisk & clock to the Conflicts & Replaces fields of
util-linux but I cannot install it :-((
I tried to track down this problem. It seems this is the call to
<check_conflict> (process_archive (processarc.c) around the line #249) which
is the culprit by providing only one cell to store the <conflictor> package.
However my knowledge of dpkg is so limited that I don't know how to fix it.
You can reproduce this problem by making 3 dumb packages: p1, p2, p3 (I
attached a diff file with their Debian's control file so you can build them
with dpkg --build command immediately).
Install p1 & p2, then try to install p3 (it conflicts & remplaces p1 & p2).
# dpkg -i p3.deb
Selecting previously deselected package p3.
dpkg: considering removing p1 in favour of p3 ...
dpkg: yes, will remove p1 in favour of p3.
dpkg: regarding p3.deb containing p3:
p3 conflicts with p2
p2 (version 1) is installed.
dpkg: error processing p3.deb (--install):
conflicting packages - not installing p3
Errors were encountered while processing:
Is there a chance to see this bug fixed in slink ?
Thanks in advance.
Eric Delaunay | "La guerre justifie l'existence des militaires.
email@example.com | En les supprimant." Henri Jeanson (1900-1970)
--- TEST/p1/DEBIAN/control Thu Jan 1 01:00:00 1970
+++ TEST/p1/DEBIAN/control Sat Jan 30 22:06:56 1999
@@ -0,0 +1,8 @@
--- TEST/p2/DEBIAN/control Thu Jan 1 01:00:00 1970
+++ TEST/p2/DEBIAN/control Sat Jan 30 22:07:08 1999
@@ -0,0 +1,8 @@
--- TEST/p3/DEBIAN/control Thu Jan 1 01:00:00 1970
+++ TEST/p3/DEBIAN/control Sat Jan 30 22:29:07 1999
@@ -0,0 +1,10 @@
+Conflicts: p1, p2
+Replaces: p1, p2