diff options
author | John Mylchreest <johnm@gentoo.org> | 2003-11-07 19:18:47 +0000 |
---|---|---|
committer | John Mylchreest <johnm@gentoo.org> | 2003-11-07 19:18:47 +0000 |
commit | e4b3ef12e7c7b858c912576feedb98f1ac8c4818 (patch) | |
tree | 0de9f7fbbc5b0f78df281d4ca399fc8080c29769 /eclass/kernel.eclass | |
parent | Fix exit() being called without arguments, bug #32801. (diff) | |
download | gentoo-2-e4b3ef12e7c7b858c912576feedb98f1ac8c4818.tar.gz gentoo-2-e4b3ef12e7c7b858c912576feedb98f1ac8c4818.tar.bz2 gentoo-2-e4b3ef12e7c7b858c912576feedb98f1ac8c4818.zip |
fixes all known issues
Diffstat (limited to 'eclass/kernel.eclass')
-rw-r--r-- | eclass/kernel.eclass | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/eclass/kernel.eclass b/eclass/kernel.eclass index 8963271ce65b..7a5ac64db9dd 100644 --- a/eclass/kernel.eclass +++ b/eclass/kernel.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/kernel.eclass,v 1.35 2003/11/06 23:20:33 johnm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kernel.eclass,v 1.36 2003/11/07 19:18:47 johnm Exp $ # # This eclass contains the common functions to be used by all lostlogic # based kernel ebuilds @@ -56,10 +56,7 @@ fi [ -z "$LINUX_HOSTCFLAGS" ] && LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -Os -fomit-frame-pointer -I${S}/include" - kernel_getversion() { - local KERNEL_VERSION - [ -h ${KERNEL_DIR} ] && KERNEL_DIR="$(readlink -f ${KERNEL_DIR})" if [ ! -d ${KERNEL_DIR} ] then @@ -71,14 +68,13 @@ kernel_getversion() { KERNEL_VERSION="${KERNEL_VERSION/-*/}" KERNEL_VERSION="${KERNEL_VERSION/\/work*/}" - KV_MAJOR="$(echo ${KERNEL_VERSION} | cut -d. -f1)" - KV_MINOR="$(echo ${KERNEL_VERSION} | cut -d. -f2)" - KV_PATCH="$(echo ${KERNEL_VERSION} | cut -d. -f3)" + KV_MAJOR=$(echo ${KERNEL_VERSION} | cut -d. -f1) + KV_MINOR=$(echo ${KERNEL_VERSION} | cut -d. -f2) + KV_PATCH=$(echo ${KERNEL_VERSION} | cut -d. -f3) } kernel_is_2_4() { kernel_getversion - if [ ${KV_MAJOR} -eq 2 -a ${KV_MINOR} -eq 4 ] then return 0 @@ -128,7 +124,7 @@ kernel_universal_unpack() { cd ${S} fi - if [ kernel_is_2_4 -o ${ETYPE} == "headers" ] + if [ $(kernel_is_2_4) $? == 0 -o ${ETYPE} == "headers" ] then # this file is required for other things to build properly, # so we autogenerate it |