Date: Sun, 19 Mar 2023 19:47:07 GMT From: Gleb Popov <arrowd@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 1d1c5c66f18a - main - Uses/cabal.mk: Add a workaround to fix compilation of text-2 on FreeBSD 13.1 Message-ID: <202303191947.32JJl7Iu015743@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=1d1c5c66f18aee3b56ea8f7b26632c7fdaeddbc3 commit 1d1c5c66f18aee3b56ea8f7b26632c7fdaeddbc3 Author: Gleb Popov <arrowd@FreeBSD.org> AuthorDate: 2023-03-19 19:45:57 +0000 Commit: Gleb Popov <arrowd@FreeBSD.org> CommitDate: 2023-03-19 19:47:03 +0000 Uses/cabal.mk: Add a workaround to fix compilation of text-2 on FreeBSD 13.1 --- Mk/Uses/cabal.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Mk/Uses/cabal.mk b/Mk/Uses/cabal.mk index 29046ef8ecda..44cfcb11da99 100644 --- a/Mk/Uses/cabal.mk +++ b/Mk/Uses/cabal.mk @@ -81,6 +81,12 @@ IGNORE= CABAL_PROJECT: invalid value: ${CABAL_PROJECT} BROKEN= ${USE_CABAL:Mbasement-0.0.1[4-5]} package doesn't compile on i386 . endif +. if ${OSVERSION} >= 1301000 && ${OSVERSION} < 1302000 && defined(USE_CABAL) && ${USE_CABAL:Mtext-2.*} +# Band-aids for a Clang bug that is shipped with FreeBSD 13.1 +BUILD_DEPENDS+= clang15:devel/llvm15 +BUILD_ARGS+= --ghc-options='-pgmc clang++15' +. endif + PKGNAMEPREFIX?= hs- CABAL_EXECUTABLES?= ${PORTNAME}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303191947.32JJl7Iu015743>