1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA256 |
3 |
|
4 |
On 27/07/14 05:08 PM, Rich Freeman wrote: |
5 |
> On Sun, Jul 27, 2014 at 4:24 PM, Michał Górny <mgorny@g.o> |
6 |
> wrote: |
7 |
>> Dnia 2014-07-27, o godz. 10:42:19 |
8 |
>> |
9 |
>> Consider the following: |
10 |
>> |
11 |
>> 1. A depends on B, both are installed, |
12 |
>> |
13 |
>> 2. dependency on B is removed, emerge --depclean uninstalls B |
14 |
>> thanks to dynamic-deps, |
15 |
>> |
16 |
>> 3. B is treecleaned (nothing depends on it), |
17 |
>> |
18 |
>> 4. old version of A is removed (user doesn't update it yet), |
19 |
>> therefore dependency on B is restored from vdb. |
20 |
>> |
21 |
>> So, now user has package A installed which has unsatisfied |
22 |
>> dependency on non-available package. |
23 |
> |
24 |
> I'd think that portage should update vdb as soon as it detects the |
25 |
> dependency change. Then B would no longer depend on A in vdb. It |
26 |
> shouldn't hold onto outdated information. Basically a dependency |
27 |
> change should trigger a no-rebuild merge if it is safe to do so, |
28 |
> and if not there should be a revbump anyway. |
29 |
|
30 |
As has been mentioned or alluded to before, this is fine as long as |
31 |
end-users --sync when the dependency change is still in the tree. |
32 |
However, if that doesn't happen then we still end up with the issue. |
33 |
|
34 |
Of course, if that is the case, then #2 shouldn't happen either |
35 |
(because the end-user system wouldn't see B as having been removed and |
36 |
therefore --depclean won't remove it). |
37 |
|
38 |
|
39 |
...why do i feel like i'm getting the same headache i had in my 2nd |
40 |
year databases course, when i was trying to wrap my head around ACID |
41 |
compliance and transaction visibility.... |
42 |
-----BEGIN PGP SIGNATURE----- |
43 |
Version: GnuPG v2 |
44 |
|
45 |
iF4EAREIAAYFAlPWelAACgkQ2ugaI38ACPCokAEAvDNcn+kJ6WTpL+hMAjexRuJX |
46 |
mbHoj9pGsuFQ2kqoL7YA/1n9mZ2zDpVBurXLflU2KpqNgGx3E/ujozBOveHzoII+ |
47 |
=0Zgq |
48 |
-----END PGP SIGNATURE----- |