231 Commits

Author SHA1 Message Date
Steven Thomas Smith 3dd5dfad87 ghc: Fix build issue
* Fixes: https://trac.macports.org/ticket/74031
2026-05-26 09:23:01 -04:00
Perry E. Metzger 7704d783cd ghc: fix prebuilt libiconv linkage on Darwin
The upstream Darwin bindist is built against the SDK iconv, whose
entry points are named iconv*. MacPorts builds can put ${prefix}/lib
ahead of the SDK library path, causing downstream GHC links to
resolve against MacPorts libiconv, which exports libiconv* instead.
This broke builds of Haskell ports such as cabal with undefined
_iconv, _iconv_open, and _iconv_close symbols from ghc-internal.

When installing the prebuilt GHC, rewrite ghc-internal's iconv
object in the static archives and the ghc-internal dylibs to
reference libiconv* symbols. Also rewrite the dylib load command to
use ${prefix}/lib/libiconv.2.dylib, add ${prefix}/lib to
ghc-internal's package metadata library search paths, and recache the
package database.

This makes ghc +prebuilt internally consistent with its MacPorts
libiconv dependency and allows cabal to build successfully with
ghc @9.14.1_2+prebuilt.

Closes: https://trac.macports.org/ticket/73535
2026-05-23 17:00:40 -04:00
Steven Thomas Smith 577bd579e7 ghc: Patch to fix upstream sphinx issue 2026-01-28 19:20:50 -05:00
i0ntempest 7171822cb2 ghc: build using llvm 19 and python 3.14 2026-01-27 05:34:01 +08:00
Steven Thomas Smith ba443ad31c ghc: Update to version 9.14.1
* Update to version 9.14.1
* Use `hadrian` options to fix iconv linking
2026-01-26 07:27:19 -05:00
Steven Thomas Smith 8c7955e171 ghc: Add prebuilt variant as fallback
* Add `ghc +prebuilt` variant as fallback for cases where `ghc` cannot be compiled
* Note: subport `ghc-prebuilt` is necessary to bootstrap Haskell build tools, including port `ghc`, and (nearly equivalent) port `ghc +prebuilt` is simply a fallback option when `ghc` cannot be compiled
* Add proc `ghc_prebuilt_commands` with common commands for subport `ghc-prebuilt` and port `ghc +prebuilt` variant
* Make `ghc +prebuilt` the default on macOS Tahoe until upstream compile is fixed
* Fix `livecheck` settings
* Remove unnecessary destroot artifacts from prebuilt that would create conflicts between subport `ghc-prebuilt` and port `ghc +prebuilt` variant
* Add explanatory notes on intended purpose of subport `ghc-prebuilt` and port `ghc +prebuilt` variant
* Add description for subport `hadrian`
* Minor whitespace alignment fixes
* See: https://trac.macports.org/ticket/72773
2025-10-02 15:15:05 +01:00
Joshua Root 1376bba565 ghc: remove prebuilt variant
Deprecated for 3 years.
2025-09-24 18:49:35 +10:00
Joshua Root ef64a422b6 ghc: use canonical case for hscolour dep 2025-09-24 18:46:15 +10:00
Ryan Carsten Schmidt 775bbace55 ghc: Try blacklisting clang > 1700.3
See: https://trac.macports.org/ticket/72773
2025-09-24 03:06:32 -05:00
Joshua Root d045c407aa openmaintainer lang/*: remove compiler_blacklist_versions 2025-08-05 14:04:51 +10:00
i0ntempest 57de067663 ghc: remove commented out old workaround 2025-07-27 23:38:12 +10:00
Steve Smith e660ff9344 ghc: Fix arm64 build
* Use MacPorts libffi; fixes arm64 build
* Remove unnecessary doc file fix
* Revbump subport hadrian to check bootstrap build with latest ghc
* Add livecheck to subport hadrian

Fixes: https://trac.macports.org/ticket/72340
2025-07-26 19:50:46 -05:00
i0ntempest 6b2acbe86f ghc: update to 9.12.2 2025-04-11 22:18:28 -04:00
Steve Smith ba6b5b02be ghc: Bugfix build (#27470)
Fixes: https://trac.macports.org/ticket/71964
2025-01-28 18:05:07 -05:00
i0ntempest d0c6e08ff7 ghc: update to 9.12.1 2025-01-10 19:06:06 +08:00
Herby Gillot c22816625c ghc: fix livecheck 2024-10-11 12:22:13 -04:00
Chris Jones bc609cbc28 ghc: disabled ccache in builds 2024-09-29 12:31:58 +01:00
i0ntempest 8508e80bb0 ghc: explictly set -std=gnu++11
increase log verbosity
Closes: https://trac.macports.org/ticket/69566
2024-07-12 11:41:34 -04:00
i0ntempest 83a07690e5 ghc: update to 9.6.6 2024-07-12 11:41:34 -04:00
Steven Thomas Smith 7c851507b2 ghc: Fix dependency loop
* Fixes: https://trac.macports.org/ticket/69332
2024-02-16 09:14:19 -05:00
Steven Thomas Smith 5227ed9c79 ghc: Update to version 9.6.4 2024-02-03 19:05:12 -05:00
i0ntempest 4643f844d7 ghc: build using python 3.11 2023-10-18 16:53:10 -04:00
i0ntempest 99d3a312a2 ghc: backport upstream update of rtd-theme 2023-10-14 16:02:16 -04:00
i0ntempest 2ad6423fad ghc: update to 9.6.3 2023-10-05 02:20:55 -04:00
Steven Thomas Smith 7e7b76e80b ghc: Update to version 9.6.2 2023-06-05 16:21:16 -04:00