Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: 'emerge --update @world -pv' keeps trying to upgrade to a masked package
Date: Wed, 14 Oct 2015 05:43:40
Message-Id: 561DEB50.4020203@gmail.com
In Reply to: Re: [gentoo-user] Re: 'emerge --update @world -pv' keeps trying to upgrade to a masked package by Dale
1 On 14/10/2015 03:53, Dale wrote:
2 > Marat BN wrote:
3 >> Ah, I think I figured out what was the problem. Looked down further in
4 >> the Portage output, and saw this:
5 >>
6 >> The following mask changes are necessary to proceed:
7 >> (see "package.unmask" in the portage(5) man page for more details)
8 >> # required by gnome-extra/nm-applet-1.0.6::gentoo
9 >> # required by net-misc/networkmanager-pptp-1.0.6::gentoo[gtk]
10 >> # required by @selected
11 >> # required by @world (argument)
12 >> # /etc/portage/package.mask:
13 >> # 2015-09-19--01
14 >> =net-misc/networkmanager-1.0.6
15 >> # required by net-misc/networkmanager-pptp-1.0.6::gentoo[gtk]
16 >> # required by @selected
17 >> # required by @world (argument)
18 >> # /etc/portage/package.mask:
19 >> # 2015-09-14--01
20 >> =gnome-extra/nm-applet-1.0.6
21 >> # required by net-misc/networkmanager-1.0.6::gentoo[bluetooth]
22 >> # required by gnome-extra/nm-applet-1.0.6::gentoo
23 >> # required by net-misc/networkmanager-pptp-1.0.6::gentoo[gtk]
24 >> # required by @selected
25 >> # required by @world (argument)
26 >> # /etc/portage/package.mask:
27 >> # 2015-06-22--01
28 >> =net-wireless/bluez-5.33
29 >>
30 >>
31 >> It appears that 'net-misc/networkmanager-1.0.6' was being pulled in by
32 >> 'gnome-extra/nm-applet-1.0.6::gentoo',
33 >> 'net-misc/networkmanager-pptp-1.0.6::gentoo[gtk]', and so on, and these
34 >> were just being reported further down below.
35 >>
36 >> So I added them to '/etc/portage/package,mask' as well and the problem
37 >> went away.
38 >>
39 >>
40 >> -- Marat
41 >>
42 >> -------- Original Message --------
43 >> Subject: 'emerge --update @world -pv' keeps trying to upgrade to a
44 >> masked package
45 >> From: Marat BN <maratbn@×××××.com>
46 >> To: gentoo-user@l.g.o
47 >> Date: 10/13/2015 05:53 PM
48 >>
49 >>> Hello there,
50 >>>
51 >>> I'm having a curious problem trying to update my system.
52 >>>
53 >>> I issue the command:
54 >>>
55 >>> emerge --update @world -pv
56 >>>
57 >>>
58 >>> Portage comes back with the following:
59 >>>
60 >>> !!! Multiple package instances within a single package slot have been pulled
61 >>> !!! into the dependency graph, resulting in a slot conflict:
62 >>>
63 >>> net-wireless/bluez:0
64 >>>
65 >>> (net-wireless/bluez-4.101-r9:0/0::gentoo, installed) pulled in by
66 >>> net-wireless/bluez:0/0= required by
67 >>> (media-sound/pulseaudio-5.0-r7:0/0::gentoo, installed)
68 >>> ^^^^^
69 >>>
70 >>>
71 >>>
72 >>> <net-wireless/bluez-5 required by
73 >>> (net-wireless/blueman-1.23-r2:0/0::maratbn, installed)
74 >>> ^ ^
75 >>>
76 >>>
77 >>>
78 >>>
79 >>> (net-wireless/bluez-5.33:0/3::gentoo, ebuild scheduled for merge)
80 >>> pulled in by
81 >>> >=net-wireless/bluez-5 required by
82 >>> (net-misc/networkmanager-1.0.6:0/0::gentoo, ebuild scheduled for merge)
83 >>> ^^ ^
84 >>>
85 >>>
86 >>>
87 >>>
88 >>>
89 >>>
90 >>> But I have the following line in my '/etc/portage/package.mask':
91 >>>
92 >>> =net-misc/networkmanager-1.0.6:0/0::gentoo
93 >>>
94 >>>
95 >>> So doesn't this tell portage not to upgrade to it? Why does it still
96 >>> schedule it for merge?
97 >>>
98 >>>
99 >>> Thanks a lot,
100 >>> Marat
101 >>>
102 >
103 > I started to post that it looked like some other package was pulling it
104 > in but portage's output is sometimes cryptic at best. Sometimes I can
105 > figure it out but usually, I have to get Alan or Neil to pull out their
106 > magic decoder ring and uncrypt the thing.
107 >
108 > Anyway, glad you got it sorted out and all is well again.
109
110
111 To figure out that "required by/pulled in by/installed" listing, you
112 have to think like a programmer. That whole listing is not so much
113 portage telling you what it will do, it's portage telling you how it got
114 to the point where there's a problem. Think of it like debugger output -
115 emerge runs, there's a problem and the dev asks for a memory dump of the
116 dep tree emerge has evaluated so far.
117
118 A little bit lower you find the helpful hint the some judicious
119 unmasking might get around it. But what's really missing is a clear
120 message about a mask.
121
122 Portage is often like a 10 year old telling you why they are upset. Lots
123 of tears and wailing, but no real description of /why/... :-)
124
125 --
126 Alan McKinnon
127 alan.mckinnon@×××××.com

Replies