Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Apr 2021 13:18:44 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: dd0399efb00e - main - textproc/hs-pandoc: Try to unbreak on i386.
Message-ID:  <202104271318.13RDIirw042345@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=dd0399efb00ed11ec8f58f8f457719cd68e5b379

commit dd0399efb00ed11ec8f58f8f457719cd68e5b379
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2021-04-27 13:17:11 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2021-04-27 13:18:25 +0000

    textproc/hs-pandoc: Try to unbreak on i386.
    
    Turn off compiler optimizations on i386 as they require too much RAM.
    Reported by:    pkg-fallout
---
 textproc/hs-pandoc/Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/textproc/hs-pandoc/Makefile b/textproc/hs-pandoc/Makefile
index e1a21ee6aacc..d761ad430996 100644
--- a/textproc/hs-pandoc/Makefile
+++ b/textproc/hs-pandoc/Makefile
@@ -155,6 +155,13 @@ EXECUTABLES=	pandoc
 
 OPTIONS_SUB=	yes
 
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == i386
+# compiler goes out of memory
+CABAL_FLAGS+=	--disable-optimization
+.endif
+
 post-extract:
 	${RM} ${WRKSRC}/cabal.project
 
@@ -163,4 +170,4 @@ post-install-EMBED_DATA-off:
 post-install:
 	${INSTALL_MAN} ${WRKSRC}/man/pandoc.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
 
-.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?202104271318.13RDIirw042345>