summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Jacquin <bertrand@jacquin.bzh>2019-09-28 01:56:18 +0100
committerBertrand Jacquin <bertrand@jacquin.bzh>2019-09-28 01:57:17 +0100
commit523c19e1d58bb31465a5a74fa1c04dee3c9b1cdb (patch)
tree262d6fff17a05a3fd4665379d7ba6eedafa55602
parentmetadata/layout: require an entries in each Manifest for every file (diff)
downloadportage-523c19e1d58bb31465a5a74fa1c04dee3c9b1cdb.tar.xz
eclass/linux-build: always remove usr/src/linux if USE=-symlink
Until https://github.com/gentoo/gentoo/pull/13031 is merged
-rw-r--r--eclass/linux-build.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/linux-build.eclass b/eclass/linux-build.eclass
index 48296fd3..7072a7a3 100644
--- a/eclass/linux-build.eclass
+++ b/eclass/linux-build.eclass
@@ -465,9 +465,9 @@ linux-build_src_install() {
linux-build_pkg_postinst() {
kernel-2_pkg_postinst
- # Bypass kernel-2_pkg_postinst madness
- if ! use symlink && [[ -L "${EROOT}usr/src/linux" ]] ; then
- rm "${EROOT}usr/src/linux"
+ # FIXME https://github.com/gentoo/gentoo/pull/13031
+ if ! use symlink && [[ -e "${EROOT}usr/src/linux" ]] ; then
+ rm -rf "${EROOT}usr/src/linux"
fi
einfo "You may need to:"