1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

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
This commit is contained in:
Gleb Popov 2018-07-28 20:09:01 +00:00
parent 011fb0189b
commit 468cd131bd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=475610

View File

@ -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}