Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35714 - xfree-drm-4.3.0-r6: kernel modules go under /lib/modules/KERNEL_VERSION/kernel where they get clobbered by make modules_install
Summary: xfree-drm-4.3.0-r6: kernel modules go under /lib/modules/KERNEL_VERSION/kerne...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-13 03:16 UTC by Tavin Cole
Modified: 2004-03-14 13:25 UTC (History)
0 users

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


Attachments
Patch to make xfree-drm use new module location (xfree-drm-4.3.0-r7.ebuild.patch,994 bytes, patch)
2004-02-04 16:23 UTC, Bryan Stine (RETIRED)
Details | Diff
xfree-drm modules.d file to be placed in xfree-drm/files/ (modules.d-xfree-drm,50 bytes, text/plain)
2004-02-04 16:24 UTC, Bryan Stine (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tavin Cole 2003-12-13 03:16:03 UTC
the xfree-drm-4.3.0-r6 ebuild puts the kernel modules in /lib/modules/KERNEL_VERSION/kernel/drivers/char/drm.  then if you decide to change your kernel modules and run make modules_install, it deletes the kernel modules that were installed by xfree-drm.

solution: put the modules under /lib/modules/KERNEL_VERSION/xfree-drm or something.  put a file at /etc/modules.d/xfree-drm with:

keep
path[xfree-drm]=/lib/modules/KERNEL_VERSION/xfree-drm

this is the strategy that the sys-apps/thinkpad ebuild uses

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2004-01-18 19:19:05 UTC
Bryan, can you take a look at this?
Comment 2 Bryan Stine (RETIRED) gentoo-dev 2004-02-04 16:23:49 UTC
Created attachment 24966 [details, diff]
Patch to make xfree-drm use new module location
Comment 3 Bryan Stine (RETIRED) gentoo-dev 2004-02-04 16:24:31 UTC
Created attachment 24967 [details]
xfree-drm modules.d file to be placed in xfree-drm/files/
Comment 4 Bryan Stine (RETIRED) gentoo-dev 2004-02-04 16:27:37 UTC
Ok, I've got a patch to the xfree-drm ebuild and the required modules.d file attached. As per your great suggestion, it will install to /lib/modules/`uname -r`/xfree-drm. I've tested merging it with VIDEO_CARDS settings including radeon (with and without USE="gatos") and mach64. Please test this yourself to make sure the module actually works. Thanks.

If you don't already know how this works, please copy /usr/portage/x11-base/xfree-drm into your PORTDIR_OVERLAY (usually /usr/local/portage, set in make.conf) and apply the patch in the overlay (patch -p0 <file.patch). You can then merge it normally.
Comment 5 Bryan Stine (RETIRED) gentoo-dev 2004-03-14 13:25:39 UTC
The above changes have been added to xfree-drm-4.3.0-r7. Please 'emerge sync' to get an updated tree with the changes. The changes will also be in further revisions. Thanks.