git: 8fafad24092d - main - databases/mysql81-server: fix build on powerpc64*

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sat, 15 Jun 2024 10:09:47 UTC
The branch main has been updated by pkubaj:

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

commit 8fafad24092d756b244053280ecb699369ba3a9a
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-06-15 09:21:55 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-06-15 10:09:37 +0000

    databases/mysql81-server: fix build on powerpc64*
    
    /wrkdirs/usr/ports/databases/mysql81-server/work/mysql-8.1.0/boost/boost_1_77_0/boost/mpl/aux_/integral_wrapper.hpp:73:31: error: integer value -1 is outside the valid range of values [0, 3] for the enumeration type 'int_float_mixture_enum' [-Wenum-constexpr-conversion]
    /wrkdirs/usr/ports/databases/mysql81-server/work/mysql-8.1.0/boost/boost_1_77_0/boost/mpl/aux_/static_cast.hpp:24:47: note: expanded from macro 'BOOST_MPL_AUX_STATIC_CAST'
       24 | #   define BOOST_MPL_AUX_STATIC_CAST(T, expr) static_cast<T>(expr)
---
 databases/mysql81-server/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/databases/mysql81-server/Makefile b/databases/mysql81-server/Makefile
index 8e1a1ab072de..0e6f987a760b 100644
--- a/databases/mysql81-server/Makefile
+++ b/databases/mysql81-server/Makefile
@@ -55,6 +55,7 @@ BUILD_DEPENDS_powerpc64le=	libunwind>0:devel/libunwind
 CMAKE_BUILD_TYPE=	Release
 CFLAGS+=		-fPIC
 CFLAGS_aarch64?=	-march=armv8-a+crc+crypto
+CXXFLAGS+=	-Wno-error=enum-constexpr-conversion
 
 CMAKE_ARGS+=	-DINSTALL_LAYOUT=FREEBSD \
 		-DINSTALL_LDCONFIGDIR="${LOCALBASE}/libdata/ldconfig" \