From nobody Sun Jul 02 19:02:19 2023 X-Original-To: dev-commits-ports-main@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 4QvJMb55Trz4lbYp; Sun, 2 Jul 2023 19:02:19 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QvJMb4gPxz4Q6h; Sun, 2 Jul 2023 19:02:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688324539; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Xx/7geFI9eR2+FmO/LMuNDrUQfCnDBwVjiHEuKKg1SQ=; b=K/xXJyw+QyJflI1OY4tQirfuk8CKytR+96qB1CKbIWBUt8vCjz0awFMx7TXCvLXnqixljk 4rw9giwWqrkDMIyGEH5ConYUiFJEvifI55LGkrh0t4eLTGjMyop9FLVN2g+9FOWHZ7NQoF TAo5vUIvhTf3rDi0mWEp3kuQyYyS8yDDvwUydEBf2poi0A/0PlxRlMTU38Bifr5kFYvrif LEUFI/6dqBKcCc4YZZwaaShYKDJvkn7P8I8Y//dqcUwttx5PCsRPSk3y/4Mrfw5Up+xFtS 8OMu+re85vAde6YagiGHRco9FWKFtizL+aFN34Jg5NJWkIV9VbmhK5oa1tUwrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688324539; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Xx/7geFI9eR2+FmO/LMuNDrUQfCnDBwVjiHEuKKg1SQ=; b=xG9zxQDRoVsadF4OMR8sgRxBfI7lLMmtqwEdOq6nSVfW5hCTFDsufm1yAakxmq5eJ8enqW gTmC7ikZz9ZjDF/5R34RwaR8H4ax8e/QeIODKbirVh2LMw6et2ybGJe3YOiBarWk92C3w6 ogCr6mYfzfuq8b+Tssnfdm1FTmwImKOR0Uc+Xu/9ufJ02EkNeFZq/xecvI4PfX1uL7dtbu szCba6x8iraWQlpyDdsi3Xs9TN6nwt5rtI+dueWBfmSX3R2I+owmMcg7lRJFz0pVAu42Ax iWQyS6RkWTXkAs65u1s3dxqCx4TgxF0O6SdJOpKpjVkj8YNKNNjES2ZPgbH9tg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688324539; a=rsa-sha256; cv=none; b=wSh3pwC0HxvRjaIErW8PpgMF5UXUxcBf51WHm2C7s9ZMOfDHuPFqN8w3tdIugmjguhuRCL FZS2Iba7QAvXakYExzpZfRQYxyQWtKaKTC5bHt5VOWAjXVn83Y0jQp7CEVP80Upttt8E/n ETeFALCwg3jtUgS+RkhDgkUX552RuWUn8mMzRQ+RnbtD6AzVuxJL4/4duLy4/fLJLCKgX9 f91InwqpLIE7PDRORveUtur5QcUJXGe1RagTb+vz/3Xf6zJAJ2ubIsQ/V3/ZWJ6s83OV89 xadpwXfTYBThf3Lv6xyR8Ey/VkL0YRTXBOezBvXbpakYFYMQK8cBZ4vdSCy68w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QvJMb3m1szKfH; Sun, 2 Jul 2023 19:02:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 362J2JBW017338; Sun, 2 Jul 2023 19:02:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 362J2JfP017337; Sun, 2 Jul 2023 19:02:19 GMT (envelope-from git) Date: Sun, 2 Jul 2023 19:02:19 GMT Message-Id: <202307021902.362J2JfP017337@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Ronald Klop Subject: git: 7711191a2af6 - main - databases/mongodb50: fix build with llvm16/clang16 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@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/main X-Git-Reftype: branch X-Git-Commit: 7711191a2af6cbba85e19739fdadbceffef0597a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by ronald: URL: https://cgit.FreeBSD.org/ports/commit/?id=7711191a2af6cbba85e19739fdadbceffef0597a commit 7711191a2af6cbba85e19739fdadbceffef0597a Author: Ronald Klop AuthorDate: 2023-07-02 18:52:04 +0000 Commit: Ronald Klop CommitDate: 2023-07-02 18:58:49 +0000 databases/mongodb50: fix build with llvm16/clang16 * BOOST_NO_CXX98_FUNCTION_BASE fixes: In file included from src/third_party/boost/boost/functional/hash.hpp:6: src/third_party/boost/boost/container_hash/hash.hpp:131:33: error: no template named 'unary_function' in namespace 'std'; did you mean '__unary_function'? struct hash_base : std::unary_function {}; ~~~~~^~~~~~~~~~~~~~ __unary_function /usr/include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function' declared here using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>; ^ * And "#if 1" fixes: In file included from src/third_party/boost/boost/mpl/integral_c.hpp:32: src/third_party/boost/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 'lock_access_mode' [-Wenum-constexpr-conversion] typedef AUX_WRAPPER_INST( BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (value - 1)) ) prior; PR: 272295 --- databases/mongodb50/Makefile | 2 ++ ...c_third__party_boost_boost_mpl_aux___integral__wrapper.hpp | 11 +++++++++++ databases/mongodb50/pkg-message | 8 ++++++++ 3 files changed, 21 insertions(+) diff --git a/databases/mongodb50/Makefile b/databases/mongodb50/Makefile index 5d06fd03bf73..2a4d610c9044 100644 --- a/databases/mongodb50/Makefile +++ b/databases/mongodb50/Makefile @@ -34,6 +34,8 @@ LIB_DEPENDS= libcurl.so:ftp/curl \ USES= compiler:c++17-lang cpe python:build scons shebangfix USE_RC_SUBR= mongod +CFLAGS+= -DBOOST_NO_CXX98_FUNCTION_BASE + SHEBANG_FILES= buildscripts/scons.py python_OLD_CMD= @python_interpreter@ diff --git a/databases/mongodb50/files/patch-src_third__party_boost_boost_mpl_aux___integral__wrapper.hpp b/databases/mongodb50/files/patch-src_third__party_boost_boost_mpl_aux___integral__wrapper.hpp new file mode 100644 index 000000000000..a45dcb0f2340 --- /dev/null +++ b/databases/mongodb50/files/patch-src_third__party_boost_boost_mpl_aux___integral__wrapper.hpp @@ -0,0 +1,11 @@ +--- src/third_party/boost/boost/mpl/aux_/integral_wrapper.hpp.orig 2023-06-30 20:32:00 UTC ++++ src/third_party/boost/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))); diff --git a/databases/mongodb50/pkg-message b/databases/mongodb50/pkg-message new file mode 100644 index 000000000000..43e45ca6a35a --- /dev/null +++ b/databases/mongodb50/pkg-message @@ -0,0 +1,8 @@ +[ +{ type: install + message: <