git: 1ec916d0d8d5 - main - lang/ghc: Drop i386 support
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Jun 2025 05:53:55 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1ec916d0d8d5d47b861f9856bb56e30f572500fd
commit 1ec916d0d8d5d47b861f9856bb56e30f572500fd
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-06-24 05:51:26 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-06-24 05:53:49 +0000
lang/ghc: Drop i386 support
The latest working GHC port for i386 was ghc92 until we switched to a newer
bootstrap. This change doesn't remove much, because most of Haskell ports use
GHC 94+ and weren't available for i386 anyways.
---
lang/ghc/Makefile | 7 ++-----
lang/ghc/distinfo | 2 --
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/lang/ghc/Makefile b/lang/ghc/Makefile
index c5c03dc93f3a..906013be5687 100644
--- a/lang/ghc/Makefile
+++ b/lang/ghc/Makefile
@@ -13,7 +13,7 @@ WWW= https://www.haskell.org/ghc/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-ONLY_FOR_ARCHS= aarch64 amd64 i386
+ONLY_FOR_ARCHS= aarch64 amd64
BUILD_DEPENDS= ${LOCALBASE}/lib/libgmp.so:math/gmp
@@ -110,15 +110,12 @@ BUILD_MK= DYNAMIC_GHC_PROGRAMS=${ENABLE_DYNAMIC} \
.include <bsd.port.pre.mk>
-.if ${GHC_VERSION:C/\..*//g} >= 9 && ${ARCH} != i386
-# hadrian build on i386 fails due to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269570
-# relocation R_386_TLS_LE cannot be used with -shared
+.if ${GHC_VERSION:C/\..*//g} >= 9
USE_HADRIAN= yes
.endif
.if ${GHC_VERSION:C/\..*//g} >= 9 && ${GHC_VERSION:C/[^\.]*\.//:C/\..*//g} >= 4
BOOT_SCRIPT= ./boot.source
-IGNORE_i386= requires Hadrian build which doesn't work on i386
.else
BOOT_SCRIPT= ./boot
.endif
diff --git a/lang/ghc/distinfo b/lang/ghc/distinfo
index 580b61c0b40b..6e28846db063 100644
--- a/lang/ghc/distinfo
+++ b/lang/ghc/distinfo
@@ -23,8 +23,6 @@ SHA256 (ghc-9.2.8-boot-amd64-freebsd.tar.xz) = 8b172a963e316a57906edb7914be76502
SIZE (ghc-9.2.8-boot-amd64-freebsd.tar.xz) = 117864544
SHA256 (ghc-8.10.7-boot-amd64-freebsd.tar.xz) = bde05fc239d962a4caea55d8c51a249145ef9a91695214b189078603d95e9b5b
SIZE (ghc-8.10.7-boot-amd64-freebsd.tar.xz) = 70284268
-SHA256 (ghc-8.10.7-boot-i386-freebsd.tar.xz) = b9b50875143311425d6f1b35d21d2d4d4d6e3beb8159b90adcc2440d77ecd30d
-SIZE (ghc-8.10.7-boot-i386-freebsd.tar.xz) = 69555468
SHA256 (ghc-9.6.7-boot-aarch64-freebsd.tar.xz) = 0c5abc06413c081240ab471592c78e350d1e0fcaf81559c25f3030dfa287ceb6
SIZE (ghc-9.6.7-boot-aarch64-freebsd.tar.xz) = 132563424
SHA256 (ghc-9.2.8-boot-aarch64-freebsd.tar.xz) = 23da026e3a9f1a4569aa7a464be016fc39b05afc9209e0d7662e151260b4964c