diff options
author | John Mylchreest <johnm@gentoo.org> | 2005-01-31 20:03:47 +0000 |
---|---|---|
committer | John Mylchreest <johnm@gentoo.org> | 2005-01-31 20:03:47 +0000 |
commit | 5ae4f49b42569ba428fdbe30a68eec8e7816f719 (patch) | |
tree | 661e7d2fd79db1909f25d7f6bef577c6c3438601 /eclass/kernel-2.eclass | |
parent | Keyworded ~sparc (diff) | |
download | gentoo-2-5ae4f49b42569ba428fdbe30a68eec8e7816f719.tar.gz gentoo-2-5ae4f49b42569ba428fdbe30a68eec8e7816f719.tar.bz2 gentoo-2-5ae4f49b42569ba428fdbe30a68eec8e7816f719.zip |
Multiple fixes.
Diffstat (limited to 'eclass/kernel-2.eclass')
-rw-r--r-- | eclass/kernel-2.eclass | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index 94dbc4c28994..8f4186200af0 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.88 2005/01/31 19:14:55 plasmaroo Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.89 2005/01/31 20:03:47 johnm Exp $ # Description: kernel.eclass rewrite for a clean base regarding the 2.6 # series of kernel with back-compatibility for 2.4 @@ -394,8 +394,12 @@ postinst_sources() { # if the link doesnt exist, lets create it [[ ! -h ${ROOT}usr/src/linux ]] && MAKELINK=1 - [[ ${MAKELINK} == 1 ]] && \ - ln -sf ${ROOT}usr/src/linux-${KV_FULL} ${ROOT}usr/src/linux + if [[ ${MAKELINK} == 1 ]] + then + cd ${ROOT}usr/src + ln -sf linux-${KV_FULL} linux + cd ${OLDPWD} + fi # Don't forget to make directory for sysfs [ ! -d "${ROOT}/sys" -a kernel_is_2_6 ] && mkdir /sys @@ -877,8 +881,7 @@ echo "#ifdef __arch64__ return 0 } -headers___fix() -{ +headers___fix() { # Voodoo to partially fix broken upstream headers. # Issues with this function should go to plasmaroo. sed -i \ |