From nobody Wed Aug 02 21:18:27 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 4RGPwb0y12zZnX0; Wed, 2 Aug 2023 21:18:28 +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 4RGPwM2MpVz3Pgw; Wed, 2 Aug 2023 21:18:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691011107; 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=JuYVZkVU9IwxEItnlKf1ZO+KwYPfIjzh5rsIlIKopsk=; b=wm0e+rCKAyIrYHrZGa9MDX32e7fyskt4VH30nnj1y6njGWtskC/ylUzZRe0P/S8x9r7oA9 aw3RqHSd0HngqSsV3e+hd3H/b+vzuSJNWIYUZ9SrzpblUGEQF1L22mhBUO75N5Iy7Plbn6 8Y+Rm4AgWijg7sYQeRpOOKXbaUt5aiWa1OmsIYbA/zh7UBaiHsR1jds64iClo7KZzIshIf XY2H3VIY1qCOOL1ffY+Ci7rsqDr3jDRi8ndmClOFG0Sjlxi7PjPgobW101ruh8NbFAiOYr jak1TDyE5sJsdsnavk3tnZPpbmgh1m8WrVP/m9ohUwnJf+F+ceJsMbHbQ0UO9Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691011107; a=rsa-sha256; cv=none; b=DrclCm1ANzTQlmj/u9OGDF97qCrlJGwylQ8n6mEEcjKN81CJPsdDunEJF+P54U49Wq3tu/ yKga0KghPN0jc/nHdC7gOcsCDFsdOTez6GLa6ciEXFmWa7nEmn7NQoLpXsQYFbaGN7PrOk uK+56pYvmU7iIBjwmDci51HLR8Z+MtPGVRMhSGk/51/Y2AnILuU/45VQbzCA8hjNQcRtGf 7aWN5kFjX5PWzGyBo9R2Boou7xt2xvKmb9W4JpMrxFJx4cHQ+qTwvUNt0NP+EVOGsM2Qnb NxQauC/jQWbNDmH8pHpuPecSI8V1sBMIQxb2QEMLBAPO0kZbm/5ZxCAuEJSc8A== 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=1691011107; 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=JuYVZkVU9IwxEItnlKf1ZO+KwYPfIjzh5rsIlIKopsk=; b=URx1JlJvLnslExAyyau+9eDZh6Mhw9hUXmMmpH7+yB2nvJHnoDIeDM52KemTNpVouGW7fI mEqMhuv0VC+440ChYuoRPRCWsPlv/sZeTsT9eYiICuV+JeR/r8Iowot8cv6Aq7kstu6jU0 LArRsQBl/aOFjxI/59NH3Vdh7TBi2S6gr1yNaAG72d9pEwJQs36+6wWR46LEJDFWmPTvX8 fwdwAlllci60qcPaqx8MnyT33idOlXo/KPD2EaaUz4vzRVeeRXgHVAPW9s7XSdbkcORlBt NvfpKn8eL/nL1WYEWnJbBXwlYuZ9HWwHzRcIpW6hLRETfYRegMh38Ex2hSEs8A== 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 4RGPwM1BdgzZV8; Wed, 2 Aug 2023 21:18:27 +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 372LIR4C017603; Wed, 2 Aug 2023 21:18:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 372LIRSh017602; Wed, 2 Aug 2023 21:18:27 GMT (envelope-from git) Date: Wed, 2 Aug 2023 21:18:27 GMT Message-Id: <202308022118.372LIRSh017602@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: 94d12ee1dfee - main - science/tfel: 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: 94d12ee1dfeebbda4be7236b4858af0762e7b389 Auto-Submitted: auto-generated The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=94d12ee1dfeebbda4be7236b4858af0762e7b389 commit 94d12ee1dfeebbda4be7236b4858af0762e7b389 Author: Muhammad Moinur Rahman AuthorDate: 2023-08-02 20:10:22 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-08-02 21:18:14 +0000 science/tfel: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- science/tfel/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/science/tfel/Makefile b/science/tfel/Makefile index 445ee570f8cf..1e6fccf49434 100644 --- a/science/tfel/Makefile +++ b/science/tfel/Makefile @@ -41,10 +41,21 @@ CMAKE_ON+= enable-portable-build TEST_TARGET= check +.include + +post-patch: +.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160 + @${REINPLACE_CMD} -e 's|std::unary_function|std::__unary_function|' \ + ${WRKSRC}/include/NUMODIS/Math/Utilities.hxx \ + ${WRKSRC}/include/TFEL/Math/General/Abs.hxx + @${REINPLACE_CMD} -e 's|std::binary_function|std::__binary_function|' \ + ${WRKSRC}/include/TFEL/Math/General/AbsCompare.hxx +.endif + post-install: (cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \ -d ${PREFIX} -f ${PYTHONPREFIX_SITELIBDIR:S,${PREFIX}/,,}) (cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \ -d ${PREFIX} -f ${PYTHONPREFIX_SITELIBDIR:S,${PREFIX}/,,}) -.include +.include