Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15568 - emerge of module-init-tools fails
Summary: emerge of module-init-tools fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-12 09:33 UTC by Blu3
Modified: 2003-03-06 16:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.