[Rpm-maint] Commit fafd8090 (Dead code removal)

Michael Schroeder mls at suse.de
Tue Apr 13 08:24:07 UTC 2010

On Tue, Apr 13, 2010 at 09:51:12AM +0300, Panu Matilainen wrote:
> OTOH: are there cases where self-obsoletes, or conflicts for that matter, 
> that actually match the package itself ever make any sense at all? At 
> least I can't think of any.

The debian folks often use a self conflict to make sure just
one flavor of something is installed.

Example (made up):

    Provides: smtp_daemon
    Conflicts: smtp_daemon

    Provides: smtp_daemon
    Conflicts: smtp_daemon

That way you don't have to know in advance all of the flavors
of a capability. With rpm you need to explicitely enumerate them:

    Provides: smtp_daemon
    Conflicts: postfix exim ...

Or you need to rely on file conflicts, but those will be caught
much too late.


Michael Schroeder                                   mls at suse.de
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg

More information about the Rpm-maint mailing list