Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 18862 Details for
Bug 30425
alsa-tools won't build without alsa-driver on 2.6 kernel
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for alsa-tools to work with 2.6.0 headers
alsa-tools-kernel26.diff (text/plain), 2.04 KB, created by
Bob Thomas
on 2003-10-06 11:44:27 UTC
(
hide
)
Description:
patch for alsa-tools to work with 2.6.0 headers
Filename:
MIME Type:
Creator:
Bob Thomas
Created:
2003-10-06 11:44:27 UTC
Size:
2.04 KB
patch
obsolete
>--- alsa-tools-0.9.7.ebuild 2003-10-06 14:25:31.237659576 -0400 >+++ alsa-tools-0.9.7-r1.ebuild 2003-10-06 14:38:07.723656224 -0400 >@@ -29,19 +29,73 @@ > # hdsploader > # sscape_ctl > >+check_version_h() { >+ if [ ! -f "${ROOT}/usr/src/linux/include/linux/version.h" ] >+ then >+ eerror "Please verify that your /usr/src/linux symlink is pointing" >+ eerror "to your current kernel sources, and that you did run:" >+ eerror >+ eerror " # make dep" >+ die "/usr/src/linux symlink not setup!" >+ fi >+} >+ >+get_KV_info() { >+ check_version_h >+ >+ # Get the kernel version of sources in /usr/src/linux ... >+ export KV_full="$(awk '/UTS_RELEASE/ { gsub("\"", "", $3); print $3 }' \ >+ "${ROOT}/usr/src/linux/include/linux/version.h")" >+ export KV_major="$(echo "${KV_full}" | cut -d. -f1)" >+ export KV_minor="$(echo "${KV_full}" | cut -d. -f2)" >+ export KV_micro="$(echo "${KV_full}" | cut -d. -f3 | sed -e 's:[^0-9].*::')" >+} >+ >+is_2_5_kernel() { >+ get_KV_info >+ >+ if [ "${KV_major}" -eq 2 -a "${KV_minor}" -eq 5 ] >+ then >+ return 0 >+ else >+ return 1 >+ fi >+} >+ >+is_2_6_kernel() { >+ get_KV_info >+ >+ if [ "${KV_major}" -eq 2 -a "${KV_minor}" -eq 6 ] >+ then >+ return 0 >+ else >+ return 1 >+ fi >+} >+ >+ > src_compile() { > # hdspmixer requires fltk > export LDFLAGS="-L/usr/lib/fltk-1.1" > export CPPFLAGS="-I/usr/include/fltk-1.1" > >+ get_KV_info >+ > # hdspmixer is missing depconf - copy from the hdsploader directory > cp ${S}/hdsploader/depcomp ${S}/hdspmixer/ > >+ einfo "Linux kernel ${KV_major}.${KV_minor}.${KV_micro}" >+ > local f > for f in ${ALSA_TOOLS} > do > cd "${S}/${f}" >- econf || die "configure failed" >+ if is_2_5_kernel || is_2_6_kernel >+ then >+ econf --with-soundbase=/usr/src/linux/include || die "configure failed" >+ else >+ econf || die "configuration failure" >+ fi > make || die "make failed" > done > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 30425
: 18862