Re: Bug#4947: dpkg doesn't handle complex Replaces properly
Chris Fearnley wrote:
>
> Package: dpkg
> Version: 1.4.0.3
>
> 'Erik B. Andersen wrote:'
> >
> >It was pointed out to me that elvis 2.0-5 conflicts with the old versions
> >of elvis, but it does not replace them. Soooo, I quickly adjusted the
> >control file so that it now includes:
> >
> > Replaces: elvisnox, elvisx11, elviscmn
> > Conflicts: elvisnox, elvisx11, elviscmn
> >
> >I installed both elviscmn and elvisnox, and proceeded to try installing
> >the new package. I expected the old packages to be removed, and the new
> >elvis package to replace them. This is what happened:
>
> Wow, you are good! A developer who tests before releasing.
>
> > Dillweed:root% dpkg -i elvis_2.0-6_i386.deb
> > dpkg: considering removing elvisnox in favour of elvis ...
> > dpkg: yes, will remove elvisnox in favour of elvis.
> > dpkg: regarding elvis_2.0-6_i386.deb containing elvis:
> > elvis conflicts with elviscmn
> > elviscmn (version 2.0-4) is installed.
> > dpkg: error processing elvis_2.0-6_i386.deb (--install):
> > conflicting packages - not installing elvis
> > Errors were encountered while processing:
> > elvis_2.0-6_i386.deb
>
>
****[ Stuff snipped ]****
> Wait, as a last minute inspiration before I send this: Would a
> "Provides: elviscmn" solve the problem? My guess is yes. ...
>
Unfortunatly, the answer is no. I tried it, and it doesn't work! Until
dpkg gets bug #4947 fixed, I am not going to release elvis 2.0-6. I think
this is a fairly serious bug though. dpkg should be able to handle these
sort of complex dependancies, and the order in which both conflicts and
replaces are listed should be irrelevant. If this is not fixed soon, we
may have some nasty problems developing. For the time being, elvis 2.0-5
works just fine, if you first purge elviscmn and its friends...
I think this should be fixed before Debian 1.2!!
-Erik
--
Erik B. Andersen Web: http://www.et.byu.edu/~andersee/
2485 South State St. email: andersee@et.byu.edu
Springville, Ut 84663 phone: (801) 489-1231
--This message was written using 73% post-consumer electrons--
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com
Reply to: