commit:     8269d2a2d3875a3024e75ca712669d8bb5b90223
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 22 22:34:50 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jul 22 22:34:50 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8269d2a2

dev-lang/ghc: fix removing debuginfo

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

 dev-lang/ghc/ghc-9.0.2.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dev-lang/ghc/ghc-9.0.2.ebuild b/dev-lang/ghc/ghc-9.0.2.ebuild
index 0d233e32318e..c3befcb79a29 100644
--- a/dev-lang/ghc/ghc-9.0.2.ebuild
+++ b/dev-lang/ghc/ghc-9.0.2.ebuild
@@ -416,7 +416,9 @@ src_prepare() {
        fi
 
        # binpkg may have been built with FEATURES=splitdebug
-       [[ -d "${WORKDIR}/usr/lib/debug" ]] && rm -rf 
"${WORKDIR}/usr/lib/debug" || die
+       if [[ -d "${WORKDIR}/usr/lib/debug" ]] ; then
+               rm -rf "${WORKDIR}/usr/lib/debug" || die
+       fi
        find "${WORKDIR}/usr/lib" -type d -empty -delete 2>/dev/null # do not 
die on failure here
 
        # ffi headers don't get included in the binpkg for some reason

Reply via email to