1 |
commit: f1a9b0bc9d6758d6dd960610a65019022deb04aa |
2 |
Author: Jaak Ristioja <jaak <AT> ristioja <DOT> ee> |
3 |
AuthorDate: Thu Jul 28 22:02:58 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 30 09:20:26 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1a9b0bc |
7 |
|
8 |
dev-lang/ghc: Fixed symlink creation to non-existent directory |
9 |
|
10 |
[sam: USE=ghcbootstrap as noted by stikonas] |
11 |
|
12 |
Closes: https://bugs.gentoo.org/860276 |
13 |
Signed-off-by: Jaak Ristioja <jaak <AT> ristioja.ee> |
14 |
Closes: https://github.com/gentoo/gentoo/pull/26640 |
15 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
16 |
|
17 |
dev-lang/ghc/ghc-9.0.2.ebuild | 1 + |
18 |
1 file changed, 1 insertion(+) |
19 |
|
20 |
diff --git a/dev-lang/ghc/ghc-9.0.2.ebuild b/dev-lang/ghc/ghc-9.0.2.ebuild |
21 |
index 49acb75d8338..e943844a1b69 100644 |
22 |
--- a/dev-lang/ghc/ghc-9.0.2.ebuild |
23 |
+++ b/dev-lang/ghc/ghc-9.0.2.ebuild |
24 |
@@ -424,6 +424,7 @@ src_prepare() { |
25 |
# ffi headers don't get included in the binpkg for some reason |
26 |
for f in "${WORKDIR}/usr/$(get_libdir)/${PN}-${BIN_PV}/include/"{ffi.h,ffitarget.h} |
27 |
do |
28 |
+ mkdir -p "$(dirname "${f}")" |
29 |
[[ -e "${f}" ]] || ln -sf "$($(tc-getPKG_CONFIG) --cflags-only-I libffi | sed "s/-I//g" | tr -d " ")/$(basename "${f}")" "${f}" || die |
30 |
done |