Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158572 - sys-cluster/cman-kernel-1.03, dlm-kernel, gfs-kernel, gnbd-kernel install kernel mods in '/' instead of the '/lib/modules/${KV_FULL}'
Summary: sys-cluster/cman-kernel-1.03, dlm-kernel, gfs-kernel, gnbd-kernel install k...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
: 156526 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-12-19 11:51 UTC by Jasmine
Modified: 2010-09-10 19:01 UTC (History)
2 users (show)

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


Attachments
sys-cluster/cman-kernel ebuild patch (cman-kernel-1.03.00.ebuild.patch,819 bytes, patch)
2006-12-19 11:54 UTC, Jasmine
Details | Diff
sys-cluster/dlm-kernel ebuild patch (dlm-kernel-1.03.00.ebuild.patch,822 bytes, patch)
2006-12-19 11:54 UTC, Jasmine
Details | Diff
sys-cluster/gfs-kernel ebuild patch (gfs-kernel-1.03.00.ebuild.patch,827 bytes, patch)
2006-12-19 11:55 UTC, Jasmine
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jasmine 2006-12-19 11:51:53 UTC
for some odd reason, module_dir is no longer being defined by redhat-cluster (GFS) sources. Now, what happens after emerge gfs-kernel-1.03, is that the compiled modules are installed to '/' instead of '/lib/modules/${KV_FULL}
for example, '/fs/gfs/gfs.ko' is merged to '/', creating a "/fs" directory on '/', where it should actually be installing to /lib/modules/${KV_FULL}/fs/gfs/gfs.ko

I found the problem started happening last month (after portage update) with all the following packages:

sys-cluster/cman-kernel-1.03
sys-cluster/dlm-kernel-1.03
sys-cluster/gfs-kernel-1.03
sys-cluster/gnbd-kernel-1.03


Solution:
In the source_install() of the ebuild file, change this:
emake DESTDIR=${D} install || die "install error"

to this:
emake DESTDIR=${D} module_dir=${D}/lib/modules/${KV_FULL} install || die "install error"


I will make a seperate bug report for sys-cluster/gnbd-kernel-1.03 because it also failed to compile because of devfs stuff which breaks the compile against recent kernels with udev (ebuild requires 2.6.16 or higher kernel anyways, tested with 2.6.17-gentoo-r8), so requires additional patch to the source
Comment 1 Jasmine 2006-12-19 11:54:11 UTC
Created attachment 104379 [details, diff]
sys-cluster/cman-kernel ebuild patch
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-12-19 11:54:14 UTC
*** Bug 156526 has been marked as a duplicate of this bug. ***
Comment 3 Jasmine 2006-12-19 11:54:43 UTC
Created attachment 104380 [details, diff]
sys-cluster/dlm-kernel ebuild patch
Comment 4 Jasmine 2006-12-19 11:55:07 UTC
Created attachment 104381 [details, diff]
sys-cluster/gfs-kernel ebuild patch
Comment 5 Micheal Marineau (RETIRED) gentoo-dev 2007-01-13 01:57:09 UTC
cman-kernel and dlm-kernel are fixed in CVS. I don't use gfs or gndb, but I'll fix those soon if no one else does.
Comment 6 Christian Zoffoli (RETIRED) gentoo-dev 2007-03-03 00:00:48 UTC
gfs and gndb fixed.