Gentoo Archives: gentoo-user

From: Mike Gilbert <floppym@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] portage insists in pulling in sys-apps/kmod
Date: Sun, 24 Mar 2013 16:39:42
Message-Id: CAJ0EP410qxJp8tehdsn4PSonLvqBkbQGhs_vC2ViG13kQOit1w@mail.gmail.com
In Reply to: Re: [gentoo-user] portage insists in pulling in sys-apps/kmod by Felix Kuperjans
1 On Sat, Mar 23, 2013 at 4:34 PM, Felix Kuperjans
2 <felix@××××××××××××××.com> wrote:
3 > Mike Gilbert:
4 >> On Sat, Mar 23, 2013 at 1:42 PM, Dan Johansson <Dan.Johansson@×××.nu> wrote:
5 >>> Hello,
6 >>>
7 >>> Some of my servers are running with a kernel without module-support.
8 >>> On these servers something has started to pull in sys-apps/kmod, which when compiled complains about missing modules-support in the kernel (as it should).
9 >>> Doing an "equery d sys-apps/kmod" I can see that the following two packages depends on sy-apps/kmod:
10 >>> sys-fs/udev-197-r8 (kmod ? >=sys-apps/kmod-12)
11 >>> virtual/modutils-0 (sys-apps/kmod[tools])
12 >>>
13 >>> sys-fs/udev has "-kmod" in its USE-flags, so that should not be an issue).
14 >>> # emerge --verbose --pretend sys-fs/udev
15 >>> [ebuild R ] sys-fs/udev-197-r8 USE="acl openrc -doc -gudev -hwdb -introspection -keymap -kmod (-selinux) -static-libs" 0 kB
16 >>>
17 >>> With virtual/modutils its an other thing, here we have a circular dependency between virtual/modutils and sys-apps/kmod if the tools USE-flag is set.
18 >> That circular dep is interesting; sys-apps/kmod only depends on
19 >> virtual/modutils because it inherits linux-mod.eclass.
20 >>
21 >> Could you file about about the circular dependency please?
22 > I recognized another issue possibly caused by inheriting linux-mod.eclass:
23 > kmod is pulling in virtual/linux-sources as a dependency, which actually
24 > is not necessary at all (and maybe even annoying, it's at least some
25 > hundred megabytes).
26 >
27
28 You could also file a bug for that.
29
30 I have the following in /etc/portage/profile/package.provided to work around it.
31
32 sys-kernel/vanilla-sources-2.6