RPM Community Forums

Mailing List Message of <rpm-devel>

Re: new DISTEPOCH tag and cleaning of RELEASE tag polution

From: Ralf S. Engelschall <rse+rpm-devel@rpm5.org>
Date: Sun 21 Dec 2008 - 10:14:43 CET
Message-ID: <20081221091442.GA46551@engelschall.com>
On Sun, Dec 21, 2008, Jeff Johnson wrote:

> On Dec 21, 2008, at 3:28 AM, Jeff Johnson wrote:
>
>> Time to get out of the briar patch methinks.
>
> Since we're on the topic of EVR diddle-up's anyways ...
>
> There's a (fairly sensible imho) OpenPKG patch to treat '*'
> as a wildcard suffix for V or R comparisons.
>
> So
>     Requires: rpm = 4.4.2*
> will match
>     Provides: rpm = 4.4.2.3.4.5.6
> and any later version in the 4.4.2 sequence, but not
>     Provides: rpm = 4.6.0.rc3.f11.rf

An additional reason for originally introducing "*" was to allow to
compare "E*R" instead of "EVR", i.e., if a distribution uses fully
consistent and fixed-scheme "R" (as in OpenPKG) one sometimes want to
compare just on "R" and not on "VR" ("E" is even ignored then) -- for
instance on vendor _version_ downgrades which are still _packaging_
upgrades. With the "*" one can say "Requires: foo >= *-1.2.3" and this
way a "foo-4-1.2.3" matches while the "foo-5-1.2.2" does not. With the
usual "EVR" comparison "foo >= 5-1.2.2" one has a problem until one
re-introduces an extra "E" here. So, the wildcard also does allow one to
logically "skip" parts of "EVR" in comparisons...

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com
Received on Sun Dec 21 10:14:52 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.