From 523c19e1d58bb31465a5a74fa1c04dee3c9b1cdb Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Sat, 28 Sep 2019 01:56:18 +0100 Subject: eclass/linux-build: always remove usr/src/linux if USE=-symlink Until https://github.com/gentoo/gentoo/pull/13031 is merged --- eclass/linux-build.eclass | 6 +++--- 1 file 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:" -- cgit v1.2.3