diff options
author | Donnie Berkholz <spyderous@gentoo.org> | 2003-10-20 06:43:35 +0000 |
---|---|---|
committer | Donnie Berkholz <spyderous@gentoo.org> | 2003-10-20 06:43:35 +0000 |
commit | 0a2dcb9682815044e01b0ce2609d945632d91214 (patch) | |
tree | 55e008aad3898e610d79a7180effb64e4570b16d /eclass | |
parent | fixing Manifest (diff) | |
download | gentoo-2-0a2dcb9682815044e01b0ce2609d945632d91214.tar.gz gentoo-2-0a2dcb9682815044e01b0ce2609d945632d91214.tar.bz2 gentoo-2-0a2dcb9682815044e01b0ce2609d945632d91214.zip |
Fix is_kernel, it used check_KV, which is against uname.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/xfree.eclass | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/eclass/xfree.eclass b/eclass/xfree.eclass index 147e8fd1d7e3..2e67d05f6836 100644 --- a/eclass/xfree.eclass +++ b/eclass/xfree.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/xfree.eclass,v 1.9 2003/09/30 07:22:40 spyderous Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/xfree.eclass,v 1.10 2003/10/20 06:43:35 spyderous Exp $ # # Author: Seemant Kulleen <seemant@gentoo.org> # @@ -13,7 +13,7 @@ ECLASS=xfree INHERITED="${INHERITED} ${ECLASS}" -EXPORT_FUNCTIONS vcards is_kernel strip_bins +EXPORT_FUNCTIONS vcards is_kernel strip_bins strip_bins_x11r6 vcards() { has "$1" ${VIDEO_CARDS} && return 0 @@ -28,8 +28,19 @@ filter-patch() { # Kernel checker is_kernel $1 $2 where $1 is KV_major and $2 is KV_minor. # is_kernel "2" "4" should map to a 2.4 kernel, etc. +check_version_h() { + if [ ! -f "${ROOT}/usr/src/linux/include/linux/version.h" ] + then + eerror "Please verify that your /usr/src/linux symlink is pointing" + eerror "to your current kernel sources, and that you did run:" + eerror + eerror " # make dep" + die "/usr/src/linux symlink not setup!" + fi +} + get_KV_info() { - check_KV + check_version_h # Get the kernel version of sources in /usr/src/linux ... export KV_full="$(awk '/UTS_RELEASE/ { gsub("\"", "", $3); print $3 }' \ |