Gentoo Archives: gentoo-dev

From: Paul de Vrieze <pauldv@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Multiple Repo Support
Date: Tue, 27 Dec 2005 15:54:05
Message-Id: 200512271648.55694.pauldv@gentoo.org
In Reply to: Re: [gentoo-dev] Multiple Repo Support by Ciaran McCreesh
1 On Monday 26 December 2005 21:28, Ciaran McCreesh wrote:
2 > On Mon, 26 Dec 2005 21:09:31 +0100 Carsten Lohrke <carlo@g.o>
3 > Well, any library that changes ABI should use a different SLOT for each
4 > revision. So SLOT depends should be able to replace the need for = and
5 > ~ and < and <= dependencies entirely. Which is a good thing, since
6 > those atoms make dependency resolution a general-case unsolvable
7 > problem.
8
9 Well, it shouldn't be unsolvable. Choosing can be done with the following
10 process:
11
12 - Get the list of packages with the requested name.
13 - Sort the list from the newest version, to the oldest.
14 - Iterate over the packages:
15 - Apply all restrictions on the package (including exclusions). If the
16 package satisfies all, test it's dependencies recursively.
17 - If all dependencies match, this package matches the dependency. Continue
18 with the next depend atom.
19 - If no match, iterate the next package.
20
21 Paul
22
23 --
24 Paul de Vrieze
25 Gentoo Developer
26 Mail: pauldv@g.o
27 Homepage: http://www.devrieze.net

Replies

Subject Author
Re: [gentoo-dev] Multiple Repo Support Jason Stubbs <jstubbs@g.o>
Re: [gentoo-dev] Multiple Repo Support Ciaran McCreesh <ciaranm@g.o>