From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-146075-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 2658C138010
	for <garchives@archives.gentoo.org>; Sun, 24 Mar 2013 16:39:42 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id EBE0EE085D;
	Sun, 24 Mar 2013 16:39:33 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 8EFFDE074E
	for <gentoo-user@lists.gentoo.org>; Sun, 24 Mar 2013 16:39:32 +0000 (UTC)
Received: from mail-ie0-x235.google.com (mail-ie0-x235.google.com [IPv6:2607:f8b0:4001:c03::235])
	(using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
	(No client certificate requested)
	(Authenticated sender: floppym)
	by smtp.gentoo.org (Postfix) with ESMTPSA id 95C0A33BE52
	for <gentoo-user@lists.gentoo.org>; Sun, 24 Mar 2013 16:39:31 +0000 (UTC)
Received: by mail-ie0-f181.google.com with SMTP id 17so6402683iea.40
        for <gentoo-user@lists.gentoo.org>; Sun, 24 Mar 2013 09:39:29 -0700 (PDT)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
X-Received: by 10.50.6.202 with SMTP id d10mr5672686iga.28.1364143169865; Sun,
 24 Mar 2013 09:39:29 -0700 (PDT)
Received: by 10.64.102.66 with HTTP; Sun, 24 Mar 2013 09:39:29 -0700 (PDT)
In-Reply-To: <514E11BD.7010309@desaster-games.com>
References: <3565546.OiNQyl8pmS@queen>
	<CAJ0EP40NKMtsOruQy5mHy_crRYQppa1bobQpBbeB+yp61J_oFw@mail.gmail.com>
	<514E11BD.7010309@desaster-games.com>
Date: Sun, 24 Mar 2013 12:39:29 -0400
Message-ID: <CAJ0EP410qxJp8tehdsn4PSonLvqBkbQGhs_vC2ViG13kQOit1w@mail.gmail.com>
Subject: Re: [gentoo-user] portage insists in pulling in sys-apps/kmod
From: Mike Gilbert <floppym@gentoo.org>
To: gentoo-user@lists.gentoo.org
Content-Type: text/plain; charset=UTF-8
X-Archives-Salt: ca5b76b1-4cc5-4d2a-a425-42b78496d615
X-Archives-Hash: 5723d6e3ce589df2216ddab9ed3d20e0

On Sat, Mar 23, 2013 at 4:34 PM, Felix Kuperjans
<felix@desaster-games.com> wrote:
> Mike Gilbert:
>> On Sat, Mar 23, 2013 at 1:42 PM, Dan Johansson <Dan.Johansson@dmj.nu> wrote:
>>> Hello,
>>>
>>> Some of my servers are running with a kernel without module-support.
>>> 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).
>>> Doing an "equery d sys-apps/kmod" I can see that the following two packages depends on sy-apps/kmod:
>>> sys-fs/udev-197-r8 (kmod ? >=sys-apps/kmod-12)
>>> virtual/modutils-0 (sys-apps/kmod[tools])
>>>
>>> sys-fs/udev has "-kmod" in its USE-flags, so that should not be an issue).
>>> # emerge --verbose --pretend sys-fs/udev
>>> [ebuild   R    ] sys-fs/udev-197-r8  USE="acl openrc -doc -gudev -hwdb -introspection -keymap -kmod (-selinux) -static-libs" 0 kB
>>>
>>> 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.
>> That circular dep is interesting; sys-apps/kmod only depends on
>> virtual/modutils because it inherits linux-mod.eclass.
>>
>> Could you file about about the circular dependency please?
> I recognized another issue possibly caused by inheriting linux-mod.eclass:
> kmod is pulling in virtual/linux-sources as a dependency, which actually
> is not necessary at all (and maybe even annoying, it's at least some
> hundred megabytes).
>

You could also file a bug for that.

I have the following in /etc/portage/profile/package.provided to work around it.

sys-kernel/vanilla-sources-2.6