Do not run 'make mrproper' in pkg_prerm() since it causes too much confusion, bug...
authorHenrik Brix Andersen <brix@gentoo.org>
Wed, 31 Aug 2005 14:39:04 +0000 (14:39 +0000)
committerHenrik Brix Andersen <brix@gentoo.org>
Wed, 31 Aug 2005 14:39:04 +0000 (14:39 +0000)
eclass/kernel-2.eclass

index 81822507878cbf483a6e29b91fe2d467286ab840..c6dd2d28cd17a19153c010b21cebeaaca31ae88b 100644 (file)
@@ -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.142 2005/08/23 14:55:11 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.143 2005/08/31 14:39:04 brix 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 @@
 
 inherit toolchain-funcs versionator multilib
 EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install \
-       pkg_preinst pkg_postinst pkg_prerm
+       pkg_preinst pkg_postinst
 
 # Added by Daniel Ostrow <dostrow@gentoo.org>
 # This is an ugly hack to get around an issue with a 32-bit userland on ppc64.
@@ -950,20 +950,3 @@ kernel-2_pkg_setup() {
        [[ ${ETYPE} == headers ]] && setup_headers
        [[ ${ETYPE} == sources ]] && echo ">>> Preparing to unpack ..."
 }
-
-kernel-2_pkg_prerm() {
-       local KV_DIR=${ROOT}/usr/src/linux-${KV_FULL}
-
-       if [[ ${ETYPE} == sources ]]; then
-               # if we have a config for it then we should act on it.
-               if [[ -f ${KV_DIR}/.config ]]; then
-                       gzip -c ${KV_DIR}/.config > ${KV_DIR}.config.gz
-               fi
-
-               # have kbuild clean up for us.
-               if [[ -f ${KV_DIR}/include/linux/version.h ]]; then
-                       ARCH=$(tc-arch-kernel)
-                       make -C ${KV_DIR} mrproper
-               fi
-       fi
-}