Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 15568

Summary: emerge of module-init-tools fails
Product: Gentoo Linux Reporter: Blu3 <david+gentoo.org>
Component: New packagesAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 1.4_rc2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Blu3 2003-02-12 09:33:02 UTC
Simple error/fix, at the end of the emerge, the install portion fails:

 * Generating /etc/modprobe.conf ...
modprobe: Can't open dependencies file /lib/modules/2.5.60/modules.dep (No such
file or directory)
modprobe: Can't open dependencies file /lib/modules/2.5.60/modules.dep (No such
file or directory)

!!! ERROR: sys-apps/module-init-tools-0.9.9 failed.
!!! Function src_install, Line 84, Exitcode 255
!!! Could not create modprobe.conf

'twould be easy to check if the directory for $(uname -r) exists and make it if
it doesn't.  Do this before compiling/installing.

version=$(uname -r)
if [ ! -e /lib/modules/${version} ]; then
      mkdir -p /lib/modules/${version}
      touch /lib/modules/${version}/modules.dep
fi
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-16 04:04:03 UTC
Ill rather go for:

------------------
pkg_setup() {
    get_KV

    if [ ! -f /lib/modules/${KV}/modules.dep ]
    then
        eerror "Please compile and install a kernel first!"
        die "Please compile and install a kernel first!"
    fi
}
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-06 16:21:22 UTC
Added pkg_setup() to ebuild.