diff options
author | John Mylchreest <johnm@gentoo.org> | 2006-05-08 14:18:04 +0000 |
---|---|---|
committer | John Mylchreest <johnm@gentoo.org> | 2006-05-08 14:18:04 +0000 |
commit | 25fd51c6da71d9c74f2ca4e26dd1c0dadbd9a9e9 (patch) | |
tree | 1147b4cdd9f5d671760c150069a1071e2efb7586 /eclass/kernel-2.eclass | |
parent | Moving gnome-base/gnome-mount mask to the proper places, bad weeve! (diff) | |
download | gentoo-2-25fd51c6da71d9c74f2ca4e26dd1c0dadbd9a9e9.tar.gz gentoo-2-25fd51c6da71d9c74f2ca4e26dd1c0dadbd9a9e9.tar.bz2 gentoo-2-25fd51c6da71d9c74f2ca4e26dd1c0dadbd9a9e9.zip |
close bug #132152, make defconfig requires working linux-headers to succeed, but we dont need to succeed to actually install.
Diffstat (limited to 'eclass/kernel-2.eclass')
-rw-r--r-- | eclass/kernel-2.eclass | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index 4b140dbb38ba..da0a37dccadd 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.176 2006/05/06 17:57:16 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.177 2006/05/08 14:18:04 johnm Exp $ # Description: kernel.eclass rewrite for a clean base regarding the 2.6 # series of kernel with back-compatibility for 2.4 @@ -356,10 +356,21 @@ unpack_2_6() { # this file is required for other things to build properly, so we # autogenerate it ... generate a .config to keep version.h build from # spitting out an annoying warning - make -s mrproper ${xmakeopts} 2>/dev/null || die "make mrproper failed" - make -s defconfig ${xmakeopts} &>/dev/null 2>&1 || die "make defconfig failed" - make -s include/linux/version.h ${xmakeopts} || die "make include/linux/version.h failed" - rm -f .config + make -s mrproper ${xmakeopts} 2>/dev/null \ + || die "make mrproper failed" + + # quick fix for bug #132152 which triggers when it cannot include linux + # headers (ie, we have not installed it yet) + if ! (make -s defconfig ${xmakeopts} &>/dev/null 2>&1); then + touch .config + eerror "make defconfig failed." + eerror "assuming you dont have any headers installed yet and continuing" + epause 5 + fi + + make -s include/linux/version.h ${xmakeopts} 2>/dev/null \ + || die "make include/linux/version.h failed" + rm -f .config >/dev/null } universal_unpack() { |