Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jul 2023 10:36:42 GMT
From:      Ronald Klop <ronald@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 4426adf7a80a - main - databases/mongodb42: fix build with llvm16/clang16
Message-ID:  <202307051036.365AagIu022696@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by ronald:

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

commit 4426adf7a80a9344a9f755a2ca66e668ec7a1720
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2023-07-05 10:34:56 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2023-07-05 10:36:29 +0000

    databases/mongodb42: fix build with llvm16/clang16
    
    Similar fix as mongodb44.
---
 databases/mongodb42/Makefile                                  |  2 ++
 ...__party_boost-1.70.0_boost_mpl_aux___integral__wrapper.hpp | 11 +++++++++++
 2 files changed, 13 insertions(+)

diff --git a/databases/mongodb42/Makefile b/databases/mongodb42/Makefile
index 96d417f4b831..d5df687f88b5 100644
--- a/databases/mongodb42/Makefile
+++ b/databases/mongodb42/Makefile
@@ -36,6 +36,8 @@ LIB_DEPENDS=	libpcre.so:devel/pcre \
 USES=		compiler:c++17-lang cpe python:build scons shebangfix
 USE_RC_SUBR=	mongod
 
+CFLAGS+=	-D_HAS_AUTO_PTR_ETC=0
+
 CONFLICTS_INSTALL=	mongodb[0-9][0-9] # etc/mongodb.conf.sample
 
 OPTIONS_DEFINE=	LTO SASL SSL
diff --git a/databases/mongodb42/files/patch-src_third__party_boost-1.70.0_boost_mpl_aux___integral__wrapper.hpp b/databases/mongodb42/files/patch-src_third__party_boost-1.70.0_boost_mpl_aux___integral__wrapper.hpp
new file mode 100644
index 000000000000..fc5562f61763
--- /dev/null
+++ b/databases/mongodb42/files/patch-src_third__party_boost-1.70.0_boost_mpl_aux___integral__wrapper.hpp
@@ -0,0 +1,11 @@
+--- src/third_party/boost-1.70.0/boost/mpl/aux_/integral_wrapper.hpp.orig	2023-06-29 10:06:20 UTC
++++ src/third_party/boost-1.70.0/boost/mpl/aux_/integral_wrapper.hpp
+@@ -56,7 +56,7 @@ struct AUX_WRAPPER_NAME
+ // have to #ifdef here: some compilers don't like the 'N + 1' form (MSVC),
+ // while some other don't like 'value + 1' (Borland), and some don't like
+ // either
+-#if BOOST_WORKAROUND(__EDG_VERSION__, <= 243)
++#if 1 //BOOST_WORKAROUND(__EDG_VERSION__, <= 243)
+  private:
+     BOOST_STATIC_CONSTANT(AUX_WRAPPER_VALUE_TYPE, next_value = BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (N + 1)));
+     BOOST_STATIC_CONSTANT(AUX_WRAPPER_VALUE_TYPE, prior_value = BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (N - 1)));



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