[Bug 228319] database/mongodb fails to build on 11.2-BETA1
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu May 17 17:05:57 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228319
--- Comment #1 from mgrooms at shrew.net ---
Uggh, sorry. I was trying to fix two broken port builds and I mixed up the info
for the two. Let me try again.
Makefile Diff ...
--- Makefile.old 2018-05-17 11:52:01.482886000 -0500
+++ Makefile 2018-05-17 12:00:06.856907000 -0500
@@ -38,7 +38,7 @@
OPTIONS_DEFAULT=SSL
TEST_DESC= Add support for running regression test
-USES= cpe scons
+USES= cpe compiler scons
MAKE_ARGS= --prefix=${STAGEDIR}${PREFIX} --cc=${CC} --cxx=${CXX} \
--use-system-pcre --use-system-snappy --use-system-v8
@@ -72,6 +72,14 @@
ALL_TARGET= core tools
.endif
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == clang
+.if ${COMPILER_VERSION} >= 60
+CXXFLAGS+= -Wno-undefined-var-template -Wno-unused-private-field
-Wno-unused-local-typedef -Wno-undefined-bool-conversion
+.endif
+.endif
+
post-patch:
@${REINPLACE_CMD} 's/\["-O3"\]/"${CXXFLAGS}"/' \
${WRKSRC}/SConstruct
@@ -82,4 +90,4 @@
${MAKE_CMD} ${_MAKE_JOBS} ${MAKE_ARGS} ${TEST_TARGET}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Source code diff ( not sure how to make that conditional on clang 6.0 ) ...
--- src/mongo/util/fail_point_registry.cpp.old 2018-05-17 12:03:41.963178000
-0500
+++ src/mongo/util/fail_point_registry.cpp 2018-05-17 12:03:52.764014000
-0500
@@ -53,7 +53,7 @@
}
FailPoint* FailPointRegistry::getFailPoint(const string& name) const {
- return mapFindWithDefault(_fpMap, name, reinterpret_cast<FailPoint
*>(NULL));
+ return mapFindWithDefault(_fpMap, name, static_cast<FailPoint
*>(NULL));
}
void FailPointRegistry::freeze() {
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list