summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Pagano <mpagano@gentoo.org>2011-08-11 14:09:56 +0000
committerMike Pagano <mpagano@gentoo.org>2011-08-11 14:09:56 +0000
commitc8f2c9cba35c79abc9bdafff3b59bc840ccd2779 (patch)
treef2090e837c8b13b440ff81cb691d6522cc7bc3b3 /eclass
parentadd 5.1.2; fix license following clarification by upstream; rm unused autotoo... (diff)
downloadgentoo-2-c8f2c9cba35c79abc9bdafff3b59bc840ccd2779.tar.gz
gentoo-2-c8f2c9cba35c79abc9bdafff3b59bc840ccd2779.tar.bz2
gentoo-2-c8f2c9cba35c79abc9bdafff3b59bc840ccd2779.zip
Add message in pkg_postrm to inform user that modified kernel source is not cleaned up by package manager. Bug #378611
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kernel-2.eclass15
1 files changed, 13 insertions, 2 deletions
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 <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
+}
+