Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25948 - Trivial patch for alsa-driver to enable compilation with wolk-sources
Summary: Trivial patch for alsa-driver to enable compilation with wolk-sources
Status: RESOLVED DUPLICATE of bug 25731
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-05 04:47 UTC by kfm
Modified: 2005-07-17 13:06 UTC (History)
0 users

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


Attachments
Patch to enable ALSA to compile against WOLK sources (alsa-wolk-compile-fix.patch,459 bytes, patch)
2003-08-05 04:48 UTC, kfm
Details | Diff
Patch to enable ALSA to compile against WOLK sources (alsa-wolk-compile-fix.patch,459 bytes, text/plain)
2003-08-05 04:48 UTC, kfm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kfm 2003-08-05 04:47:40 UTC
Hi,

in the inlude/adriver.h file in the alsa-driver source code there is a
definition as such:

#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 4)
#include <linux/fs.h>
static inline struct proc_dir_entry *PDE(const struct inode *inode)
{
        return (struct proc_dir_entry *) inode->u.generic_ip;
}

By changing the if statement to:

#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 4) && !defined(WE_ARE_WOLKS)

we can also ensure that alsa-driver compiles without a hitch against the WOLK
kernel (sys-kernel/wolk-sources). As this makes life easier for us WOLK users,
and has no adverse effect on the compilation of the alsa modules under any other
circumstances, please could you consider adding the patch?

I've attached the patch in full. Thanks.
Comment 1 kfm 2003-08-05 04:48:22 UTC
Created attachment 15537 [details, diff]
Patch to enable ALSA to compile against WOLK sources
Comment 2 kfm 2003-08-05 04:48:41 UTC
Created attachment 15538 [details]
Patch to enable ALSA to compile against WOLK sources
Comment 3 kfm 2003-08-05 04:49:49 UTC
Sorry about the patch double-post, Bugzilla threw up an error which led me to believe that it hadn't been submitted ;-)
Comment 4 kfm 2003-08-10 07:08:11 UTC

*** This bug has been marked as a duplicate of 25731 ***