Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Sep 2020 16:42:39 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r549747 - head/mail/rspamd
Message-ID:  <202009231642.08NGgdiZ040836@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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} \



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