[Midnightbsd-cvs] [MidnightBSD/mports] 2d8d19: Mk/extensions/cabal.mk: sync with FreeBSD Mk/Uses/...

Lucas Holt noreply at github.com
Fri Oct 2 01:13:14 EDT 2026


  Branch: refs/heads/Mk/cabal
  Home:   https://github.com/MidnightBSD/mports
  Commit: 2d8d190876b5d4833264925fb88ca91561a24b87
      https://github.com/MidnightBSD/mports/commit/2d8d190876b5d4833264925fb88ca91561a24b87
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-10-02 (Fri, 02 Oct 2026)

  Changed paths:
    M Mk/extensions/cabal.mk

  Log Message:
  -----------
  Mk/extensions/cabal.mk: sync with FreeBSD Mk/Uses/cabal.mk

Our cabal.mk predates several FreeBSD changes the current Haskell ports
rely on: CABAL_EXECUTABLES (replaces EXECUTABLES), CABAL_WRAPPER_SCRIPTS,
SKIP_CABAL_EXTRACT (replaces CABAL_BOOTSTRAP), HACKAGE_DISTNAME,
CABAL_REVISION, Makefile.cabal includes, cabal.project.local handling and
the non-"new-" cabal commands run with WRK_ENV and XDG paths.

mports adaptations:
- hook cabal-post-install-script with _USES_install (there is no stage
  phase; the old _USES_stage hook never ran)
- PREFIX is already staged in do-install, so use it directly, and write
  runtime paths (TRUE_PREFIX, unstaged DATADIR) into wrapper scripts
- default USE_LOCALE to en_US.UTF-8: mports builds under the C locale,
  FreeBSD under C.UTF-8, and GHC needs UTF-8

AI-Assisted-by: Claude Opus 5.5 <noreply at anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply at anthropic.com>
Signed-off-by: Lucas Holt <luke at foolishgames.com>


  Commit: ef53f76fc6614e1fa5563aec592e7b4a06cf6200
      https://github.com/MidnightBSD/mports/commit/ef53f76fc6614e1fa5563aec592e7b4a06cf6200
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-10-02 (Fri, 02 Oct 2026)

  Changed paths:
    M devel/hs-cabal-install/Makefile

  Log Message:
  -----------
  devel/hs-cabal-install: adapt to synced cabal.mk

Replace CABAL_BOOTSTRAP/PLIST_FILES with SKIP_CABAL_EXTRACT,
EXTRACT_ONLY and CABAL_EXECUTABLES as in FreeBSD's port, and define
do-build/do-install before including bsd.port.mk so they take
precedence over the cabal.mk defaults. bin/cabal is added to the plist
by the cabal.mk fake hook.

AI-Assisted-by: Claude Opus 5.5 <noreply at anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply at anthropic.com>
Signed-off-by: Lucas Holt <luke at foolishgames.com>


Compare: https://github.com/MidnightBSD/mports/compare/2dcccb2415f4...ef53f76fc661

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