Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 61476 Details for
Bug 96510
Suggestion: `make mrproper` when unmerging kernel source ebuilds
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
kernel-eclass-make-mrproper-before-unmerge.patch
kernel-eclass-make-mrproper-before-unmerge.patch (text/plain), 1.35 KB, created by
Peter Gordon (RETIRED)
on 2005-06-19 01:58:10 UTC
(
hide
)
Description:
kernel-eclass-make-mrproper-before-unmerge.patch
Filename:
MIME Type:
Creator:
Peter Gordon (RETIRED)
Created:
2005-06-19 01:58:10 UTC
Size:
1.35 KB
patch
obsolete
>--- kernel-2.eclass.old 2005-06-19 01:52:55.000000000 -0700 >+++ kernel-2.eclass 2005-06-19 01:54:55.000000000 -0700 >@@ -1,6 +1,6 @@ > # Copyright 1999-2005 Gentoo Foundation > # Distributed under the terms of the GNU General Public License v2 >-# $Header: /var/www/www.gentoo.org/raw_cvs/gentoo-x86/eclass/kernel-2.eclass,v 1.125 2005/05/15 20:30:04 johnm Exp $ >+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.125 2005/05/15 20:30:04 johnm Exp $ > > # Description: kernel.eclass rewrite for a clean base regarding the 2.6 > # series of kernel with back-compatibility for 2.4 >@@ -55,7 +55,7 @@ > ECLASS="kernel-2" > INHERITED="$INHERITED $ECLASS" > EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install \ >- pkg_preinst pkg_postinst >+ pkg_preinst pkg_postinst pkg_prerm > > export CTARGET=${CTARGET:-${CHOST}} > if [[ ${CTARGET} == ${CHOST} && ${CATEGORY/cross-} != ${CATEGORY} ]]; then >@@ -901,3 +901,14 @@ > [[ ${ETYPE} == headers ]] && setup_headers > [[ ${ETYPE} == sources ]] && echo ">>> Preparing to unpack ..." > } >+ >+# Added to clean out object code and other files created by the kernel build process >+kernel-2_pkg_prerm() { >+ if [[ ${ETYPE} == sources ]]; then >+ # Kernel Makefile derives proper setting on its own so temporarily unset it >+ MY_ARCH=${ARCH} >+ unset ARCH >+ make -C /usr/src/linux-${KV_FULL} mrproper >+ ARCH=${MY_ARCH} >+ fi >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 96510
: 61476