[Midnightbsd-cvs] [MidnightBSD/mports] cdc7fc: cad/hs-verismith: unbreak with GHC 9.12 (#1668)
Lucas Holt
noreply at github.com
Fri Oct 2 09:11:42 EDT 2026
Branch: refs/heads/master
Home: https://github.com/MidnightBSD/mports
Commit: cdc7fc34020d9cc1f318952c67ea0d1a83eaecf8
https://github.com/MidnightBSD/mports/commit/cdc7fc34020d9cc1f318952c67ea0d1a83eaecf8
Author: Lucas Holt <luke at foolishgames.com>
Date: 2026-10-02 (Fri, 02 Oct 2026)
Changed paths:
M cad/hs-verismith/Makefile
A cad/hs-verismith/Makefile.cabal
M cad/hs-verismith/distinfo
A cad/hs-verismith/files/patch-verismith.cabal
Log Message:
-----------
cad/hs-verismith: unbreak with GHC 9.12 (#1668)
cad/hs-verismith 1.1.0 could not build: its GHC dependency was disabled
(`xBUILD_DEPENDS` on a non-existent lang/ghc96).
**Requires #1665** (synced cabal.mk, `Makefile.cabal`). GHC 9.12.4 from
#1662.
FreeBSD builds verismith with a separate lang/ghc910 because verismith's
bounds exclude GHC 9.12's boot libraries. Instead of adding a second GHC
port:
- Fetch from Hackage and take FreeBSD's `USE_CABAL` set
(`Makefile.cabal`), **minus the GHC boot libraries it vendors** (binary,
bytestring, directory, file-io, filepath, os-string, parsec, process,
text, unix). Built as local packages they get the same `-inplace` unit
ids as GHC 9.12.4's copies; Template Haskell then loads GHC's
`libHSdirectory` .so while gitrev was compiled against the local copy →
`Undefined symbol ...doesDirectoryExist4_closure`.
- `files/patch-verismith.cabal`: relax upper bounds `bytestring <0.13`,
`filepath <1.6`, `time <1.15` so GHC 9.12.4's boot packages satisfy
them. verismith compiles unchanged against them.
Verification (amd64/4.0.6): remaining distinfo entries match FreeBSD's;
build/fake/package OK; `verismith --version` → 1.1.0, `verismith
generate` emits a random Verilog module. Not run: `fuzz` (needs
yosys/iverilog). portlint: 0 fatal.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
## Summary by Sourcery
Update verismith for compatibility with GHC 9.12 and restore its working
FreeBSD port.
Bug Fixes:
- Restore the verismith port's ability to build and package with GHC
9.12.
Enhancements:
- Switch verismith to its Hackage source and the shared Cabal dependency
configuration while relying on GHC 9.12 boot libraries.
- Relax verismith's package bounds to support the boot-library versions
provided by GHC 9.12.
Tests:
- Verify successful build, packaging, version reporting, and Verilog
generation on amd64.
Signed-off-by: Lucas Holt <luke at foolishgames.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply at anthropic.com>
To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/mports/settings/notifications
More information about the Midnightbsd-cvs
mailing list