git: 5fc5e2c45810 - main - lang/ghc96: fix build on powerpc64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 10 Oct 2026 18:16:34 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5fc5e2c45810521359a6206db2a3642880b9283f
commit 5fc5e2c45810521359a6206db2a3642880b9283f
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-10-10 02:58:53 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-10-10 18:15:31 +0000
lang/ghc96: fix build on powerpc64
Add the ELFv2 m4 patch that lang/ghc98 and lang/ghc910 already carry.
Without it the compiler was built for ELFv1 and the resulting ghc-pkg
crashed with SIGSEGV.
---
.../files/patch-m4_fptools__set__haskell__platform__vars.m4 | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/lang/ghc96/files/patch-m4_fptools__set__haskell__platform__vars.m4 b/lang/ghc96/files/patch-m4_fptools__set__haskell__platform__vars.m4
new file mode 100644
index 000000000000..36832c982dd3
--- /dev/null
+++ b/lang/ghc96/files/patch-m4_fptools__set__haskell__platform__vars.m4
@@ -0,0 +1,11 @@
+--- m4/fptools_set_haskell_platform_vars.m4.orig 2026-09-15 00:00:00 UTC
++++ m4/fptools_set_haskell_platform_vars.m4
+@@ -15,7 +15,7 @@
+ test -z "[$]2" || eval "[$]2=ArchPPC"
+ ;;
+ powerpc64)
+- test -z "[$]2" || eval "[$]2=\"ArchPPC_64 ELF_V1\""
++ test -z "[$]2" || eval "[$]2=\"ArchPPC_64 ELF_V2\""
+ ;;
+ powerpc64le)
+ test -z "[$]2" || eval "[$]2=\"ArchPPC_64 ELF_V2\""