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.


$ 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"

Alan McKinnon

Reply via email to