A lot of packages require alsa to be emerged. But since in newer Kernel version alsa is included directly into the kernel and OSS is deprechated alsa-driver doesn't work anymore. But users which run a 2.4-series kernel still need alsa-driver to get alsa working. I'm currently using an 2.6-test3 kernel. When I try to emerge alsa-driver I get an error. (see attached buildlog) I think when you have an 2.5 series kernel or something newer you must not install alsa-driver. So: 1. How to cleanly detect which kernel version the user uses? 2. What should be done if the user has two kernels (e.g. 2.4 and 2.6 series) installed? 3. If the users has an 2.6 series kernel: How to remove the dependency to alsa-drivers? 4. How to detect if the user has compiled-in alsa in the kernel? Maybe some of the questions above have simple answers, but I think in general this could be a great problem... greetz, Nomike aka Michael Postmann
Created attachment 16074 [details] Buildlog of "emerge alsa-driver"
Forgot to add "emerge info" Output: Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) ================================================================= System uname: 2.6.0-test3 i686 AMD Athlon(tm) GENTOO_MIRRORS="http://gentoo.inode.at/" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss apm cups encode foomaticdb gif jpeg libg++ mad mikmod mmx ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline arts tetex svga tcltk java guile mysql postgres X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif acl apache2 cdr clamav doc firebird gd gtk2 gtkhtml imap informix innodb ipv6 mozilla odbc samba sasl slp snmp socks5 tiff wmf xinerama -3dnow -avi -crypt -mpeg -opengl" COMPILER="gcc3" CHOST="i586-pc-linux-gnu" CFLAGS="-march=pentium-mmx -O2 -pipe" CXXFLAGS="-march=pentium-mmx -O2 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" FEATURES="ccache sandbox"
*** This bug has been marked as a duplicate of 25388 ***