[haiku-bugs] Re: [Haiku] #12917: get_package_dependencies needs to be refactored

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Sun, 21 Aug 2016 17:48:32 -0000

#12917: get_package_dependencies needs to be refactored
--------------------------------+----------------------------
   Reporter:  kallisti5         |      Owner:  kallisti5
       Type:  enhancement       |     Status:  new
   Priority:  normal            |  Milestone:  Unscheduled
  Component:  Kits/Package Kit  |    Version:  R1/Development
 Resolution:                    |   Keywords:
 Blocked By:                    |   Blocking:
Has a Patch:  0                 |   Platform:  All
--------------------------------+----------------------------

Comment (by bonefish):

 Replying to [comment:6 kallisti5]:

Replying to [comment:5 bonefish]:
Replying to [comment:4 kallisti5]:
Replying to [comment:3 bonefish]:
Replying to [ticket:12917 kallisti5]:
**Current Behaviour**

get_package_dependencies takes in the following arguments:
  * Several binary local repo files which contain the url, and
 repo package inventory
  * These are pretty much http://packages.haiku-
 os.org/haikuports/master/repo/x86_64/current/repo generated from
 http://packages.haiku-
 os.org/haikuports/master/repo/x86_64/current/repo.info.

No, they are not the "current" repositories. You need to
 understand that the Haiku git repository '''defines''' the HaikuPorts
 package repositories. This provides us with the ability to build an old
 Haiku revision with the same packages repositories they matched
 originally. If you start building against the "current" repositories,
 you'll lose this build stability.

There have been multiple people commenting on how much of a pain it
 requiring code updates to Haiku any time a HaikuPorts package is updated.
 We have pretty advanced versioning schematics in the package definitions
 already... lets put them to good use.

Maybe you could give some details on what you have in mind, because
 ATM I don't see a solution that could possibly work.

No clue. :-)


This all isn't any kind of attack..

 I haven't perceived it as such. If my reaction was a bit "alarmed", that's
 because Oliver and I had thought about the connection between the Haiku
 source tree and the HaikuPorts repositories and their management quite a
 bit. Switching to the "current" repositories would break an aspect we
 considered imported, while -- if that's all you change -- still having all
 the drawbacks of maintaining the repositories in the Haiku source tree.
 So, if that is changed, it should be done only as part of a larger
 paradigm change.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12917#comment:7>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: