| Summary: | KDE build fails with ALSA 1.0 (kdelibs) | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Jake Hamby <jhamby> |
| Component: | [OLD] KDE | Assignee: | Gentoo KDE team <kde> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
arts and kdelibs have been patched. thanks for the report. |
I've seen this happen with several ebuilds and it is usually pretty easy to patch. There is a common pattern in ALSA code to check for the newer 0.9.x API with: #if (SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 9) instead of: #if ((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 9)) || (SND_LIB_MAJOR >= 1) In the case of kdelibs, the test is in configure.in. Here's a patch. *** configure.in.orig 2003-09-09 18:55:38.000000000 -0700 --- configure.in 2004-01-01 14:02:13.805171166 -0800 *************** *** 1541,1547 **** #include <alsa/asoundlib.h> #endif ],[ ! #if (SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 9) /* we have ALSA 0.9.x */ #else #error not ALSA 0.9.x --- 1541,1547 ---- #include <alsa/asoundlib.h> #endif ],[ ! #if ((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 9)) || (SND_LIB_MAJOR >= 1) /* we have ALSA 0.9.x */ #else #error not ALSA 0.9.x