Gentoo Archives: gentoo-dev

From: Paul de Vrieze <pauldv@g.o>
To: Gentoo Developers <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] what to do when an ebuild needs loads of RAM?
Date: Fri, 19 Nov 2004 10:23:26
Message-Id: 200411191123.06856.pauldv@gentoo.org
In Reply to: Re: [gentoo-dev] what to do when an ebuild needs loads of RAM? by "Robin H. Johnson"
1 On Friday 19 November 2004 10:28, Robin H. Johnson wrote:
2
3 > I'd throw all the requirement checking stuff into an eclass, but I do
4 > see one thing that would be suitable for portage to have (and it's more
5 > broadly useful):
6 > Ability to do an arbitary calculation at depend/pretend time so that it
7 > can stop the entire emerge process before any packages are
8 > unpacked/compiled/installed.
9 >
10 > Eg portage can calc the deptree, and then before printing it out, it
11 > evaluates the testing function for every ebuild in the deptree that has
12 > the function. I already see ebuilds that have something similar in
13 > pkg_setup(), but that runs too late - it should check things before any
14 > installs start.
15 >
16 > If portage cached which ebuilds had the testing function this makes the
17 > evaluation of it O(n) with a very small n.
18 >
19 > As one place that would definetly use this as well, see PHP packages
20 > for combinations of USE flags that are competely incompatible and
21 > automatic logic to exclude one of the USE flags is not appropriate
22 > (currently we just call die).
23
24 As I have proposed something similar yesterday for a different issue, I'd
25 like to ask the portage people what they think about it. Of course there
26 would be restrictions on this function, but that's acceptable.
27
28 Paul
29
30 --
31 Paul de Vrieze
32 Gentoo Developer
33 Mail: pauldv@g.o
34 Homepage: http://www.devrieze.net