1 |
On Mon 15 August 2011 19:31:37 Sebastian Beßler did opine thusly: |
2 |
> I just tried |
3 |
> |
4 |
> emerge -DuN @world @system -va |
5 |
> |
6 |
> and got: |
7 |
> |
8 |
> These are the packages that would be merged, in order: |
9 |
> |
10 |
> Calculating dependencies ... done! |
11 |
> [ebuild U ] perl-core/ExtUtils-ParseXS-3.20.0 [2.22.06] 0 kB |
12 |
> [ebuild U ] www-client/firefox-bin-5.0 [3.6.19] |
13 |
> USE="startup-notification" |
14 |
> [ebuild N ] x11-themes/tango-icon-theme-0.8.90 USE="png" 0 kB |
15 |
> [ebuild N ] media-plugins/kipi-plugins-2.0.0 USE="cdr crypt |
16 |
> imagemagick mediawiki opengl (-aqua) -calendar -debug -expoblending |
17 |
> -gpssync -handbook -ipod (-kdeenablefinal) -mjpeg -redeyes -scanner" |
18 |
> |
19 |
> [ebuild N ] media-gfx/digikam-2.0.0 USE="gphoto2 handbook |
20 |
> thumbnails -addressbook (-aqua) -debug -doc (-kdeenablefinal) -mysql |
21 |
> -semantic-desktop -themedesigner -video" |
22 |
> |
23 |
> [ebuild N ] xfce-base/xfce4-meta-4.8 USE="session svg |
24 |
> -minimal" 0 kB |
25 |
> |
26 |
> Total: 6 packages (2 upgrades, 4 new), Size of downloads: 15,432 kB |
27 |
> |
28 |
> The following keyword changes are necessary to proceed: |
29 |
> #required by @selected, required by @world (argument) |
30 |
> |
31 |
> >=perl-core/ExtUtils-ParseXS-3.20.0 ~amd64 |
32 |
> |
33 |
> NOTE: This --autounmask behavior can be disabled by setting |
34 |
> EMERGE_DEFAULT_OPTS="--autounmask=n" in make.conf |
35 |
> |
36 |
> But if I run: |
37 |
> |
38 |
> EMERGE_DEFAULT_OPTS="--autounmask=n" emerge -DuN @world @system -va |
39 |
> |
40 |
> I get: |
41 |
> |
42 |
> These are the packages that would be merged, in order: |
43 |
> |
44 |
> Calculating dependencies ... done! |
45 |
> [ebuild U ] www-client/firefox-bin-5.0 [3.6.19] |
46 |
> USE="startup-notification" |
47 |
> [ebuild N ] x11-themes/tango-icon-theme-0.8.90 USE="png" 0 kB |
48 |
> [ebuild N ] media-plugins/kipi-plugins-2.0.0 USE="cdr crypt |
49 |
> imagemagick mediawiki opengl (-aqua) -calendar -debug -expoblending |
50 |
> -gpssync -handbook -ipod (-kdeenablefinal) -mjpeg -redeyes -scanner" |
51 |
> |
52 |
> [ebuild N ] media-gfx/digikam-2.0.0 USE="gphoto2 handbook |
53 |
> thumbnails -addressbook (-aqua) -debug -doc (-kdeenablefinal) -mysql |
54 |
> -semantic-desktop -themedesigner -video" |
55 |
> |
56 |
> [ebuild N ] xfce-base/xfce4-meta-4.8 USE="session svg |
57 |
> -minimal" 0 kB |
58 |
> |
59 |
> Total: 5 packages (1 upgrade, 4 new), Size of downloads: 15,432 kB |
60 |
> |
61 |
> Would you like to merge these packages? [Yes/No] |
62 |
> |
63 |
> [LINGUAS was stripped by me to remove unneded clutter from this |
64 |
> post] |
65 |
> |
66 |
> I run ~amd64 but have =perl-core/ExtUtils-ParseXS-3.20.0 -~amd64 |
67 |
> because of a bug with imagemagick [#378383]. |
68 |
> |
69 |
> Why is autounmask trying to unmask ExtUtils-ParseXS if it's not |
70 |
> needed? Should I report this as a bug? |
71 |
|
72 |
It's not a bug, portage is doing what it should. |
73 |
|
74 |
In the first case portage will try upgrade all packages to the latest |
75 |
version. It sees that you asked it to try autounmask stuff, so it |
76 |
wants to override your local mask for ExtUtils-ParseXS. |
77 |
|
78 |
In the second case you have told portage to upgrade system and world |
79 |
but to leave masking well enough alone. As your current installed |
80 |
version of ExtUtils-ParseXS satisfies all needs, it makes no effort to |
81 |
try and upgrade it. |
82 |
|
83 |
The trick to working with autounmask is to realise that it is stupid |
84 |
software, it cannot possibly know what you want or intend. So it tries |
85 |
a blanket approach for the most part. If you have more complex masking |
86 |
than just stable/unstable statistically it will be wrong far more |
87 |
often than it is right. |
88 |
|
89 |
It's possible to come up with an "autounmask ignore" file but that |
90 |
gets way too complex really quickly and easily turns into an |
91 |
unmaintainable mess. Devs are usually reluctant to go this route, as |
92 |
the mess just ends up in their inbox. |
93 |
|
94 |
|
95 |
|
96 |
|
97 |
-- |
98 |
alan dot mckinnon at gmail dot com |