From: Mike Pagano Date: Thu, 11 Aug 2011 14:09:56 +0000 (+0000) Subject: Add message in pkg_postrm to inform user that modified kernel source is not cleaned... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=96208d1ad2f3414bac3dda38c7c831c24cead41a;p=gentoo.git Add message in pkg_postrm to inform user that modified kernel source is not cleaned up by package manager. Bug #378611 --- diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index ccacdcca0def..72885e904214 100644 --- a/eclass/kernel-2.eclass +++ b/eclass/kernel-2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.255 2011/08/08 23:14:56 mpagano Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.256 2011/08/11 14:09:56 mpagano Exp $ # Description: kernel.eclass rewrite for a clean base regarding the 2.6 # series of kernel with back-compatibility for 2.4 @@ -70,7 +70,7 @@ # order, so they are applied in the order passed inherit eutils toolchain-funcs versionator multilib -EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_test src_install pkg_preinst pkg_postinst +EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_test src_install pkg_preinst pkg_postinst pkg_postrm # Added by Daniel Ostrow # This is an ugly hack to get around an issue with a 32-bit userland on ppc64. @@ -1295,3 +1295,14 @@ kernel-2_pkg_setup() { [[ ${ETYPE} == headers ]] && setup_headers [[ ${ETYPE} == sources ]] && echo ">>> Preparing to unpack ..." } + +kernel-2_pkg_postrm() { + echo + ewarn "Note: Even though you have successfully unmerged " + ewarn "your kernel package, directories in kernel source location: " + ewarn "${ROOT}usr/src/linux-${KV_FULL}" + ewarn "with modified files will remain behind. By design, package managers" + ewarn "will not remove these modified files and the directories they reside in." + echo +} +