RPM Community Forums

Mailing List Message of <rpm-devel>

Obsoletes is buggy

From: Jeff Johnson <n3npq.jbj@gmail.com>
Date: Tue 14 Oct 2008 - 23:17:14 CEST
Message-Id: <FC7F1112-9564-4C1E-B4AC-53F21BE0401F@mac.com>
Consider these packages
	Name: A
and
	Name: B
	Obsoletes: A

There's an implicit assumption that B is installed after A.

So this sequence Does The Right Thing
	rpm -Uvh A*.rpm
	rpm -Uvh B*.rpm
while if the {A,B} install order is reversed, or both A and B are  
installed together,
then rpm Does The Wrong Thing.

There are (at least) two pieces to "fix":

1) apply Obsoletes: dependencies against the current transaction  
elements,
eliminating any elements that match the Obsoletes: with a warning.

2) make Obsoletes: persistent in an rpmdb, generating an Obsoletename  
table,
perhaps adding a --whatobsoletes query option. Hmm --whatconflicts is  
likely
needed too, not hard, just tedious. time to think a bit ...

Bugs R us today, todo++.

73 de Jeff
Received on Tue Oct 14 23:17:41 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.