1 |
On 01/02/2012 05:41 PM, Neil Bothwick wrote: |
2 |
> On Mon, 02 Jan 2012 16:33:04 -0500, Michael Orlitzky wrote: |
3 |
> |
4 |
>>> Yes they have. Remove anything in the least suspect and emerge -cp. |
5 |
>>> Then emerge -n anything listed that you need. |
6 |
>> |
7 |
>> I don't know which ones I need, and I can't just remove them and cross |
8 |
>> my fingers, because these are live servers. |
9 |
> |
10 |
> You remove them from the world file, not the system. Then run emerge -cp |
11 |
> to seen what would be depcleaned. Nothing is uninstalled and nothing |
12 |
> stops working. |
13 |
> |
14 |
>>> There was a script floating around that created a new world file that |
15 |
>>> contained all installed packages that were not a dependency of another |
16 |
>>> installed package. It's not a perfect fix, but pretty close. |
17 |
>> |
18 |
>> I gave a concrete example from one of our web servers where this would |
19 |
>> remove something important. |
20 |
> |
21 |
> How so? If anything that was not a dependency of something else was in |
22 |
> the world file, how could anything be removed? |
23 |
|
24 |
I have both of these in world: |
25 |
|
26 |
dev-php/PEAR-Mail |
27 |
dev-php/PEAR-Mail_Mime |
28 |
|
29 |
Let's say PEAR-Mail_Mime depends on PEAR-Mail -- it might, I haven't |
30 |
checked, it's just an example. And I remember installing PEAR-Mail_Mime: |
31 |
I needed it to receive binary attachments through a contact form on an |
32 |
internal site. |
33 |
|
34 |
I suspect a customer had me install PEAR-Mail so that he could send some |
35 |
notifications via SMTP rather than sendmail(). Can I remove it from world? |
36 |
|
37 |
At the moment, yes I can: PEAR-Mail_Mime depends on PEAR-Mail, so there |
38 |
will be no change in my --depclean output. But if I ever take down the |
39 |
internal site, and uninstall PEAR-Mail_Mime, depclean will want to |
40 |
remove PEAR-Mail, and break that guy's site. This is what that script |
41 |
would do. |
42 |
|
43 |
If I know that I have been careful in the past, this is not a problem, |
44 |
since the contents of world will be accurate. However, I'm a little |
45 |
worried that I may have forgotten --oneshot and added PEAR-Mail by |
46 |
mistake on an upgrade. Now, I have to either risk breaking some |
47 |
customer's site, or leave PEAR-Mail in my world file forever. |