svn commit: r475610 - head/lang/ghc

Gleb Popov arrowd at FreeBSD.org
Sat Jul 28 20:09:02 UTC 2018


Author: arrowd
Date: Sat Jul 28 20:09:01 2018
New Revision: 475610
URL: https://svnweb.freebsd.org/changeset/ports/475610

Log:
  When deinstalling a Haskell package pass --no-user-package-db flag to ghc-pkg to avoid creation of ~/.ghc directory.
  
  Reported by:	tcberner
  Approved by:	tcberner (mentor)
  Differential Revision:	https://reviews.freebsd.org/D16480

Modified:
  head/lang/ghc/bsd.cabal.mk

Modified: head/lang/ghc/bsd.cabal.mk
==============================================================================
--- head/lang/ghc/bsd.cabal.mk	Sat Jul 28 20:07:53 2018	(r475609)
+++ head/lang/ghc/bsd.cabal.mk	Sat Jul 28 20:09:01 2018	(r475610)
@@ -325,7 +325,7 @@ add-plist-post: add-plist-cabal
 add-plist-cabal:
 
 .  if !defined(STANDALONE)
-	@${ECHO_CMD} '@postunexec ${LOCALBASE}/bin/ghc-pkg unregister --force ${PORTNAME}-${PORTVERSION}' >> ${TMPPLIST}
+	@${ECHO_CMD} '@postunexec ${LOCALBASE}/bin/ghc-pkg unregister --no-user-package-db --force ${PORTNAME}-${PORTVERSION}' >> ${TMPPLIST}
 .  endif
 
 .  if defined(HADDOCK_AVAILABLE) && ${PORT_OPTIONS:MDOCS}


More information about the svn-ports-head mailing list