summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Cox <steel300@gentoo.org>2004-04-28 22:19:49 +0000
committerJason Cox <steel300@gentoo.org>2004-04-28 22:19:49 +0000
commit808d2ffde83ee5e7a1db999bd04fa7d7ef5fafd4 (patch)
tree70bfa7886a50e617060f847f44446a865dc879c0 /media-video/nvidia-kernel/nvidia-kernel-1.0.4496-r3.ebuild
parentVersion bump (diff)
downloadhistorical-808d2ffde83ee5e7a1db999bd04fa7d7ef5fafd4.tar.gz
historical-808d2ffde83ee5e7a1db999bd04fa7d7ef5fafd4.tar.bz2
historical-808d2ffde83ee5e7a1db999bd04fa7d7ef5fafd4.zip
Fix is_2_6_kernel. Close Bug 48060
Diffstat (limited to 'media-video/nvidia-kernel/nvidia-kernel-1.0.4496-r3.ebuild')
-rw-r--r--media-video/nvidia-kernel/nvidia-kernel-1.0.4496-r3.ebuild26
1 files changed, 2 insertions, 24 deletions
diff --git a/media-video/nvidia-kernel/nvidia-kernel-1.0.4496-r3.ebuild b/media-video/nvidia-kernel/nvidia-kernel-1.0.4496-r3.ebuild
index f74dccde15cc..01da4184a61c 100644
--- a/media-video/nvidia-kernel/nvidia-kernel-1.0.4496-r3.ebuild
+++ b/media-video/nvidia-kernel/nvidia-kernel-1.0.4496-r3.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-video/nvidia-kernel/nvidia-kernel-1.0.4496-r3.ebuild,v 1.6 2004/04/16 11:18:36 cyfred Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-kernel/nvidia-kernel-1.0.4496-r3.ebuild,v 1.7 2004/04/28 22:19:49 steel300 Exp $
inherit eutils
@@ -57,28 +57,6 @@ get_KV_info() {
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_unpack() {
cd ${WORKDIR}
bash ${DISTDIR}/${NV_PACKAGE}-pkg0.run --extract-only
@@ -96,7 +74,7 @@ src_unpack() {
cd ${S}
einfo "Linux kernel ${KV_major}.${KV_minor}.${KV_micro}"
- if is_2_5_kernel || is_2_6_kernel
+ if is_kernel 2.5 || is_kernel 2.6
then
EPATCH_SINGLE_MSG="Applying tasklet patch ..." \
epatch ${FILESDIR}/${PV}/NVIDIA_kernel-${NV_V}-2.6-20030905.diff