git: dd0399efb00e - main - textproc/hs-pandoc: Try to unbreak on i386.

Gleb Popov arrowd at FreeBSD.org
Tue Apr 27 13:18:44 UTC 2021


The branch main has been updated by arrowd:

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

commit dd0399efb00ed11ec8f58f8f457719cd68e5b379
Author:     Gleb Popov <arrowd at FreeBSD.org>
AuthorDate: 2021-04-27 13:17:11 +0000
Commit:     Gleb Popov <arrowd at 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>


More information about the dev-commits-ports-all mailing list