Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] I'm confused by "[ebuild U #] virtual/udev-197 [171]". Help, please!
Date: Sun, 20 Jan 2013 21:19:18
Message-Id: 20130120231840.01850835@khamul.example.com
In Reply to: [gentoo-user] I'm confused by "[ebuild U #] virtual/udev-197 [171]". Help, please! by Alan Mackenzie
1 On Sun, 20 Jan 2013 20:50:12 +0000
2 Alan Mackenzie <acm@×××.de> wrote:
3
4 > Hi, Gentoo!
5 >
6 > After synching, I've got a whole lot of programs to emerge, amongst
7 > them being udev-197. :-( I'd rather do this on its own, in peace
8 > and quiet, rather than together with 12 or 13 other programs.
9 >
10 > emerge -puND world generates these:
11 >
12 > [ebuild U #] sys-fs/udev-197-r4 [171-r9] USE="acl%* kmod%*
13 > openrc%* -doc% -static-libs%" [ebuild U #] virtual/udev-197 [171]
14 >
15 > . The # indicates the packages are masked in packages.mask, which
16 > indeed they are. The emerge man-page indicates that these new
17 > versions will nevertheless be merged. But surely this is what the
18 > entry in packages.mask is to prevent? Why does emerge want to merge
19 > udev-197 in this case? How do I stop it?
20 >
21 > What am I missing here?
22 >
23
24 My reading of that man page is that the #/*/~ output characters do not
25 indicate what emerge will do, they indicate if any sort of mask exists
26 at the ebuild and tree level. In other words, that udev version is
27 somehow listed in one of the various masking methods and portage is
28 confirming that for you.
29
30 However, portage is going to install it anyway which can only be
31 because you have some unmask setting (probably a local one) which is
32 overriding the mask setting, you just need to find where you did it.
33
34 I use this grep to find such things: grep -ir udev /etc/portage
35
36 As a test I added these to my machine here:
37
38 # grep -ir udev /etc/portage
39 /etc/portage/package.mask/package.mask:=sys-fs/udev-197-r3
40 /etc/portage/package.unmask/package.unmask:=sys-fs/udev-197-r3
41
42 i.e. I masked and unmasked udev-197-r3. One of them must take
43 precedence, so:
44
45
46 # emerge -pv1 udev
47
48 These are the packages that would be merged, in order:
49
50 Calculating dependencies... done!
51 [ebuild R #] sys-fs/udev-197-r3 USE="acl gudev hwdb introspection
52 keymap kmod openrc -doc (-selinux) -static-libs" 0 kB
53
54
55 In plain English I take that to mean: In spite of a mask existing for
56 the package, portage is going to merge it anyway as something somewhere
57 overrides the mask (and portage unhelpfully declined to tell me where
58 that override is coming from...)
59
60 --
61 Alan McKinnon
62 alan.mckinnon@×××××.com

Replies