From nobody Tue Feb 24 09:34:05 2026 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fKsxB02f6z6TYZ6 for ; Tue, 24 Feb 2026 09:34:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fKsx96LxJz3sr2 for ; Tue, 24 Feb 2026 09:34:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771925645; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZbVj7mW1L9O7z+H7VoddXe/8GyMP4h4xn4ATpGpBhyE=; b=UK/+BE7ybFk/FvqxlD2Y+etXDpPwxtQ6gw05+327OHp7SEiBxt34Jn7bw/DrGQTm9BdkYx p9S5VhF+HS9BF6P3JbYDLgaURcUt3EZwH5GjUWsO/7VkViNT1CLJWIcPRDjEChqp9yDFLL /orQSPe5KLs/xlaH8NgTRLJLRt1SyLCikrZMbo4pGiSdIodHThkEvWJuTqhf3Bp74/RtDB roNcgBc5k3uUBU6xbr1NacXdVlZXIq36z4IFz/fpE31luVLuU5aaWh14qTeG4GEvte0HF8 fDrajTdMj1lHqRk0DMlhYVBCPEZOC6R7d+YXLYFQAdDuuG3cvMKke1fCqLpcUQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771925645; a=rsa-sha256; cv=none; b=FyCyvED5mtxArm9ps2bonmpzBefWL+LCBjipHtscSB+vl6bEnVXaHl20QkTjRnCvY5WMPm RVPor6THbW2jkW6uHfDw0NgyS5Iz1JX/PRhQQnfsGICevfwyAk2RX6AY8EF6qGM22GDsBZ 6UmltQGHCjaZUBF7BNnZOyTs8mR+hz2UxOWh5QrR9Xqu7pCH0j/mJmLmTixdCUfWC6Bkjq wVYg1Zg/na+KxUJau0+At/jvQaLo65Q5DJ42TdDsTRLANAsHd9HIVr50jtoNXaiGIvSYKb eL01pgcl6vq3H94L5bnHqe5AIHgTSzg9qrfXn3lp+RKLrOklX2yxOIB20hBKXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771925645; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZbVj7mW1L9O7z+H7VoddXe/8GyMP4h4xn4ATpGpBhyE=; b=GwIEnGb4Pb4EXBmqMlt7+GyRSWNHagIkHCMpaajSftOOK2yaelZd/tdq1xDsW5Y1C1PwMz foqzQbrBkBfksNn+FHgrnUrw7uELRi9rGfhC5Z6WFclPZetOnEyWgvgq6SGWX12XSepnEm RySFtbw44znDKm5DpDXIrl963f0w1Awc8ZrbHuHtw6QraUoc79NPGaCZrcvFM4+1RzFODz MBA2CbVGRfGwo/zWVC9ToEbCLJniAErz5YwtCItn4TGvSUsAaSJS5Hz3aEibOcMhb75VLr sM4uCYPl4YMZJrxqJRHHsLsoss/mdGcYJqK34VulTexoUh9gCzpG9ZGWaA/NDQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fKsx95vy8z18Cw for ; Tue, 24 Feb 2026 09:34:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 26714 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 24 Feb 2026 09:34:05 +0000 To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org Cc: Dimitry Andric From: Ronald Klop Subject: git: 1236852dbf99 - 2026Q1 - databases/mongodb70: fix build with clang 21 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ronald X-Git-Repository: ports X-Git-Refname: refs/heads/2026Q1 X-Git-Reftype: branch X-Git-Commit: 1236852dbf99c4c5a69db112117d71e8ff2a09d8 Auto-Submitted: auto-generated Date: Tue, 24 Feb 2026 09:34:05 +0000 Message-Id: <699d708d.26714.331c1e6e@gitrepo.freebsd.org> The branch 2026Q1 has been updated by ronald: URL: https://cgit.FreeBSD.org/ports/commit/?id=1236852dbf99c4c5a69db112117d71e8ff2a09d8 commit 1236852dbf99c4c5a69db112117d71e8ff2a09d8 Author: Dimitry Andric AuthorDate: 2026-02-20 13:00:22 +0000 Commit: Ronald Klop CommitDate: 2026-02-24 09:33:14 +0000 databases/mongodb70: fix build with clang 21 With clang 21 databases/mongodb70 fails to build, with errors similar to: In file included from src/third_party/boost/libs/log/src/default_sink.cpp:20: In file included from src/third_party/boost/boost/thread/locks.hpp:10: In file included from src/third_party/boost/boost/thread/lock_algorithms.hpp:11: In file included from src/third_party/boost/boost/thread/lock_types.hpp:18: In file included from src/third_party/boost/boost/thread/thread_time.hpp:11: In file included from src/third_party/boost/boost/date_time/posix_time/posix_time_types.hpp:16: In file included from src/third_party/boost/boost/date_time/posix_time/posix_time_duration.hpp:15: In file included from src/third_party/boost/boost/numeric/conversion/cast.hpp:33: In file included from src/third_party/boost/boost/numeric/conversion/converter.hpp:13: In file included from src/third_party/boost/boost/numeric/conversion/conversion_traits.hpp:13: In file included from src/third_party/boost/boost/numeric/conversion/detail/conversion_traits.hpp:18: In file included from src/third_party/boost/boost/numeric/conversion/detail/int_float_mixture.hpp:19: In file included from src/third_party/boost/boost/mpl/integral_c.hpp:32: src/third_party/boost/boost/mpl/aux_/integral_wrapper.hpp:62:51: error: in-class initializer for static data member is not a constant expression 62 | BOOST_STATIC_CONSTANT(AUX_WRAPPER_VALUE_TYPE, prior_value = BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (N - 1))); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/third_party/boost/boost/config/detail/suffix.hpp:394:72: note: expanded from macro 'BOOST_STATIC_CONSTANT' 394 | # define BOOST_STATIC_CONSTANT(type, assignment) static const type assignment | ^~~~~~~~~~ src/third_party/boost/boost/log/utility/strictest_lock.hpp:70:53: note: in instantiation of template class 'mpl_::integral_c' requested here 70 | struct thread_access_mode_of< no_lock< MutexT > > : mpl::integral_c< lock_access_mode, unlocked_access > | ^ src/third_party/boost/boost/mpl/aux_/integral_wrapper.hpp:62:65: note: integer value -1 is outside the valid range of values [0, 3] for the enumeration type 'lock_access_mode' 62 | BOOST_STATIC_CONSTANT(AUX_WRAPPER_VALUE_TYPE, prior_value = BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (N - 1))); | ^ src/third_party/boost/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(expr) | ^ There are two of these cases in the vendored copy of boost in mongodb70, which have been fixed in boost upstream: * https://github.com/boostorg/numeric_conversion/commit/50a1eae * https://github.com/boostorg/log/commit/77f1e20 To fix the errors, port these patches back to the vendored boost. PR: 293230 MFH: 2026Q1 (cherry picked from commit ab1af9dff06a3eab6e485a27a6eceb7d13d2c50e) --- ...rty_boost_boost_log_utility_strictest__lock.hpp | 70 ++++++++++++++++++++++ ...meric_conversion_detail_int__float__mixture.hpp | 23 +++++++ ...ost_numeric_conversion_detail_sign__mixture.hpp | 23 +++++++ ...ric_conversion_detail_udt__builtin__mixture.hpp | 23 +++++++ 4 files changed, 139 insertions(+) diff --git a/databases/mongodb70/files/patch-src_third__party_boost_boost_log_utility_strictest__lock.hpp b/databases/mongodb70/files/patch-src_third__party_boost_boost_log_utility_strictest__lock.hpp new file mode 100644 index 000000000000..1b6d245a824b --- /dev/null +++ b/databases/mongodb70/files/patch-src_third__party_boost_boost_log_utility_strictest__lock.hpp @@ -0,0 +1,70 @@ +--- src/third_party/boost/boost/log/utility/strictest_lock.hpp.orig 2026-02-10 20:02:45 UTC ++++ src/third_party/boost/boost/log/utility/strictest_lock.hpp +@@ -16,7 +16,7 @@ + #ifndef BOOST_LOG_UTILITY_STRICTEST_LOCK_HPP_INCLUDED_ + #define BOOST_LOG_UTILITY_STRICTEST_LOCK_HPP_INCLUDED_ + +-#include ++#include + #include + #include + #if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) +@@ -67,49 +67,49 @@ template< typename MutexT > + struct thread_access_mode_of; + + template< typename MutexT > +-struct thread_access_mode_of< no_lock< MutexT > > : mpl::integral_c< lock_access_mode, unlocked_access > ++struct thread_access_mode_of< no_lock< MutexT > > : boost::integral_constant< lock_access_mode, unlocked_access > + { + }; + + #if !defined(BOOST_LOG_NO_THREADS) + + template< typename MutexT > +-struct thread_access_mode_of< lock_guard< MutexT > > : mpl::integral_c< lock_access_mode, exclusive_access > ++struct thread_access_mode_of< lock_guard< MutexT > > : boost::integral_constant< lock_access_mode, exclusive_access > + { + }; + + template< typename MutexT > +-struct thread_access_mode_of< shared_lock_guard< MutexT > > : mpl::integral_c< lock_access_mode, shared_access > ++struct thread_access_mode_of< shared_lock_guard< MutexT > > : boost::integral_constant< lock_access_mode, shared_access > + { + }; + + template< typename MutexT > +-struct thread_access_mode_of< unique_lock< MutexT > > : mpl::integral_c< lock_access_mode, exclusive_access > ++struct thread_access_mode_of< unique_lock< MutexT > > : boost::integral_constant< lock_access_mode, exclusive_access > + { + }; + + template< typename MutexT > +-struct thread_access_mode_of< shared_lock< MutexT > > : mpl::integral_c< lock_access_mode, shared_access > ++struct thread_access_mode_of< shared_lock< MutexT > > : boost::integral_constant< lock_access_mode, shared_access > + { + }; + + template< typename MutexT > +-struct thread_access_mode_of< upgrade_lock< MutexT > > : mpl::integral_c< lock_access_mode, shared_access > ++struct thread_access_mode_of< upgrade_lock< MutexT > > : boost::integral_constant< lock_access_mode, shared_access > + { + }; + + template< typename MutexT > +-struct thread_access_mode_of< boost::log::aux::exclusive_lock_guard< MutexT > > : mpl::integral_c< lock_access_mode, exclusive_access > ++struct thread_access_mode_of< boost::log::aux::exclusive_lock_guard< MutexT > > : boost::integral_constant< lock_access_mode, exclusive_access > + { + }; + + template< typename MutexT > +-struct thread_access_mode_of< boost::log::aux::shared_lock_guard< MutexT > > : mpl::integral_c< lock_access_mode, shared_access > ++struct thread_access_mode_of< boost::log::aux::shared_lock_guard< MutexT > > : boost::integral_constant< lock_access_mode, shared_access > + { + }; + + template< typename MutexT1, typename MutexT2 > +-struct thread_access_mode_of< boost::log::aux::multiple_unique_lock2< MutexT1, MutexT2 > > : mpl::integral_c< lock_access_mode, exclusive_access > ++struct thread_access_mode_of< boost::log::aux::multiple_unique_lock2< MutexT1, MutexT2 > > : boost::integral_constant< lock_access_mode, exclusive_access > + { + }; + diff --git a/databases/mongodb70/files/patch-src_third__party_boost_boost_numeric_conversion_detail_int__float__mixture.hpp b/databases/mongodb70/files/patch-src_third__party_boost_boost_numeric_conversion_detail_int__float__mixture.hpp new file mode 100644 index 000000000000..45f9e5cc2bae --- /dev/null +++ b/databases/mongodb70/files/patch-src_third__party_boost_boost_numeric_conversion_detail_int__float__mixture.hpp @@ -0,0 +1,23 @@ +--- src/third_party/boost/boost/numeric/conversion/detail/int_float_mixture.hpp.orig 2026-02-10 20:02:45 UTC ++++ src/third_party/boost/boost/numeric/conversion/detail/int_float_mixture.hpp +@@ -16,15 +16,15 @@ + #include "boost/numeric/conversion/int_float_mixture_enum.hpp" + #include "boost/numeric/conversion/detail/meta.hpp" + +-#include "boost/mpl/integral_c.hpp" ++#include "boost/type_traits/integral_constant.hpp" + + namespace boost { namespace numeric { namespace convdetail + { + // Integral Constants for 'IntFloatMixture' +- typedef mpl::integral_c int2int_c ; +- typedef mpl::integral_c int2float_c ; +- typedef mpl::integral_c float2int_c ; +- typedef mpl::integral_c float2float_c ; ++ typedef boost::integral_constant int2int_c ; ++ typedef boost::integral_constant int2float_c ; ++ typedef boost::integral_constant float2int_c ; ++ typedef boost::integral_constant float2float_c ; + + // Metafunction: + // diff --git a/databases/mongodb70/files/patch-src_third__party_boost_boost_numeric_conversion_detail_sign__mixture.hpp b/databases/mongodb70/files/patch-src_third__party_boost_boost_numeric_conversion_detail_sign__mixture.hpp new file mode 100644 index 000000000000..50ae9c4c98ca --- /dev/null +++ b/databases/mongodb70/files/patch-src_third__party_boost_boost_numeric_conversion_detail_sign__mixture.hpp @@ -0,0 +1,23 @@ +--- src/third_party/boost/boost/numeric/conversion/detail/sign_mixture.hpp.orig 2026-02-10 20:02:45 UTC ++++ src/third_party/boost/boost/numeric/conversion/detail/sign_mixture.hpp +@@ -16,15 +16,15 @@ + #include "boost/numeric/conversion/sign_mixture_enum.hpp" + #include "boost/numeric/conversion/detail/meta.hpp" + +-#include "boost/mpl/integral_c.hpp" ++#include "boost/type_traits/integral_constant.hpp" + + namespace boost { namespace numeric { namespace convdetail + { + // Integral Constants for 'SignMixture' +- typedef mpl::integral_c unsig2unsig_c ; +- typedef mpl::integral_c sig2sig_c ; +- typedef mpl::integral_c sig2unsig_c ; +- typedef mpl::integral_c unsig2sig_c ; ++ typedef boost::integral_constant unsig2unsig_c ; ++ typedef boost::integral_constant sig2sig_c ; ++ typedef boost::integral_constant sig2unsig_c ; ++ typedef boost::integral_constant unsig2sig_c ; + + // Metafunction: + // diff --git a/databases/mongodb70/files/patch-src_third__party_boost_boost_numeric_conversion_detail_udt__builtin__mixture.hpp b/databases/mongodb70/files/patch-src_third__party_boost_boost_numeric_conversion_detail_udt__builtin__mixture.hpp new file mode 100644 index 000000000000..9af692a1f48e --- /dev/null +++ b/databases/mongodb70/files/patch-src_third__party_boost_boost_numeric_conversion_detail_udt__builtin__mixture.hpp @@ -0,0 +1,23 @@ +--- src/third_party/boost/boost/numeric/conversion/detail/udt_builtin_mixture.hpp.orig 2026-02-10 20:02:45 UTC ++++ src/third_party/boost/boost/numeric/conversion/detail/udt_builtin_mixture.hpp +@@ -15,15 +15,15 @@ + #include "boost/numeric/conversion/udt_builtin_mixture_enum.hpp" + #include "boost/numeric/conversion/detail/meta.hpp" + +-#include "boost/mpl/integral_c.hpp" ++#include "boost/type_traits/integral_constant.hpp" + + namespace boost { namespace numeric { namespace convdetail + { + // Integral Constants for 'UdtMixture' +- typedef mpl::integral_c builtin2builtin_c ; +- typedef mpl::integral_c builtin2udt_c ; +- typedef mpl::integral_c udt2builtin_c ; +- typedef mpl::integral_c udt2udt_c ; ++ typedef boost::integral_constant builtin2builtin_c ; ++ typedef boost::integral_constant builtin2udt_c ; ++ typedef boost::integral_constant udt2builtin_c ; ++ typedef boost::integral_constant udt2udt_c ; + + // Metafunction: + //