CVSROOT:        /cvs
Module name:    ports
Changes by:     [email protected]  2026/09/27 12:09:48

Modified files:
        lang/ghc       : Makefile 
Added files:
        lang/ghc/patches: patch-libraries_ghc-boot_GHC_BaseDir_hs 
                          
patch-libraries_ghc-internal_src_GHC_Internal_System_Environment_ExecutablePath_hsc
 
                          patch-testsuite_tests_lib_base_executablePath_hs 

Log message:
lang/ghc: use getexecpath(3) for executablePath on OpenBSD

getexecpath(3) is new in OpenBSD 8.0. Without it ghc-internal falls through
to the argv[0] fallback and System.Environment.executablePath is Nothing.

Also let ghc-boot use base's executablePath, choosing at run time so the port
still builds with a bootstrap compiler whose base predates getexecpath(3),
and mark openbsd as query-capable in the executablePath test.

Bump REVISION for the getexecpath change

System.Environment.executablePath goes from Nothing to a working query, and
getExecutablePath from argv[0] to a canonicalized absolute path, so the
package behaves differently and needs to be distinguishable.

OK kili@

Reply via email to