summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaak Ristioja <jaak@ristioja.ee>2022-07-29 01:02:58 +0300
committerSam James <sam@gentoo.org>2022-07-30 10:20:26 +0100
commitf1a9b0bc9d6758d6dd960610a65019022deb04aa (patch)
tree81f976e3ecb1fc93651fbcbc68e64cc705ac9376
parentdev-python/scipy: add github upstream metadata (diff)
downloadgentoo-f1a9b0bc.tar.gz
gentoo-f1a9b0bc.tar.bz2
gentoo-f1a9b0bc.zip
dev-lang/ghc: Fixed symlink creation to non-existent directory
[sam: USE=ghcbootstrap as noted by stikonas] Closes: https://bugs.gentoo.org/860276 Signed-off-by: Jaak Ristioja <jaak@ristioja.ee> Closes: https://github.com/gentoo/gentoo/pull/26640 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--dev-lang/ghc/ghc-9.0.2.ebuild1
1 files changed, 1 insertions, 0 deletions
diff --git a/dev-lang/ghc/ghc-9.0.2.ebuild b/dev-lang/ghc/ghc-9.0.2.ebuild
index 49acb75d8338..e943844a1b69 100644
--- a/dev-lang/ghc/ghc-9.0.2.ebuild
+++ b/dev-lang/ghc/ghc-9.0.2.ebuild
@@ -424,6 +424,7 @@ src_prepare() {
# ffi headers don't get included in the binpkg for some reason
for f in "${WORKDIR}/usr/$(get_libdir)/${PN}-${BIN_PV}/include/"{ffi.h,ffitarget.h}
do
+ mkdir -p "$(dirname "${f}")"
[[ -e "${f}" ]] || ln -sf "$($(tc-getPKG_CONFIG) --cflags-only-I libffi | sed "s/-I//g" | tr -d " ")/$(basename "${f}")" "${f}" || die
done