[Rpm-maint] RPM 4.12.0 alpha released

Michael Schroeder mls at suse.de
Fri Jul 4 09:34:02 UTC 2014

On Thu, Jul 03, 2014 at 03:17:22PM -0500, Mark Hatle wrote:
> On 6/27/14, 9:41 AM, Panu Matilainen wrote:
>> - Support for weak dependency tags (suggests, recommends etc)
> I finally got a chance to look at this, and I'm a bit concerned with what is there.
> The 'SUGGESTS' and 'ENHANCES' combo should be using the Requires/Provides 
> with the RPMSENSE_MISSINGOK.  This way they are ignored when not available, 
> but directly affect the installer ordering during dependency resolution.

RPMSENSE_MISSINGIOK is a hack and storing Enhances with the Provides
dependencies makes no sense at all. It's much cleaner to use different
tags instead of trying to force them into existing tags. And we need
to support four groups (Suggests,Recommends,Enhances,Supplements).

The dep solver (i.e. the application on top of rpm) mostly uses
repository metadata and thus does not care much about where the
deps are stored inside rpm.

Rpm itself uses dependencies both for verification and ordering
purposes. For verification, the dependencies are not needed at all,
as they can always be broken. Thus ordering remains. We (SUSE)
currently ignore weak deps in the ordering step, and I don't know
of any ordering issue (we have them since 2006).

> I know the complaint in the past is third party tools don't know how to 
> process MISSINGOK.  (IMHO that's a bug in the external tools, they should 
> be updated.) One alternative could be to use the new weak dependency tags 
> and 'adapt' them to the MISSINGOK internally so that the dep solver could 
> continue to work as it has.  (It still causes some issues for me with the 
> actual package contents/format though.)
> Note: rpm 'suggests' had previously been implemented to work the same way 
> that 'recommends' was implemented in Debian.. so the swap in names may be a 
> bit confusing -- but the purpose is that this is something that should be 
> installed if available, but not fail.
> the other, 'recommends', was something that was added to work like 
> 'suggests' from Debian.  It's just suggested to the user, but does affect 
> the install in any way.

As said, SUSE uses suggests/recommends since 2006 in a Debian
compatible way, it makes no sense to use to swap them.


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

More information about the Rpm-maint mailing list