From nobody Fri Jun 30 20:27:35 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 4Qt6Lw1lgvz4kb3W; Fri, 30 Jun 2023 20:27:36 +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 4Qt6Lw1HXvz3KV1; Fri, 30 Jun 2023 20:27:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688156856; 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=1a8jO8at9kJ3ivNOvOUOFoA1XiVf37xMvnbIq+v91bU=; b=mKdsdZL6D5xhS4yVTZLy5292OMsbkxovrz5wWqS6hV1TP8/SXEiJ0mlL4KCTd1JFJFX023 JKLsD+7OkQoK2MvayuqWG2xtSdW7PmfAxeezun25DnkDRRxD86ccDjX+PTZC7HpN/UXyJT EJvCH39f9fjeU0LuuPXlMZq9xTyGUqeHMCNNL4GdfF0ffQpVt60bk7VilPDHePFAzX2aOV 4Bn/nh2T8Ce71GOFp6dGdKNgjVhYXJLpg5SZ0Lsx+S0RAc687qVKVS8Jb6cWgBb7MCxVr5 rX+v0oWqgMGBpJ9juBGhAftKljF4VXjxYoj65LYsXBwEM0hkDEP1ZnyhPVw0Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688156856; 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=1a8jO8at9kJ3ivNOvOUOFoA1XiVf37xMvnbIq+v91bU=; b=vGCy0Tf18Fb5yIUjnd1xtG3ll+5L1F0QICRB2uA0m9odWSGOY1o1CPTib+gGsAiKaxqJuE Ut7zUaEI/XLSVDivxLPIfZVNniBNByvA8S8+y+FZDZiIY3ivRNfHBTh6PpG+2JfG3iefFA TCCXLXWbtLUaG0x7sdy1x5M6G8eMvd/Z5R12Aba42yR2RBMAPC0UwYZBZRg8PH+4YLFTse aVqMTgcs7EPAvM5x6tkmxUl9QZ9Yv4vMxvrUI4mHA+nXEbZW4tIgBa0F1nSabYmYaXmxSM RH6NKryiP65lLnT8Vv4OerA0lxgLIGQv0B9fbRyyHnTKoxptmuXjtIKFdCkr0w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688156856; a=rsa-sha256; cv=none; b=TAT+YMKzcXlWECEoiKVieLA8S2vtJpX/C92ZHuqBU4GAE6InUQ/yih24pWA3QO2BWGwuIY dSJL5mmKnsQOiOfwBYhuFPL92IvJ7BuKFULscOyWZJrfJjxQPjhogMF4bYxLpEsQ4N3m1G KO3IpAQmA8sMHj0oha14AF5/M3sVQxpwmnJ/uXKdfIATGtgZ+AdSmVvEDw7kdM/LLyi76h 91u/3CY2NDt8967JxvE7pLrKyJWo9saBe9oO3CKm8J+ktYB/tSKKr2kyrtTztdm7V4cRvN Y5vrAIhN/P+0iqZ27XaiqoyqMucADOu7VubZzjGfr/1E1QvmX1Rs/S2pfc14TA== 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 4Qt6Lw0MMjz1BsH; Fri, 30 Jun 2023 20:27:36 +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 35UKRZvJ078696; Fri, 30 Jun 2023 20:27:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 35UKRZkF078695; Fri, 30 Jun 2023 20:27:35 GMT (envelope-from git) Date: Fri, 30 Jun 2023 20:27:35 GMT Message-Id: <202306302027.35UKRZkF078695@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: cc81b511cad3 - main - databases/mongodb44: fix build with llvm16 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: cc81b511cad32a95051cb8272b3a98f98fce9313 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by ronald: URL: https://cgit.FreeBSD.org/ports/commit/?id=cc81b511cad32a95051cb8272b3a98f98fce9313 commit cc81b511cad32a95051cb8272b3a98f98fce9313 Author: Ronald Klop AuthorDate: 2023-06-30 20:22:14 +0000 Commit: Ronald Klop CommitDate: 2023-06-30 20:27:15 +0000 databases/mongodb44: fix build with llvm16 _HAS_AUTO_PTR_ETC=0 fixes: In file included from src/third_party/boost-1.70.0/boost/functional/hash.hpp:6: src/third_party/boost-1.70.0/boost/container_hash/hash.hpp:130: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-1.70.0/boost/mpl/integral_c.hpp:32: src/third_party/boost-1.70.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 '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/mongodb44/Makefile | 2 ++ ...__party_boost-1.70.0_boost_mpl_aux___integral__wrapper.hpp | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/databases/mongodb44/Makefile b/databases/mongodb44/Makefile index cc061ee0b445..98b3a8722753 100644 --- a/databases/mongodb44/Makefile +++ b/databases/mongodb44/Makefile @@ -30,6 +30,8 @@ LIB_DEPENDS= libpcre.so:devel/pcre \ USES= compiler:c++17-lang cpe python:build scons USE_RC_SUBR= mongod +CFLAGS+= -D_HAS_AUTO_PTR_ETC=0 + PORTSCOUT= limit:^4\.4\. CONFLICTS_INSTALL= mongodb[0-9][0-9] # etc/mongodb.conf.sample diff --git a/databases/mongodb44/files/patch-src_third__party_boost-1.70.0_boost_mpl_aux___integral__wrapper.hpp b/databases/mongodb44/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/mongodb44/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)));