commit:     366f99366481f7f34ce30e4fc85f50e4dc7e4a48
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 23 19:01:06 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 23 19:01:30 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=366f9936

toolchain.eclass: another error handling fix

Fixes: f81ec884754b3f3d3720d40b212e12ef364821c5
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/toolchain.eclass | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index cd63712b1f24..331e107bacf3 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -2089,8 +2089,9 @@ toolchain_src_install() {
 
        docompress "${DATAPATH}"/{info,man}
 
-       # Prune empty dirs left behind
-       find "${ED}" -depth -type d -delete 2>/dev/null || die
+       # Prune empty dirs left behind. It's fine not to die here as we may
+       # really have no empty dirs left.
+       find "${ED}" -depth -type d -delete 2>/dev/null
 
        # libstdc++.la: Delete as it doesn't add anything useful: g++ itself
        # handles linkage correctly in the dynamic & static case.  It also just

Reply via email to