svn commit: r549747 - head/mail/rspamd

Piotr Kubaj pkubaj at FreeBSD.org
Wed Sep 23 16:42:39 UTC 2020


Author: pkubaj
Date: Wed Sep 23 16:42:39 2020
New Revision: 549747
URL: https://svnweb.freebsd.org/changeset/ports/549747

Log:
  mail/rspamd: fix build on powerpc64 elfv2, switch to luajit-openresty on powerpc64
  
  On powerpc64, binaries with clang and LTO on powerpc64 segfault at start, use GCC instead.
  
  Enable luajit using luajit-openresty.

Modified:
  head/mail/rspamd/Makefile

Modified: head/mail/rspamd/Makefile
==============================================================================
--- head/mail/rspamd/Makefile	Wed Sep 23 16:13:26 2020	(r549746)
+++ head/mail/rspamd/Makefile	Wed Sep 23 16:42:39 2020	(r549747)
@@ -17,7 +17,7 @@ LIB_DEPENDS=	libpcre.so:devel/pcre \
 BUILD_DEPENDS=	ragel:devel/ragel
 RUN_DEPENDS=	ca_root_nss>=3.*:security/ca_root_nss
 
-USES=		cmake compiler:c11 gnome perl5 pkgconfig \
+USES=		cmake gnome perl5 pkgconfig \
 		sqlite ssl
 USE_LDCONFIG=	yes
 USE_PERL5=	build run
@@ -34,6 +34,7 @@ OPTIONS_DEFAULT_amd64=		LUAJIT
 OPTIONS_DEFAULT_armv7=		LUAJIT
 OPTIONS_DEFAULT_i386=		LUAJIT
 OPTIONS_DEFAULT_powerpc=	LUAJIT
+OPTIONS_DEFAULT_powerpc64=	LUAJIT
 OPTIONS_SUB=	yes
 
 BLAS_DESC=	Use OpenBLAS to accelerate KANN
@@ -75,6 +76,15 @@ CGP_RUN_DEPENDS+=	\
 	p5-AnyEvent>=0:devel/p5-AnyEvent \
 	p5-EV>=0:devel/p5-EV \
 	p5-JSON-XS>=0:converters/p5-JSON-XS
+
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc64
+LUAJIT_LIB_DEPENDS=	libluajit-5.1.so:lang/luajit-openresty
+USES+=		compiler:gcc-c++11-lib
+.else
+USES+=		compiler:c11
+.endif
 
 post-install:
 	@${MKDIR} \


More information about the svn-ports-all mailing list