| Summary: | fix for media-video/ati-drivers-3.2.5.ebuild | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Kimball Thurston <kdt3rd> |
| Component: | New packages | Assignee: | Gentoo X packagers <x11> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | ktecho |
| Priority: | High | ||
| Version: | 1.4 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | patches firegl_public.c | ||
Created attachment 17380 [details, diff]
patches firegl_public.c
I should have learned how to use Bugzilla first... :)
seems that there are many ways to fix that glitch, give me some time to figure which will work for more time [memento for me get subscribed to the lkml asap...] marking this bug duplicate of #28288 *** This bug has been marked as a duplicate of 28288 *** luca in r1 please also add fireglcontrol.static istallation for people not having qt installed probably I'll put a local useflag about that. please consider that you have to wait a bit since I'm currently swamped in my exams session and I don't have the time to check and prepare a complete r1 (including .desktops placed in the right places, gnome and kde useflag and 2.6 fixes) |
below are two "patches" to make a new ati-drivers-3.2.5-r1.ebuild that fix problems compiling the ati-drivers under the latest development kernel (2.6.0-test5). They aren't a complete fix, because i couldn't figure out how to test for > test4. ---------------------------------- diff -Nurp /usr/portage/media-video/ati-drivers/ati-drivers-3.2.5.ebuild ati-drivers-3.2.5-r1.ebuild --- /usr/portage/media-video/ati-drivers/ati-drivers-3.2.5.ebuild 2003-09-08 05:11:05.000000000 -0700 +++ ati-drivers-3.2.5-r1.ebuild 2003-09-09 19:05:22.459363064 -0700 @@ -51,6 +51,8 @@ src_unpack() { patch -p1 < ${FILESDIR}/fglrx-2.6-amd-adv-spec-fix.patch einfo "applying fglrx-2.6-vmalloc-vmaddr" patch -p1 < ${FILESDIR}/fglrx-2.6-vmalloc-vmaddr.patch + einfo "applying fglrx-2.6.0-test5-inode-minor.patch" + patch -p1 < ${FILESDIR}/fglrx-2.6.0-test5-inode-minor.patch fi } ------------------------------------------- ------------------------------------------- diff -Nurp /dev/null files/fglrx-2.6.0-test5-inode-minor.patch --- /dev/null 1969-12-31 16:00:00.000000000 -0800 +++ files/fglrx-2.6.0-test5-inode-minor.patch 2003-09-09 19:12:36.113437624 -0700 @@ -0,0 +1,25 @@ +diff -Nurp ../fgl.orig/build_mod/firegl_public.c build_mod/firegl_public.c +--- ../fgl.orig/build_mod/firegl_public.c 2003-09-09 18:59:43.209936816 -0700 ++++ build_mod/firegl_public.c 2003-09-09 18:55:45.243113272 -0700 +@@ -419,7 +419,9 @@ static int firegl_proc_cleanup( int mino + + static int firegl_stub_open(struct inode *inode, struct file *filp) + { +-#if LINUX_VERSION_CODE > 0x020500 ++#if LINUX_VERSION_CODE >= 0x020600 ++ int minor = iminor(inode); ++#elif LINUX_VERSION_CODE > 0x020500 + int minor = minor(inode->i_rdev); + #else + int minor = MINOR(inode->i_rdev); +@@ -845,7 +847,9 @@ const char* __ke_module_parm(void) + + int __ke_inode_rdev_minor(struct inode* inode) + { +-#if LINUX_VERSION_CODE > 0x020500 ++#if LINUX_VERSION_CODE >= 0x020600 ++ return iminor(inode); ++#elif LINUX_VERSION_CODE > 0x020500 + return minor(inode->i_rdev); + #else + return MINOR(inode->i_rdev);