Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 May 2020 12:58:56 +0000 (UTC)
From:      Gleb Popov <arrowd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r536766 - head/lang/ghc
Message-ID:  <202005281258.04SCwuAR048901@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arrowd
Date: Thu May 28 12:58:56 2020
New Revision: 536766
URL: https://svnweb.freebsd.org/changeset/ports/536766

Log:
  lang/ghc: Print a error message if BOOT option is enabled, but the user has no "ghc" in PATH.
  
  PR:		246800
  Submitted by:	software@bertram-scharpf.de

Modified:
  head/lang/ghc/Makefile

Modified: head/lang/ghc/Makefile
==============================================================================
--- head/lang/ghc/Makefile	Thu May 28 11:59:09 2020	(r536765)
+++ head/lang/ghc/Makefile	Thu May 28 12:58:56 2020	(r536766)
@@ -254,6 +254,11 @@ pre-configure: apply-slist
 .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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005281258.04SCwuAR048901>