1 |
On 12/07/17 16:06, William L. Thomson Jr. wrote: |
2 |
> On Wed, 12 Jul 2017 15:49:14 +1000 |
3 |
> "Sam Jorna (wraeth)" <wraeth@g.o> wrote: |
4 |
>> |
5 |
>> I have trouble remembering what I ate for dinner last night, let alone |
6 |
>> what I may or may not have merged a week, month or year ago, or what |
7 |
>> options I used when merging it. |
8 |
> |
9 |
> And if you used --oneshot, it is also saying you are not maintaining |
10 |
> your system or ever running --depclean. Since anything you installed |
11 |
> via --oneshot would be removed with --depclean. |
12 |
|
13 |
If my concern in removing a package was whether it was a dependency, it |
14 |
would make more sense to use --depclean in the first place. If I'm using |
15 |
--unmerge, it's because I want the package unmerged regardless. |
16 |
|
17 |
>>> What harm does a warning do? |
18 |
>> |
19 |
>> Depends on the user, which can't really be avoided, but means that |
20 |
>> warnings should be clear and meaningful, otherwise they become |
21 |
>> background noise. |
22 |
> |
23 |
> The example in the bug is as clear is it can get. |
24 |
> |
25 |
> !!! 'sys-devel/gcc' is a dependency of another package on your system |
26 |
> or |
27 |
> !!! 'sys-devel/gcc' is a package not found in system profile or world |
28 |
> or |
29 |
> !!! 'sys-devel/gcc' may not have been installed by you |
30 |
> or |
31 |
> some other message.... |
32 |
> |
33 |
>> Such as: |
34 |
>> |
35 |
>> emerge --unmerge dev-python/keyring |
36 |
>> * This action can remove important packages! In order to be safer, |
37 |
>> use |
38 |
>> * `emerge -pv --depclean <atom>` to check for reverse dependencies |
39 |
>> before |
40 |
>> * removing packages. |
41 |
> |
42 |
> Didn't you just say something about meaningful output vs noise? That is |
43 |
> always outputted and ends up becoming what you are saying. Funny! |
44 |
|
45 |
And your suggesting adding more noise to it... Funny, I know. |
46 |
|
47 |
>>>> or may have been installed as an orphan but is now a |
48 |
>>>> dependency. |
49 |
>>> |
50 |
>>> Now being a dependency the warning would be valid. |
51 |
>> |
52 |
>> "Sometimes being accurate" is not the most noble of goals. |
53 |
> |
54 |
> What? |
55 |
> |
56 |
>> So the idea is to duplicate the functionality of '--depclean |
57 |
>> <package> |
58 |
> |
59 |
> NO!!! |
60 |
> |
61 |
> emerge --depclean gcc |
62 |
> |
63 |
> is not the same as |
64 |
> |
65 |
> emerge --umerge gcc |
66 |
> |
67 |
> Depclean the user is cleaning things they are not aware of. Unmerge the |
68 |
> user is removing something directly. They may think they do not need it. |
69 |
|
70 |
No. |
71 |
|
72 |
'--depclean' is the user removing things they are not aware of. |
73 |
|
74 |
'--depclean foo' is the user removing something they /are/ aware of *if |
75 |
it's not a dependency*. |
76 |
|
77 |
'--unmerge foo' is the user explicitly removing something regardless of |
78 |
whether it's a dependency. |
79 |
|
80 |
Therefore, '--depclean foo' can be seen as a safe '--unmerge foo' which, |
81 |
from what I understand, is what you're aiming for. |
82 |
|
83 |
>> ' without actually checking to see if the package is a |
84 |
>> dependency, |
85 |
> |
86 |
> Word it how ever. If the user did not install, they should be warned on |
87 |
> removal of a package they did not install. |
88 |
|
89 |
That's what the current warning to --unmerge says - removing packages |
90 |
can break things, so please make sure this isn't a dependency and you |
91 |
really want to remove this. |
92 |
|
93 |
>> only whether it is listed in a set; or to check if it's a |
94 |
>> dependency of /something/ and, if so, redirect the user to the |
95 |
>> command they should be using anyway? |
96 |
> |
97 |
> You mean like emerge --unmerge does already that you pointed out |
98 |
> above. After mentioning useful messages vs noise. Again funny! |
99 |
|
100 |
How does replacing one warning with another warning that may or may not |
101 |
be meaningful ("maybe it's a dep, maybe it isn't" as opposed to "this |
102 |
can be dangerous, please make sure you know what you're doing") make it |
103 |
any better? |
104 |
|
105 |
-- |
106 |
Sam Jorna (wraeth) |
107 |
GnuPG ID: D6180C26 |