Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Oct 2022 06:29:02 GMT
From:      Gleb Popov <arrowd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 561f6a0a7f71 - 2022Q4 - devel/hs-haskell-language-server: Disable optimization on aarch64 to unbreak the build.
Message-ID:  <202210030629.2936T2An003531@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2022Q4 has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=561f6a0a7f71070b9acc2c236f3bdb709caa1ec0

commit 561f6a0a7f71070b9acc2c236f3bdb709caa1ec0
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2022-10-03 06:17:14 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2022-10-03 06:28:55 +0000

    devel/hs-haskell-language-server: Disable optimization on aarch64 to unbreak the build.
    
    Reported by:    pkg-fallout
    
    (cherry picked from commit 86a3dad19f7cf5f02d425b822c41d29cb099dd72)
---
 devel/hs-haskell-language-server/Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/devel/hs-haskell-language-server/Makefile b/devel/hs-haskell-language-server/Makefile
index cac1a0538446..fa2aaaf545f0 100644
--- a/devel/hs-haskell-language-server/Makefile
+++ b/devel/hs-haskell-language-server/Makefile
@@ -593,10 +593,17 @@ USE_CABAL+=		${${f}_USE_CABAL}
 .endfor
 .endif
 
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == aarch64
+# compiler goes out of memory
+BUILD_ARGS+=	--disable-optimization
+.endif
+
 .if ${FLAVOR:U} != default
 post-install:
 	${RM} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-wrapper
 	${MV} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-${GHC_VERSION}
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



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