[haiku-bugs] [Haiku] #13426: Package Requires and Provides Version Range Comparison Broken

  • From: "AGMS" <trac@xxxxxxxxxxxx>
  • Date: Wed, 12 Apr 2017 19:29:47 -0000

#13426: Package Requires and Provides Version Range Comparison Broken
---------------------------------------------+-----------------------------
 Reporter:  AGMS                             |        Owner:  bonefish
     Type:  bug                              |       Status:  new
 Priority:  normal                           |    Milestone:  Unscheduled
Component:  Servers/package_daemon           |      Version:
                                             |  R1/Development
 Keywords:  version number range comparison  |   Blocked By:
 Blocking:                                   |  Has a Patch:  0
 Platform:  All                              |
---------------------------------------------+-----------------------------
 The comparison of version numbers doesn't take into account that it is a
 range comparison, not just a single version number compared against a
 range.  For example, if Application A's .PackageInfo has:
 {{{
 provides {
   A = 2.53 compatible >= 1.1
   app:A = 2.53 compatible >= 1.1
 }
 }}}
 and Application B has:
 {{{
 requires {
   app:A >= 1.0
 }
 }}}
 then pkgman will fail, saying "nothing provides app:A>=1.0 needed by
 B-..." though version 2.53 is >= 1.0.  For that matter, A can do anything
 from 1.1 on up to 2.53, surely one of those versions in that range (like
 1.42 to pick one possible one) satisfies B's app:A >= 1.0 requirement?

 But make B require app:A >= 1.1 and then it suddenly works as expected.

--
Ticket URL: <https://dev.haiku-os.org/ticket/13426>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: