From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-146466-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 556C6138010
	for <garchives@archives.gentoo.org>; Wed,  3 Apr 2013 16:57:56 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id D0940E0B7C;
	Wed,  3 Apr 2013 16:57:47 +0000 (UTC)
Received: from smtp2.mail.fcom.ch (smtp2.mail.fcom.ch [212.60.46.171])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 70045E0ABE
	for <gentoo-user@lists.gentoo.org>; Wed,  3 Apr 2013 16:57:46 +0000 (UTC)
Received: from dmj.nu (213-11-144-5-pool.cable.fcom.ch [5.144.11.213])
	by smtp2.mail.fcom.ch (Postfix) with ESMTP id E3D63205CC
	for <gentoo-user@lists.gentoo.org>; Wed,  3 Apr 2013 16:57:44 +0000 (UTC)
Received: from queen.localnet (queen.dmj.nu [192.168.1.11])
  by dmj.nu with ESMTP; Wed, 03 Apr 2013 18:57:44 +0200
  id 000000000070D076.00000000515C5F88.00003B3A
From: Dan Johansson <Dan.Johansson@dmj.nu>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] kmod requires modules in kernel??
Date: Wed, 03 Apr 2013 18:57:44 +0200
Message-ID: <2793284.i541zSFqIH@queen>
User-Agent: KMail/4.9.5 (Linux/3.7.10-gentoo; KDE/4.9.5; x86_64; ; )
In-Reply-To: <515C4657.2010508@gmail.com>
References: <515C2670.70409@libertytrek.org> <515C4657.2010508@gmail.com>
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
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
X-message-flag: Using Microsoft software might be a security risk
X-Virus-Scanned: clamav-milter 0.96.5 at smtp2
X-Virus-Status: Clean
X-Archives-Salt: 18e25ace-f4ea-42c6-b46d-9641a71970f5
X-Archives-Hash: 88720a9c6de59e8fa226dfe974fa6477


On Wednesday 03 April 2013 17.10:15 Alan McKinnon wrote:
> On 03/04/2013 14:54, Tanstaafl wrote:
> > Ok, I am prepping for the udev update this weekend, getting everything
> > updated that doesn't pull in the udev updates.
> > 
> > First thing I did was to eliminate the module-init-tools<>kmod Blocker:
> > 
> > emerge -C module-init-tools %% emerge kmod
> > 
> > and noted the following warnings/errors:
> > 
> > Checking for suitable kernel configuration options...
> > ERROR: setup
> >   CONFIG_MODULES:     is not set when it should be.
> >   CONFIG_MODULE_UNLOAD:     is not set when it should be.
> > 
> > This is a server, and I do not WANT loadable modules enabled...
> > 
> > So, how do I get rid of this warning/error? Or is this nothing to be
> > concerned about if I do not want/need loadable modules?
> > 
> > Thanks
> > 
> 
> 
> The warning makes sense and is correct. kmod is a set of tools to
> manipulate kernel modules. It's pointless having it if the kernel does
> not use modules. Therefore, the error check exists.
> 
> Furthermore,
> 
> $ equery depends kmod
>  * These packages depend on kmod:
> sys-fs/udev-200 (kmod ? >=sys-apps/kmod-12)
> virtual/modutils-0 (sys-apps/kmod[tools])
> 
> 
> $ equery depends virtual/modutils
>  * These packages depend on virtual/modutils:
> app-emulation/virtualbox-modules-4.2.10 (kernel_linux ?virtual/modutils)
> app-emulation/vmware-modules-271.2 (kernel_linux ? virtual/modutils)
> sys-apps/rescan-scsi-bus-1.56 (virtual/modutils)
> 
> $ equery depends rescan-scsi-bus
>  * These packages depend on rescan-scsi-bus:
> sys-apps/sg3_utils-1.35 (>=sys-apps/rescan-scsi-bus-1.24)
> 
> 
> $ equery depends sg3_utils
>  * These packages depend on sg3_utils:
> media-libs/libgpod-0.8.2 (sys-apps/sg3_utils)
> sys-apps/rescan-scsi-bus-1.56 (>=sys-apps/sg3_utils-1.24)
> sys-fs/udisks-1.0.4-r5 (>=sys-apps/sg3_utils-1.27.20090411)
> 
> 
> It's hard to escape those hard masks. Do these steps:
> 
> 1. File a bug, this behaviour is overly constrictive
> 2. Copy kmod to your local overlay and delete the kernel modules check
> 3. USE="-kmod"

I am having exactly the same issue, server with module-less kernel, USE=-kmod set, but portage still wants to pull in virtual/modutils and sys-apps/kmod (and I have nothing "depending" on either of those two).
At the moment I am looking into mdev instead of udev for these servers.
If you open a bug please post the bug# here.

-- 
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************