From: Henrik Brix Andersen Date: Wed, 31 Aug 2005 14:39:04 +0000 (+0000) Subject: Do not run 'make mrproper' in pkg_prerm() since it causes too much confusion, bug... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=27e17dc9f7c518fae4b5bc811ffac2f0967d2bb2;p=gentoo.git Do not run 'make mrproper' in pkg_prerm() since it causes too much confusion, bug #101426. --- diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index 81822507878c..c6dd2d28cd17 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.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 # 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 -}