diff options
author | Jonathan Callen <abcd@gentoo.org> | 2009-11-30 04:19:36 +0000 |
---|---|---|
committer | Jonathan Callen <abcd@gentoo.org> | 2009-11-30 04:19:36 +0000 |
commit | 919d8676c7be258c142e09e161f29a3dbe5ca490 (patch) | |
tree | 23491b364c9c55e6d81cb39ba21cd4af1a32c174 /eclass/check-kernel.eclass | |
parent | Drop usage of xfce44.eclass (deprecated) (diff) | |
download | gentoo-2-919d8676c7be258c142e09e161f29a3dbe5ca490.tar.gz gentoo-2-919d8676c7be258c142e09e161f29a3dbe5ca490.tar.bz2 gentoo-2-919d8676c7be258c142e09e161f29a3dbe5ca490.zip |
Remove eclasses that have been marked as deprecated for >=2 years; schedule other deprecated eclasses for removal
Diffstat (limited to 'eclass/check-kernel.eclass')
-rw-r--r-- | eclass/check-kernel.eclass | 76 |
1 files changed, 5 insertions, 71 deletions
diff --git a/eclass/check-kernel.eclass b/eclass/check-kernel.eclass index c2fbe0380292..fcc442f0d9a1 100644 --- a/eclass/check-kernel.eclass +++ b/eclass/check-kernel.eclass @@ -1,73 +1,7 @@ -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/check-kernel.eclass,v 1.8 2005/07/11 15:08:06 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/check-kernel.eclass,v 1.9 2009/11/30 04:19:36 abcd Exp $ -# Author: Martin Schlemmer <azarah@gentoo.org> -# Eclass'd by: Seemant Kulleen <seemant@gentoo.org> -# -# The check-kernel eclass is designed to detect the kernel sources and -# report info on the versions - - -DEPEND="sys-apps/gawk" - -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" - eerror - eerror "(${ROOT}/usr/src/linux/include/linux/version.h does not exist)" - die "/usr/src/linux symlink not setup!" - fi -} - -get_KV_info() { - check_version_h - - # Get the kernel version of sources in /usr/src/linux ... - export KV_full="$(awk '/UTS_RELEASE/ { gsub("\"", "", $3); print $3 }' \ - "${ROOT}/usr/src/linux/include/linux/version.h")" - export KV_major="$(echo "${KV_full}" | cut -d. -f1)" - export KV_minor="$(echo "${KV_full}" | cut -d. -f2)" - export KV_micro="$(echo "${KV_full}" | cut -d. -f3 | sed -e 's:[^0-9].*::')" -} - -is_2_4_kernel() { - get_KV_info - - if [ "${KV_major}" -eq 2 -a "${KV_minor}" -eq 4 ] - then - return 0 - else - return 1 - fi -} - -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 -} - -kernel_supports_modules() { - grep '^CONFIG_MODULES=y$' ${ROOT}/usr/src/linux/include/linux/autoconf.h >& /dev/null -} +# @DEAD +# To be removed on 2011/11/30. +ewarn "Please fix your package (${CATEGORY}/${PF}) to not use ${ECLASS}.eclass" |