Gentoo Archives: gentoo-dev

From: Jason Stubbs <jstubbs@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Dynamic SLOTs
Date: Fri, 06 Aug 2004 12:38:28
Message-Id: 200408062141.18762.jstubbs@gentoo.org
In Reply to: Re: [gentoo-dev] Dynamic SLOTs by Paul de Vrieze
1 On Friday 06 August 2004 20:56, Paul de Vrieze wrote:
2 > On Saturday 31 July 2004 08:46, Mike Frysinger wrote:
3 > > On Saturday 31 July 2004 12:09 am, Jason Stubbs wrote:
4 > > > I added support for USE-based SLOTs to
5 > > > support the third and fourth.
6 > >
7 > > i know this is off topic of your e-mail, but could you go more into depth
8 > > on this ?
9 > > CHOST / CCHOST / cross compiling dynamic SLOTs interest embedded very
10 > > much -mike
11 >
12 > I'm working on my own portage_ng version. It includes a c++ parser that
13 > replaces the bash cruft, is a lot faster, and parses most existing ebuilds.
14 > (compilation etc. still happens in bash) (It does not allow at all dynamic
15 > behaviour on the toplevel, but it will include a much more flexible
16 > dependency structure. On top of that the parser itself does not (yet at
17 > least) perform the variable substitution, so the variables are still
18 > available for reading. Once I get to that point I will also include some
19 > kind of dynamic slot/ multislot feature based on some conditions. It will
20 > certainly allow multiple installation of the same version of the same
21 > package (think crosscompiling, php for apache1 and apache2) given that they
22 > have different MULTISLOT values
23
24 Are you going to share information or just offer another sales pitch? For
25 example, what algorithm(s) are you going use to handle the following?
26
27 pkg-a-1.0:SLOT="foo? ( 2 ) !foo ( 1 )"
28 pkg-a-1.1:SLOT="foo? ( 1 ) !foo ( 2 )"
29 pkg-b-1.0:DEPEND="foo? ( pkg-a:2 )"
30 pkg-c-1.0:DEPEND="pkg-b[foo]"
31 USE="-foo" emerge pkg-c
32
33 How about if pkg-a is installed in both slot 1 and slot 2 and the user issues
34 "emerge -u pkg-a" ?
35
36 How about if we add pkg-d-1.0:DEPEND="pkg-a[-foo]" and the user issues
37 "emerge pkg-c pkg-d" ?
38
39 All those have a definite solution, but doing it in code that isn't as slow as
40 hell is another matter.
41
42 Regards,
43 Jason Stubbs
44
45 --
46 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Dynamic SLOTs Paul de Vrieze <pauldv@g.o>