svn commit: r528843 - head/databases/mariadb101-server
Piotr Kubaj
pkubaj at FreeBSD.org
Sat Mar 21 10:20:17 UTC 2020
Author: pkubaj
Date: Sat Mar 21 10:20:16 2020
New Revision: 528843
URL: https://svnweb.freebsd.org/changeset/ports/528843
Log:
databases/mariadb101-server: fix build on powerpc64 elfv2
Like other SQL servers, this port fails to build due to Clang bug:
Wrong types for attribute: inalloca nest noalias nocapture nonnull readnone readonly signext sret zeroext byval dereferenceable(1) dereferenceable_or_null(1)
%call54 = call signext i32 @my_atomic_cas32(i32* %62, i32* %64, %union.U_32 signext %65)
in function lf_hash_insert
fatal error: error in backend: Broken function found, compilation aborted!
Modified:
head/databases/mariadb101-server/Makefile
Modified: head/databases/mariadb101-server/Makefile
==============================================================================
--- head/databases/mariadb101-server/Makefile Sat Mar 21 09:53:42 2020 (r528842)
+++ head/databases/mariadb101-server/Makefile Sat Mar 21 10:20:16 2020 (r528843)
@@ -28,7 +28,7 @@ LICENSE_PERMS_PerconaFT= dist-mirror dist-sell pkg-mir
SUB_FILES= pkg-message
-USES= bison:build cmake:insource,noninja compiler:c++11-lib cpe libedit ncurses \
+USES= bison:build cmake:insource,noninja cpe libedit ncurses \
shebangfix ssl
USE_LDCONFIG= ${PREFIX}/lib/mysql
SHEBANG_FILES= scripts/*.sh
@@ -161,6 +161,12 @@ ZMQ_LIB_DEPENDS= libzmq.so:net/libzmq4
SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS=""
.else
SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment "
+.endif
+
+.if defined(PPC_ABI) && ${PPC_ABI} == ELFv2
+USES+= compiler:gcc-c++11-lib
+.else
+USES+= compiler:c++11-lib
.endif
.include <bsd.port.pre.mk>
More information about the svn-ports-head
mailing list