summaryrefslogtreecommitdiff
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
commit96208d1ad2f3414bac3dda38c7c831c24cead41a (patch)
tree41b37628a670590f42c4c035fd547ab1e405a783 /eclass/kernel-2.eclass
parentadd 5.1.2; fix license following clarification by upstream; rm unused autotoo... (diff)
downloadhistorical-96208d1ad2f3414bac3dda38c7c831c24cead41a.tar.gz
historical-96208d1ad2f3414bac3dda38c7c831c24cead41a.tar.bz2
historical-96208d1ad2f3414bac3dda38c7c831c24cead41a.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/kernel-2.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
+}
+