[Bug 246800] lang/ghc: ghc cannot be installed because ghc is not installed
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu May 28 12:37:56 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246800
--- Comment #7 from Gleb Popov <arrowd at FreeBSD.org> ---
Makes sense. Would following change be helpful?
Index: lang/ghc/Makefile
===================================================================
--- lang/ghc/Makefile (revision 536651)
+++ lang/ghc/Makefile (working copy)
@@ -254,6 +254,11 @@
.if empty(PORT_OPTIONS:MBOOT)
cd ${BOOT_DIR} && ${CONFIGURE_ENV} ${CONFIGURE_CMD}
--prefix=${BOOT_DIR}
cd ${BOOT_DIR} && PACKAGES='' ${MAKE_CMD} install
+.else
+# otherwise, make sure we have "ghc" in PATH
+ if ! ${WHICH} -s ghc ; then \
+ echo "No 'ghc' executable is found in your PATH! Turn off BOOT
option." ; false ; \
+ fi
.endif
# If DOCS are set, install HsColour in-place
.if ${PORT_OPTIONS:MDOCS}
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-haskell
mailing list