/[gentoo-x86]/eclass/kernel-2.eclass
Gentoo

Diff of /eclass/kernel-2.eclass

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

Revision 1.236 Revision 1.237
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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/kernel-2.eclass,v 1.236 2010/06/05 18:49:49 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.237 2010/07/19 20:19:18 vapier Exp $
4 4
5# Description: kernel.eclass rewrite for a clean base regarding the 2.6 5# Description: kernel.eclass rewrite for a clean base regarding the 2.6
6# series of kernel with back-compatibility for 2.4 6# series of kernel with back-compatibility for 2.4
7# 7#
8# Original author: John Mylchreest <johnm@gentoo.org> 8# Original author: John Mylchreest <johnm@gentoo.org>
756 elog "https://bugs.gentoo.org/show_bug.cgi?id=214765" 756 elog "https://bugs.gentoo.org/show_bug.cgi?id=214765"
757 echo 757 echo
758 fi 758 fi
759} 759}
760 760
761postinst_headers() {
762 elog "Kernel headers are usually only used when recompiling your system libc, as"
763 elog "such, following the installation of newer headers, it is advised that you"
764 elog "re-merge your system libc."
765 elog "Failure to do so will cause your system libc to not make use of newer"
766 elog "features present in the updated kernel headers."
767}
768
769# pkg_setup functions 761# pkg_setup functions
770#============================================================== 762#==============================================================
771setup_headers() { 763setup_headers() {
772 [[ -z ${H_SUPPORTEDARCH} ]] && H_SUPPORTEDARCH=${PN/-*/} 764 [[ -z ${H_SUPPORTEDARCH} ]] && H_SUPPORTEDARCH=${PN/-*/}
773 for i in ${H_SUPPORTEDARCH}; do 765 for i in ${H_SUPPORTEDARCH}; do
1157 [[ ${ETYPE} == headers ]] && install_headers 1149 [[ ${ETYPE} == headers ]] && install_headers
1158 [[ ${ETYPE} == sources ]] && install_sources 1150 [[ ${ETYPE} == sources ]] && install_sources
1159} 1151}
1160 1152
1161kernel-2_pkg_postinst() { 1153kernel-2_pkg_postinst() {
1162 [[ ${ETYPE} == headers ]] && postinst_headers
1163 [[ ${ETYPE} == sources ]] && postinst_sources 1154 [[ ${ETYPE} == sources ]] && postinst_sources
1164} 1155}
1165 1156
1166kernel-2_pkg_setup() { 1157kernel-2_pkg_setup() {
1167 if kernel_is 2 4; then 1158 if kernel_is 2 4; then

Legend:
Removed from v.1.236  
changed lines
  Added in v.1.237

  ViewVC Help
Powered by ViewVC 1.1.20