Add message in pkg_postrm to inform user that modified kernel source is not cleaned...
authorMike Pagano <mpagano@gentoo.org>
Thu, 11 Aug 2011 14:09:56 +0000 (14:09 +0000)
committerMike Pagano <mpagano@gentoo.org>
Thu, 11 Aug 2011 14:09:56 +0000 (14:09 +0000)
eclass/kernel-2.eclass

index ccacdcca0def4fa7543d6a96275a0272177ba703..72885e9042141c7af5d8db1d8916e800876867e9 100644 (file)
@@ -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 <dostrow@gentoo.org>
 # 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
+}
+