diff options
author | Jeremy Huddleston <eradicator@gentoo.org> | 2004-03-24 03:42:56 +0000 |
---|---|---|
committer | Jeremy Huddleston <eradicator@gentoo.org> | 2004-03-24 03:42:56 +0000 |
commit | cf62a5c33cb59011b23378cc4128218184339df9 (patch) | |
tree | b8587fb09906ce1532af7d298f8ba54d588a1495 /media-sound/alsa-driver | |
parent | (Manifest recommit) (diff) | |
download | gentoo-2-cf62a5c33cb59011b23378cc4128218184339df9.tar.gz gentoo-2-cf62a5c33cb59011b23378cc4128218184339df9.tar.bz2 gentoo-2-cf62a5c33cb59011b23378cc4128218184339df9.zip |
Adding ebuild kludgery to get alsa-driver to work with 2.6 kernels. Closes bug #42062.
Diffstat (limited to 'media-sound/alsa-driver')
-rw-r--r-- | media-sound/alsa-driver/ChangeLog | 7 | ||||
-rw-r--r-- | media-sound/alsa-driver/alsa-driver-1.0.0_rc2.ebuild | 4 | ||||
-rw-r--r-- | media-sound/alsa-driver/alsa-driver-1.0.1.ebuild | 4 | ||||
-rw-r--r-- | media-sound/alsa-driver/alsa-driver-1.0.2c.ebuild | 6 | ||||
-rw-r--r-- | media-sound/alsa-driver/alsa-driver-1.0.3.ebuild | 71 |
5 files changed, 59 insertions, 33 deletions
diff --git a/media-sound/alsa-driver/ChangeLog b/media-sound/alsa-driver/ChangeLog index e17fda225143..ff78fea6c15e 100644 --- a/media-sound/alsa-driver/ChangeLog +++ b/media-sound/alsa-driver/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-sound/alsa-driver # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/ChangeLog,v 1.74 2004/03/05 03:29:47 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/ChangeLog,v 1.75 2004/03/24 03:42:56 eradicator Exp $ + + 23 Mar 2004; Jeremy Huddleston <eradicator@gentoo.org> + alsa-driver-1.0.3.ebuild: + Adding ebuild kludgery to get alsa-driver to work with 2.6 kernels. Closes bug + #42062. 04 Mar 2004; Jeremy Huddleston <eradicator@gentoo.org> alsa-driver-0.9.8.ebuild: diff --git a/media-sound/alsa-driver/alsa-driver-1.0.0_rc2.ebuild b/media-sound/alsa-driver/alsa-driver-1.0.0_rc2.ebuild index 8f3597ee32fa..94eddf7c5cce 100644 --- a/media-sound/alsa-driver/alsa-driver-1.0.0_rc2.ebuild +++ b/media-sound/alsa-driver/alsa-driver-1.0.0_rc2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/alsa-driver-1.0.0_rc2.ebuild,v 1.5 2004/02/15 08:22:08 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/alsa-driver-1.0.0_rc2.ebuild,v 1.6 2004/03/24 03:42:56 eradicator Exp $ DESCRIPTION="Advanced Linux Sound Architecture kernel modules" HOMEPAGE="http://www.alsa-project.org/" @@ -38,7 +38,7 @@ src_unpack() { unpack ${A} cd ${S} ewarn "This does not work with kernel 2.6 !!!" - ewarn "Please use the kernel modules or alsa-driver-1.0.2c or greater" + ewarn "Please use the kernel modules or alsa-driver-1.0.3 or greater" # The makefile still installs an alsasound initscript, # which we REALLY dont want. # This patch stops that diff --git a/media-sound/alsa-driver/alsa-driver-1.0.1.ebuild b/media-sound/alsa-driver/alsa-driver-1.0.1.ebuild index 70c1d2da7727..c348f94eeae9 100644 --- a/media-sound/alsa-driver/alsa-driver-1.0.1.ebuild +++ b/media-sound/alsa-driver/alsa-driver-1.0.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/alsa-driver-1.0.1.ebuild,v 1.5 2004/02/15 08:22:08 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/alsa-driver-1.0.1.ebuild,v 1.6 2004/03/24 03:42:56 eradicator Exp $ DESCRIPTION="Advanced Linux Sound Architecture kernel modules" HOMEPAGE="http://www.alsa-project.org/" @@ -38,7 +38,7 @@ src_unpack() { unpack ${A} cd ${S} ewarn "This does not work with kernel 2.6 !!!" - ewarn "Please use the kernel modules or alsa-driver-1.0.2c or greater" + ewarn "Please use the kernel modules or alsa-driver-1.0.3 or greater" # The makefile still installs an alsasound initscript, # which we REALLY dont want. # This patch stops that diff --git a/media-sound/alsa-driver/alsa-driver-1.0.2c.ebuild b/media-sound/alsa-driver/alsa-driver-1.0.2c.ebuild index 686a216bd929..bbd9260fd591 100644 --- a/media-sound/alsa-driver/alsa-driver-1.0.2c.ebuild +++ b/media-sound/alsa-driver/alsa-driver-1.0.2c.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/alsa-driver-1.0.2c.ebuild,v 1.2 2004/02/15 08:22:08 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/alsa-driver-1.0.2c.ebuild,v 1.3 2004/03/24 03:42:56 eradicator Exp $ DESCRIPTION="Advanced Linux Sound Architecture kernel modules" HOMEPAGE="http://www.alsa-project.org/" @@ -37,6 +37,8 @@ S=${WORKDIR}/${MY_P} src_unpack() { unpack ${A} cd ${S} + ewarn "This does not work with kernel 2.6 !!!" + ewarn "Please use the kernel modules or alsa-driver-1.0.3 or greater" # The makefile still installs an alsasound initscript, # which we REALLY dont want. # This patch stops that @@ -87,7 +89,7 @@ pkg_postinst() { einfo "Also, remember that all mixer channels will be MUTED by default." einfo "Use the 'alsamixer' program to unmute them." einfo - einfo "Version 1.0.2c and above should work with version 2.6 kernels." + einfo "Version 1.0.3 and above should work with version 2.6 kernels." einfo "If you experience problems, please report bugs to http://bugs.gentoo.org." einfo } diff --git a/media-sound/alsa-driver/alsa-driver-1.0.3.ebuild b/media-sound/alsa-driver/alsa-driver-1.0.3.ebuild index 5bd74cdf20a8..74f6d8406349 100644 --- a/media-sound/alsa-driver/alsa-driver-1.0.3.ebuild +++ b/media-sound/alsa-driver/alsa-driver-1.0.3.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/alsa-driver-1.0.3.ebuild,v 1.1 2004/03/01 08:53:08 mholzer Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/alsa-driver-1.0.3.ebuild,v 1.2 2004/03/24 03:42:56 eradicator Exp $ + +inherit eutils kernel-mod DESCRIPTION="Advanced Linux Sound Architecture kernel modules" HOMEPAGE="http://www.alsa-project.org/" @@ -13,25 +15,25 @@ LICENSE="GPL-2 LGPL-2.1" # # env ALSA_CARDS='emu10k1 intel8x0 ens1370' emerge alsa-driver # -[ x"${ALSA_CARDS}" = x ] && ALSA_CARDS=all +[ -z "${ALSA_CARDS}" ] && ALSA_CARDS=all IUSE="oss" -# Need the baselayout 1.7.9 or newer for the init script to work correctly. -DEPEND="sys-devel/autoconf - virtual/glibc +RDEPEND="virtual/modutils" + +DEPEND="${RDEPEND} virtual/linux-sources - >=sys-apps/portage-1.9.10 - >=sys-apps/baselayout-1.7.9" + sys-devel/autoconf + sys-apps/debianutils" + PROVIDE="virtual/alsa" SLOT="${KV}" KEYWORDS="~x86 ~ppc -sparc ~amd64 ~alpha ~ia64" MY_P=${P/_rc/rc} -#SRC_URI="ftp://ftp.alsa-project.org/pub/driver/${MY_P}.tar.bz2" SRC_URI="mirror://alsaproject/driver/${P}.tar.bz2" -RESTRICT="nomirror" +RESTRICT="nomirror" # nouserpriv is neccessary for 2.6.x kernels... Hopefully the ALSA guys will figure out another way to do this... S=${WORKDIR}/${MY_P} src_unpack() { @@ -42,28 +44,45 @@ src_unpack() { # This patch stops that epatch ${FILESDIR}/makefile.patch || die "Makefile patch failed" epatch ${FILESDIR}/${PN}-0.9.8-au-fix.patch -} + if kernel-mod_is_2_6_kernel || kernel-mod_is_2_5_kernel; then + FULL_KERNEL_PATH="${ROOT}/usr/src/${KV_DIR}" + + if ! [ -d "${FULL_KERNEL_PATH}" ]; then + eerror "An error seems to have occurred. We looked in ${FULL_KERNEL_PATH} for your kernel sources, but we didn't see them." + die "ALSA driver configuration failure." + fi + + einfo "A 2.5 or 2.6 kernel was detected. We are copying the kernel source tree from" + einfo "${FULL_KERNEL_PATH} to ${T}/linux" + einfo "because the alsa-driver build process overwrites files in the 2.6.x kernel tree." + + # Copy everything over to our tmp dir... + cp -a ${FULL_KERNEL_PATH} ${T}/linux + fi +} src_compile() { - # Portage should determine the version of the kernel sources - check_KV - - myconf="" - use oss && myconf="$myconf --with-oss=yes" || \ - myconf="$myconf --with-oss=no" - - ./configure \ - $myconf \ - --host=${CHOST} \ - --prefix=/usr \ - --with-kernel="${ROOT}usr/src/linux" \ + # Default ARCH & kernel path to set in compilation and make + KER_ARCH=${ARCH} + KER_DIR=${KERNEL_DIR} + + # If we're using a 2.5 or 2.6 kernel, use our copied kernel tree. + if [ -d "${T}/linux" ]; then + KER_DIR="${T}/linux" + + # Set the kernel ARCH + use x86 && KER_ARCH="i386" + use amd64 && KER_ARCH="x86_64" + fi + + econf `use_with oss` \ + --with-kernel="${KER_DIR}" \ --with-isapnp=yes \ --with-sequencer=yes \ - --with-cards="${ALSA_CARDS}" \ - || die "./configure failed" + --with-cards="${ALSA_CARDS}" - emake || die "Parallel Make Failed" + emake ARCH="${KER_ARCH}" || die "Parallel Make Failed" } @@ -87,7 +106,7 @@ pkg_postinst() { einfo "Also, remember that all mixer channels will be MUTED by default." einfo "Use the 'alsamixer' program to unmute them." einfo - einfo "Version 1.0.2c and above should work with version 2.6 kernels." + einfo "Version 1.0.3 and above should work with version 2.6 kernels." einfo "If you experience problems, please report bugs to http://bugs.gentoo.org." einfo } |