/[gentoo-x86]/eclass/linux-info.eclass
Gentoo

Diff of /eclass/linux-info.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.47 Revision 1.48
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.47 2006/07/21 03:22:59 marineam Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.48 2006/09/07 11:37:41 phreak Exp $
4# 4#
5# Description: This eclass is used as a central eclass for accessing kernel 5# Description: This eclass is used as a central eclass for accessing kernel
6# related information for sources already installed. 6# related information for sources already installed.
7# It is vital for linux-mod to function correctly, and is split 7# It is vital for linux-mod to function correctly, and is split
8# out so that any ebuild behaviour "templates" are abstracted out 8# out so that any ebuild behaviour "templates" are abstracted out
550# Default pkg_setup 550# Default pkg_setup
551# Also used when inheriting linux-mod to force a get_version call 551# Also used when inheriting linux-mod to force a get_version call
552 552
553linux-info_pkg_setup() { 553linux-info_pkg_setup() {
554 get_version || die "Unable to calculate Linux Kernel version" 554 get_version || die "Unable to calculate Linux Kernel version"
555
556 if kernel_is 2 4; then
557 if [ "$( gcc-major-version )" -eq "4" ] ; then
558 echo
559 ewarn "Be warned !! >=sys-devel/gcc-4.0.0 isn't supported with"
560 ewarn "linux-2.4 (or modules building against a linux-2.4 kernel)!"
561 echo
562 ewarn "Either switch to another gcc-version (via gcc-config) or use a"
563 ewarn "newer kernel that supports gcc-4."
564 echo
565 ewarn "Also be aware that bugreports about gcc-4 not working"
566 ewarn "with linux-2.4 based ebuilds will be closed as INVALID!"
567 echo
568 epause 10
569 fi
570 fi
571
555 [ -n "${CONFIG_CHECK}" ] && check_extra_config; 572 [ -n "${CONFIG_CHECK}" ] && check_extra_config;
556} 573}

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

  ViewVC Help
Powered by ViewVC 1.1.20