1 |
Ciaran McCreesh wrote: |
2 |
> On Sat, 19 Apr 2008 18:38:06 +0200 |
3 |
> "Marijn Schouten (hkBst)" <hkBst@g.o> wrote: |
4 |
> |
5 |
>> Every package dependency in DEPEND is installed and usable before |
6 |
>> src_unpack starts, right? So is the question here whether or not they |
7 |
>> can be uninstalled right before pkg_{pre,post}inst starts? |
8 |
>> |
9 |
> |
10 |
> If we're using binaries, DEPEND is usually ignored. |
11 |
> |
12 |
But if we're using binaries then src_unpack isn't called so this is a |
13 |
moot statement and the O.P.'s statement is correct. |
14 |
|
15 |
> |
16 |
>> I don't know what the general use of pkg_preinst is, but in |
17 |
>> pkg_postinst the package itself should be runnable, so its RDEPENDS |
18 |
>> should be installed and usable at this point. So perhaps we should |
19 |
>> define that "usable" means "each of its RDEPENDs is installed and has |
20 |
>> had its pkg_postinst function run". The recursion of that definition |
21 |
>> then comes from the requirement that RDEPENDs should be usable before |
22 |
>> pkg_postinst starts running. |
23 |
>> |
24 |
> |
25 |
> No good. That prevents RDEPEND <-> RDEPEND cycles from being solved, |
26 |
> and the package manager has to be able to solve that. |
27 |
> |
28 |
|
29 |
Can you give a concrete example? Not a foo and bar or a and b example. |
30 |
But a real package example. Because there are a few packages in the tree |
31 |
which call themselves in pkg_postinst |
32 |
|
33 |
-- |
34 |
gentoo-dev@l.g.o mailing list |