summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-07-22 22:34:50 +0000
committerSam James <sam@gentoo.org>2022-07-22 22:34:50 +0000
commit8269d2a2d3875a3024e75ca712669d8bb5b90223 (patch)
treef4c4f65f87a3ab38d688dab7074ba29231663acd /dev-lang/ghc
parentprofiles: last-rite sci-mathematics/rstudio, dev-haskell/pandoc-citeproc (diff)
downloadgentoo-8269d2a2d3875a3024e75ca712669d8bb5b90223.tar.gz
gentoo-8269d2a2d3875a3024e75ca712669d8bb5b90223.tar.bz2
gentoo-8269d2a2d3875a3024e75ca712669d8bb5b90223.zip
dev-lang/ghc: fix removing debuginfo
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang/ghc')
-rw-r--r--dev-lang/ghc/ghc-9.0.2.ebuild4
1 files changed, 3 insertions, 1 deletions
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