diff options
author | Donnie Berkholz <dberkholz@gentoo.org> | 2003-10-20 06:43:35 +0000 |
---|---|---|
committer | Donnie Berkholz <dberkholz@gentoo.org> | 2003-10-20 06:43:35 +0000 |
commit | 84bffadfb3f7638ceb92ffcf0caccd1c206785fd (patch) | |
tree | ef63c8b7e60a8ec423dc6f1b70020be7e3936ad7 /eclass | |
parent | fixing Manifest (diff) | |
download | historical-84bffadfb3f7638ceb92ffcf0caccd1c206785fd.tar.gz historical-84bffadfb3f7638ceb92ffcf0caccd1c206785fd.tar.bz2 historical-84bffadfb3f7638ceb92ffcf0caccd1c206785fd.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 }' \ |