Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30425 - alsa-tools won't build without alsa-driver on 2.6 kernel
Summary: alsa-tools won't build without alsa-driver on 2.6 kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-05 13:41 UTC by Bob Thomas
Modified: 2003-10-15 15:07 UTC (History)
2 users (show)

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


Attachments
patch for alsa-tools to work with 2.6.0 headers (alsa-tools-kernel26.diff,2.04 KB, patch)
2003-10-06 11:44 UTC, Bob Thomas
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Thomas 2003-10-05 13:41:34 UTC
Even though the 2.6 kernel provides ALSA, the tools and possibly other ALSA
dependant packages won't build.

Reproducible: Always
Steps to Reproduce:
1. build 2.6 kernel with ALSA
2. DON'T have alsa-driver install
3. attempt to build alsa-tools

Actual Results:  
build fails because it can't find the correct headers

Expected Results:  
build should have used the headers of the currently running kernel instead of
those in /usr/include where the alsa-driver package puts them.

if some sort of conditional check can be devised to determine if the ALSA driver
is being provided by alsa-driver or by the kernel, the following line can be
changed:

econf || die "configuration failure"

to

econf --with-soundbase=/usr/src/linux/include || die "configuration failure" 

or some variant thereof (if there is a 2.4 kernel in /usr/src/linux but a 2.6
kernel in /usr/src/linux-beta)
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-10-06 00:30:12 UTC
kernel-team: is this useable ?
Comment 2 Bob Thomas 2003-10-06 09:18:26 UTC
The check used in nvidia-kernel would probably work.
Comment 3 Brian Jackson (RETIRED) gentoo-dev 2003-10-06 10:05:41 UTC
Can you work up a patch based on the test in nvidia-kernel, and make sure
it works correctly?
Comment 4 Bob Thomas 2003-10-06 11:44:27 UTC
Created attachment 18862 [details, diff]
patch for alsa-tools to work with 2.6.0 headers

Never made a patch before, so I hope it works right.

The modified ebuild works for me.
Comment 5 Andreas Proschofsky (RETIRED) gentoo-dev 2003-10-09 04:50:23 UTC
this has already been fixed in cvs so please close this bug
Comment 6 Bob Thomas 2003-10-09 08:03:37 UTC
Ok, so that's a better solution....ignore my patch, then.
Comment 7 SpanKY gentoo-dev 2003-10-15 15:07:28 UTC
users claim it's fixed :)