diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2010-04-17 16:46:01 +0000 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2010-04-17 16:46:01 +0000 |
commit | 7cb7753d9d8c38c4a5107a6cecbe29cffb76b97e (patch) | |
tree | 8dff9e0ce6b75f091eb8556d3c692fadef380694 /media-sound/alsa-driver/alsa-driver-9999.ebuild | |
parent | Add ~arm wrt #300823 (diff) | |
download | gentoo-2-7cb7753d9d8c38c4a5107a6cecbe29cffb76b97e.tar.gz gentoo-2-7cb7753d9d8c38c4a5107a6cecbe29cffb76b97e.tar.bz2 gentoo-2-7cb7753d9d8c38c4a5107a6cecbe29cffb76b97e.zip |
Added a check for CONFIG_SOUND_PRIME when oss USE flag is enabled.
With kind permission from beandog.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'media-sound/alsa-driver/alsa-driver-9999.ebuild')
-rw-r--r-- | media-sound/alsa-driver/alsa-driver-9999.ebuild | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/media-sound/alsa-driver/alsa-driver-9999.ebuild b/media-sound/alsa-driver/alsa-driver-9999.ebuild index 8c27e9715745..fdfbe81c0d3c 100644 --- a/media-sound/alsa-driver/alsa-driver-9999.ebuild +++ b/media-sound/alsa-driver/alsa-driver-9999.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/alsa-driver-9999.ebuild,v 1.13 2009/08/13 15:11:32 beandog Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/alsa-driver-9999.ebuild,v 1.14 2010/04/17 16:46:01 polynomial-c Exp $ inherit linux-mod flag-o-matic eutils multilib autotools git @@ -90,6 +90,11 @@ pkg_setup() { local SOUND_ERROR="Your kernel doesn't have sound support enabled." local SOUND_PRIME_ERROR="Your kernel is configured to use the deprecated OSS drivers. Please disable them and re-emerge alsa-driver." + if use oss && kernel_is -ge 2 6 28 ; then + local CONFIG_CHECK+="SOUND_PRIME" + local SOUND_PRIME_ERROR="You enabled oss USE flag but your kernel's soundcore module lacks support of the proper functions. Please enable CONFIG_SOUND_PRIME and re-emerge alsa-driver." + fi + linux-mod_pkg_setup if [[ ${PROFILE_ARCH} == "sparc64" ]] ; then |