summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2006-09-06 18:14:46 +0000
committerChristian Heim <phreak@gentoo.org>2006-09-06 18:14:46 +0000
commit8e8cf35282e546325fcf6799089387b06e576d78 (patch)
tree99902865ccff13d75dc36c585fa3c9fbe051b39f /eclass/kernel-2.eclass
parentmarking stable as to not forget tcorts poking of me (diff)
downloadhistorical-8e8cf35282e546325fcf6799089387b06e576d78.tar.gz
historical-8e8cf35282e546325fcf6799089387b06e576d78.tar.bz2
historical-8e8cf35282e546325fcf6799089387b06e576d78.zip
Adding a warning for users using gcc-4 on linux-2.4 based kernel versions.
Diffstat (limited to 'eclass/kernel-2.eclass')
-rw-r--r--eclass/kernel-2.eclass18
1 files changed, 16 insertions, 2 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index 74de93a6f5ba..771686b1d7c9 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.191 2006/09/06 03:10:01 lu_zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.192 2006/09/06 18:14:46 phreak Exp $
# Description: kernel.eclass rewrite for a clean base regarding the 2.6
# series of kernel with back-compatibility for 2.4
@@ -57,7 +57,7 @@
# UNIPATCH_STRICTORDER - if this is set places patches into directories of
# order, so they are applied in the order passed
-inherit toolchain-funcs versionator multilib
+inherit eutils toolchain-funcs versionator multilib
EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_preinst pkg_postinst
# Added by Daniel Ostrow <dostrow@gentoo.org>
@@ -1027,6 +1027,20 @@ kernel-2_pkg_postinst() {
}
kernel-2_pkg_setup() {
+ if kernel_is 2 4; then
+ if [ "$( gcc-major-version )" -eq "4" ] ; then
+ echo
+ ewarn "Be warned !! >=sys-devel/gcc-4.0.0 isn't supported with linux-2.4!"
+ ewarn "Either switch to another gcc-version (via gcc-config) or use a"
+ ewarn "newer kernel that supports gcc-4."
+ echo
+ ewarn "Also be aware that bugreports about gcc-4 not working"
+ ewarn "with linux-2.4 based ebuilds will be closed as INVALID!"
+ echo
+ epause 10
+ fi
+ fi
+
ABI="${KERNEL_ABI}"
[[ ${ETYPE} == headers ]] && setup_headers
[[ ${ETYPE} == sources ]] && echo ">>> Preparing to unpack ..."