Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] eject and util-linux blocker
Date: Tue, 17 Mar 2015 20:31:56
Message-Id: 55088F2D.5080708@gmail.com
In Reply to: Re: [gentoo-user] eject and util-linux blocker by Dale
1 On 17/03/2015 22:16, Dale wrote:
2 > Mike Gilbert wrote:
3 >> On Tue, Mar 17, 2015 at 2:10 PM, Dale <rdalek1967@×××××.com> wrote:
4 >>> Alan McKinnon wrote:
5 >>>> Your basic problem is that you have static and static-libs in USE. When
6 >>>> applied to lvm, a whole bunch of blockers kick in and you get what you
7 >>>> got. So take them out of USE.
8 >>>>
9 >>>> USE="static static-libs" has it's uses, it's great for building rescue
10 >>>> disks, busybox and maybe some disk repair utils, but makes very little
11 >>>> sense on a regular workstation. If you break your workstation, you'll
12 >>>> boot off a rescue disk and use the tools on it to fix your install, so
13 >>>> you don't need it on the main system.
14 >>>>
15 >>>> There is nothing wrong with your eudev.
16 >>>> lvm2 is bitching about blockers between lvm2 built with "USE=static" and
17 >>>> udev - there's some incompatibility there and the ebuild knows about them
18 >>>>
19 >>>>
20 >>> I went through the package.use file and commented out the static and
21 >>> static-libs stuff. It seems happy but thing is, when I put them there,
22 >>> they were needed for some reason. Actually, all the parts I found had
23 >>> the output of where emerge said those were needed. Maybe the reason
24 >>> they were needed then has changed and they are no longer needed. I hope
25 >>> anyway. ;-)
26 >> I know there were some guides for doing LVM root that used to advise
27 >> building stuff statically, probably because of some problem with
28 >> genkernel.
29 >>
30 >> With a modern initramfs (dracut, and possible recent genkernel),
31 >> shared libs work just as well, so there should be no need.
32 >>
33 >>
34 >
35 > Well, in package.use, it has some output of emerge that said it needed.
36 > Here is a snippet:
37 >
38 > # required by sys-fs/lvm2-2.02.109[static]
39 > # required by @selected
40 > # required by @world (argument)
41 > #=sys-apps/util-linux-2.24.1-r3 static-libs
42
43
44 You are reading it wrong. That means:
45 util-linux needs to be built with USE="static-libs"
46 because
47 lvm2 is already built with USE="static"
48
49 None of which explains why you originally built lvm2 that way.
50
51 >
52 > # required by virtual/udev-208-r2
53 > # required by @selected
54 > # required by @world (argument)
55 > #virtual/libudev static-libs
56 >
57 > # required by virtual/udev-208-r2[gudev]
58 > # required by @selected
59 > # required by @world (argument)
60 > #virtual/libgudev static-libs
61 >
62 > There's a couple more but you get the idea. I don't use genkernel,
63 > tried it but never got a working kernel from it so I do them by hand.
64 > Everything built OK with no more complaining so I guess whatever it is
65 > has changed. Still weird tho.
66
67
68 This has nothing to do with genkernel.
69 More than likely, you followed some daft advice on teh intarwebz saying
70 you need a static lvm to be able to boot / on lvm.
71
72
73
74
75
76 --
77 Alan McKinnon
78 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] eject and util-linux blocker Dale <rdalek1967@×××××.com>