From nobody Mon Jul 24 14:46:09 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 4R8jds5Xxdz4p0Dv; Mon, 24 Jul 2023 14:46:09 +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 4R8jds53pSz4bVH; Mon, 24 Jul 2023 14:46:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690209969; 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=LM64ZWqceJOjthGwos+PsjnGXoSyrsoDL+c1fPHH00g=; b=l3kY6DqP4zg8PZu5N1tnzkzejZRywK087xCSjJNsvFMuhzzE2IY029ffevbkUeudCxMe0t sfeT5Ve773zO3eJ4DU0mlXFnR2c4g/IS+8WbJC1IBV3CkbC8oMqkFw2KG4xAeCs6x+xrc0 XmgAeGNbwjyjlLxx610GGo6uQlbzRAob8K5qaPBIG9Wa5bvjGFcNFGjRptRlhN/FNelNRp 1z74EkqBCmYK7Cowd7LCKmzRL8YhmcvBq14fh3ICXZsJhE47I0cP9n17DEteIwbAoEVHH9 kIRGPh5Dcqnkx4+zj4YCkkLlnOYgTqy88wQCrITHFq9TN772rWB69+O61QC0cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690209969; 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=LM64ZWqceJOjthGwos+PsjnGXoSyrsoDL+c1fPHH00g=; b=w+JwVMbj868Jvhh9QmOL1Vv8sAX/TH+QJarRlA+GVzKEnMzu4Bg4dyQQ9ePJRqB3HXzFno GnM8TCnuQHuksjV9rKjZL0x9p57d/Vvr1/X6ugnqWNLQrKCBbWgz1U0FJZ8DNuyIH5XDUE uVaQWUxKe2aLJyHRGnV0nwzZOBG7/1B9a3YtrpWDRwAJMSjJL1GeXq0ixNmd7ItyYEWDKW qsJLkaMLU4+8Sj8S8lnIhE2iOekMpqpZ5P+xHISzpTKHbXHbcSL3QCxh2jhQX0R4+ts7Xe 0FonIx8bDjdln0CkERJfio9FhX3yPhS4cMTB1EYCkbgsk2IyCBTx+km9CJTdEA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690209969; a=rsa-sha256; cv=none; b=WAIVE9Jd+VTc2/8ti1srzMEYHHpH6E/L2TrgP5kyvFcZiZNVqvcKKP6hovdRhWRRRQJ/8L LsvdUJv3xPqxC4aAAvlW8G/hPrHVx8xUo94C0VoTbLpgbH61u6iPWGQ+Ei4pNQWt+vJAaL EDMfN3gP242YjJ0D+yVAz++QeYBh0j/RqVg88ZFXTh7vvDsgtj6iyyetaLzKF+XB0itUnN hXxOeriELwgyIAn/9DDgeaIdVFJ2Zo084S5X7YzQ0fFhoID29NDV1ETsghrLEQgG+evej/ 8tSaa4Vf3jJEjU6ARwe0QB/oAN+QvB9KWLTdVdATSIBSIZzN2LTacb8xIFEjYw== 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 4R8jds41hFzLjW; Mon, 24 Jul 2023 14:46:09 +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 36OEk9Sn080119; Mon, 24 Jul 2023 14:46:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36OEk9PG080118; Mon, 24 Jul 2023 14:46:09 GMT (envelope-from git) Date: Mon, 24 Jul 2023 14:46:09 GMT Message-Id: <202307241446.36OEk9PG080118@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: 647de40008d7 - main - devel/mongo-c-driver: 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: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 647de40008d708b0949ec9f3578c090d1d96ecc0 Auto-Submitted: auto-generated The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=647de40008d708b0949ec9f3578c090d1d96ecc0 commit 647de40008d708b0949ec9f3578c090d1d96ecc0 Author: Muhammad Moinur Rahman AuthorDate: 2023-07-24 13:40:58 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-07-24 14:46:01 +0000 devel/mongo-c-driver: Fix build with llvm16 - Pet portclippy Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- devel/mongo-c-driver/Makefile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/devel/mongo-c-driver/Makefile b/devel/mongo-c-driver/Makefile index a93d6cb887f8..7fe5ee7b24a9 100644 --- a/devel/mongo-c-driver/Makefile +++ b/devel/mongo-c-driver/Makefile @@ -18,16 +18,16 @@ USES= cmake cpe pathfix pkgconfig python:env CPE_VENDOR= mongodb USE_LDCONFIG= yes -CFLAGS+= -D__BSD_VISIBLE=1 - +CMAKE_ARGS= -DENABLE_BSON=SYSTEM \ + -DENABLE_ZLIB=SYSTEM +CMAKE_ON= ENABLE_MONGOC \ + ENABLE_ZSTD CMAKE_OFF= BUILD_TESTING \ ENABLE_EXAMPLES \ ENABLE_TESTS \ ENABLE_UNINSTALL -CMAKE_ON= ENABLE_MONGOC \ - ENABLE_ZSTD -CMAKE_ARGS= -DENABLE_BSON=SYSTEM \ - -DENABLE_ZLIB=SYSTEM + +CFLAGS+= -D__BSD_VISIBLE=1 OPTIONS_DEFINE= CRYPTOPROFILE DOCS ICU RDTSCP SASL SNAPPY SSL OPTIONS_DEFAULT= SSL @@ -55,6 +55,7 @@ SNAPPY_CMAKE_ON= -DENABLE_SNAPPY=ON SNAPPY_CMAKE_OFF= -DENABLE_SNAPPY=OFF SSL_USES= ssl +SSL_CMAKE_OFF= -DENABLE_SSL=OFF .include @@ -63,8 +64,9 @@ SSL_USES= ssl CMAKE_ARGS+= -DENABLE_SSL=LIBRESSL .endif CMAKE_ARGS+= -DENABLE_SSL=OPENSSL -.else -CMAKE_ARGS+= -DENABLE_SSL=OFF +.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*} +CFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L" +.endif .endif .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300523