1 |
maillog: 20/08/2005-12:12:54(+0200): Ralph Seichter types |
2 |
> Georgi Georgiev wrote: |
3 |
> |
4 |
> > echo 'mail-mta/postfix-2.2.4' >> |
5 |
> > /etc/portage/profile/package.provided |
6 |
> |
7 |
> I have tried this, but ssmtp still gets installed: |
8 |
> |
9 |
> # mkdir /etc/portage/profile |
10 |
> # echo 'mail-mta/postfix-2.2.4' >> |
11 |
> /etc/portage/profile/package.provided |
12 |
> # emerge --update --deep world |
13 |
> Calculating world dependencies ...done! |
14 |
> >>> emerge (1 of 1) mail-mta/ssmtp-2.61 to / |
15 |
> [...] |
16 |
> |
17 |
> However, adding "mail-mta/ssmtp-2.61" to package.provided seems to |
18 |
> do the trick. Thank you, Georgi! Will this prevent future ssmtp |
19 |
> versions from being installed, or should I add it to package.mask |
20 |
> aswell? If so, would that be /etc/portage/profile/package.mask or |
21 |
> /etc/portage/package.mask? |
22 |
|
23 |
It seems that if a virtual is satisfied by a "provided" package, the |
24 |
virtual is not calculated properly. |
25 |
|
26 |
For example, I put mail-mta/postfix-2.2.4 in package.provided and |
27 |
remove ssmtp from my system. As it is, there is nothing to satisfy |
28 |
virtual/mta on my system which is required by sudo. Here is an |
29 |
illustration: |
30 |
|
31 |
lion ~ # emerge -pt app-admin/sudo |
32 |
|
33 |
These are the packages that I would merge, in reverse order: |
34 |
|
35 |
Calculating dependencies ...done! |
36 |
[ebuild R ] app-admin/sudo-1.6.8_p9 |
37 |
[ebuild N ] mail-mta/ssmtp-2.61-r1 |
38 |
|
39 |
However, if you explicitly state that virtual/mta is provided by |
40 |
postfix: |
41 |
|
42 |
lion ~ # echo virtual/mta mail-mta/postfix >> /etc/portage/profile/virtuals |
43 |
lion ~ # emerge -pt app-admin/sudo |
44 |
|
45 |
These are the packages that I would merge, in reverse order: |
46 |
|
47 |
Calculating dependencies ...done! |
48 |
[ebuild R ] app-admin/sudo-1.6.8_p9 |
49 |
|
50 |
This, I think, is the *proper* way to work around what I consider to be |
51 |
a portage bug. |
52 |
|
53 |
-- |
54 |
-* Georgi Georgiev -* Stop me, before I kill again! -* |
55 |
*- chutz@×××.net *- *- |
56 |
-* +81(90)2877-8845 -* -* |
57 |
-- |
58 |
gentoo-admin@g.o mailing list |