diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-14 12:26:57 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-05-17 13:50:14 +0000 |
commit | 3b5707d385eecf499b59ce4e41763a4f2dc20595 (patch) | |
tree | 58ec7e4c3df19043c1c0cd5f044df2b2ee090876 /community/ghc/0002-Correct-issue-with-libffi-and-glibc.patch | |
parent | 0c605083d9c3944e36c12e796ee27f8f217d1524 (diff) | |
download | aports-3b5707d385eecf499b59ce4e41763a4f2dc20595.tar.bz2 aports-3b5707d385eecf499b59ce4e41763a4f2dc20595.tar.xz |
community/ghc: move from testing
Diffstat (limited to 'community/ghc/0002-Correct-issue-with-libffi-and-glibc.patch')
-rw-r--r-- | community/ghc/0002-Correct-issue-with-libffi-and-glibc.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/community/ghc/0002-Correct-issue-with-libffi-and-glibc.patch b/community/ghc/0002-Correct-issue-with-libffi-and-glibc.patch new file mode 100644 index 0000000000..87420f9928 --- /dev/null +++ b/community/ghc/0002-Correct-issue-with-libffi-and-glibc.patch @@ -0,0 +1,28 @@ +From 843bd68ea83ba011d593ad7162d1df89c230004b Mon Sep 17 00:00:00 2001 +From: Mitch Tishmack <mitch.tishmack@gmail.com> +Date: Sat, 15 Oct 2016 21:53:13 -0500 +Subject: [PATCH 1/1] Correct issue with libffi and glibc + +Ref: https://github.com/mitchty/alpine-linux-ghc-bootstrap/issues/16 + +Shamelessly learnt from here +https://github.com/nilcons/ghc-musl/blob/master/ghc-musl/Dockerfile#L24 +--- + libffi/ghc.mk | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/libffi/ghc.mk b/libffi/ghc.mk +index 404cce9..2034873 100644 +--- a/libffi/ghc.mk ++++ b/libffi/ghc.mk +@@ -61,6 +61,7 @@ $(libffi_STAMP_CONFIGURE): $(TOUCH_DEP) + # We have to fake a non-working ln for configure, so that the fallback + # option (cp -p) gets used instead. Otherwise the libffi build system + # will use cygwin symbolic links which cannot be read by mingw gcc. ++ sed -i s/__gnu_linux__/1/ libffi/build/src/closures.c + chmod +x libffi/ln + + # We need to use -MMD rather than -MD, as otherwise we get paths +-- +2.9.0 + |