[haiku-bugs] [Haiku] #11081: [Package Manager] Make system updates robust wrt. format changes

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Tue, 29 Jul 2014 18:39:03 -0000

#11081: [Package Manager] Make system updates robust wrt. format changes
------------------------------+------------------------------
 Reporter:  bonefish          |        Owner:  bonefish
     Type:  enhancement       |       Status:  new
 Priority:  normal            |    Milestone:  R1
Component:  Kits/Package Kit  |      Version:  R1/Development
 Keywords:                    |   Blocked By:
 Blocking:                    |  Has a Patch:  0
 Platform:  All               |
------------------------------+------------------------------
 Package or repository format changes can currently easily break the system
 update support. If a new mandatory feature is introduced -- e.g. support
 for a new compression algorithm -- an older Haiku won't be able to read
 packages using that feature. Since the update process requires the
 packages to be readable to be installed, updating to a Haiku version with
 packages using that feature isn't possible.

 The introduction of those features will happen inevitably, so it would be
 wise to implement a mechanism that allows updating the system beyond such
 a feature barrier as soon as possible.

 I think a first step should be to extend the repository format to contain
 either the maximum format version of the contained packages (respectively
 for each package the format version) or the Haiku version it is backward
 compatible to. This way the package manager would at least know up front
 whether using that repository for an upgrade is possible at all.

 The next step is to implement some kind of trampoline update mechanism. We
 first need to activate code that supports the new format. Thereafter we
 can perform the actual update. Since the package management code isn't
 some self-contained module/package (yet?) it isn't as simple as updating
 to a new version of that module.

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

Other related posts:

  • » [haiku-bugs] [Haiku] #11081: [Package Manager] Make system updates robust wrt. format changes - bonefish