From nobody Mon Aug 07 23:40:42 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 4RKXrC0m7Sz4pm4j; Mon, 7 Aug 2023 23:40:43 +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 4RKXrB6tCMz4XRt; Mon, 7 Aug 2023 23:40:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691451643; 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=dkTeX+FDO43ovmMj9nNCfMjngXlkfBaDhF4uTZHLwZE=; b=sJFtQx+ZONjTo7JX5ZJR/3FU7AeVk2T1zLINVfmzx3Uzlpd30y+6x3mj/QI1WKRaL/dHhS TjhMdoBtv+FIilGN702foAvZdQabfvQB+Gm9COBGAZhrUuoZlOhnOo5JJVUOpUUlG33vOe vmR/gllD3cbkm6L6wcfMefiUGr9o12bZaZVtP9Jopqqlw0Ju4fhfL5HB01IjaGS2rKgJmj ScIWvznAQT4yJ6q/UWmKWG9+hxP6d2Izl/6Ax2KuFX32a+UWqXkxO2x9JseY+cYxKYA8W1 KvHh7bKiEu1Pi8EVfZcfIMe/TH7owOfkDAR/CKxy+q1u4QPVRQAUrVmjkvBfkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691451643; 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=dkTeX+FDO43ovmMj9nNCfMjngXlkfBaDhF4uTZHLwZE=; b=PN+GZ2Gdnn+0p7UUhyM06RVQnjsU9cwrBBZ70t5cPycrW7w+CCXheFBUmbNS9t5JmcvZUR Z9BTn0DXS8QNA3UXeBYAjwmwVk4zem4P8vm8NJs5/fEc8us2k1LaqZ8+kI5I1mf7urQLK+ dSsKQZUhZDn/vsTlYdEIkY61MAxkU1URm6TajlOC/qSqhQXl4tiIb54FicRzqp8UwWpaSl vQsUPRih2loS2XmwQ6b720t+hbNVdEoS546USQQRqYL2AllH7x3+AfA96PktB1wjMpfRu0 IVqLb2lO8JIf0heX/+Bgr+VH76+nXaD9jmUmB/3Mx5OzWYFuPc+ZLbU5XF+VXg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691451643; a=rsa-sha256; cv=none; b=sdKqcbEdawN/YF3J7PO9m0bkZAWzYnGMxC13KT/nfqQjiFogxayrnEAPluvnYEUPiL4T1K h0sL7cipi/nAGBWI2bLI200BcLiaOtdcWOTo/qetmHADSMLShlaDVeS+S+9VNaw0+ttTXq v6ttRufDnMZOerqnD/mD0hfB8QSf/Hz1yGD6CPf7B6kd6BBFS2yauNbOydVXgNDap9pnVr pr7PAD6zWjHBpMNEhhLaj7EW7eiwz9ZEiZmr5z+PRH2pvNGXMT8qTLPoErE2ctyg2FfIAR BFQA4q5G0TQlt67L9+mOnd+bcoiIqIkfyezjDSp0BXw0S78iWyyBTwYd5hqMbA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RKXrB5xW4z19tp; Mon, 7 Aug 2023 23:40:42 +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 377NegGf052255; Mon, 7 Aug 2023 23:40:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 377Neg4f052254; Mon, 7 Aug 2023 23:40:42 GMT (envelope-from git) Date: Mon, 7 Aug 2023 23:40:42 GMT Message-Id: <202308072340.377Neg4f052254@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: f893b345ec10 - main - devel/codeworker: 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: f893b345ec10f024be122861b3ea0b439ce00fd1 Auto-Submitted: auto-generated The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=f893b345ec10f024be122861b3ea0b439ce00fd1 commit f893b345ec10f024be122861b3ea0b439ce00fd1 Author: Muhammad Moinur Rahman AuthorDate: 2023-08-07 23:24:47 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-08-07 23:24:47 +0000 devel/codeworker: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- devel/codeworker/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/devel/codeworker/Makefile b/devel/codeworker/Makefile index ba8b10632a9a..d296f616ebe5 100644 --- a/devel/codeworker/Makefile +++ b/devel/codeworker/Makefile @@ -13,6 +13,7 @@ LICENSE= LGPL21 WRKSRC= ${WRKDIR}/CodeWorker${PORTVERSION:S/./_/g} USES= dos2unix gmake zip +USE_CXXSTD= c++14 MAKE_ARGS= CC="${CXX}" CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" LFLAGS="-lm" ALL_TARGET= build @@ -20,11 +21,27 @@ CFLAGS+= -Dstricmp=strcasecmp PLIST_FILES= bin/codeworker +.include + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Wno-error=dynamic-exception-spec +CPPFLAGS+= -Wno-error=dynamic-exception-spec +CXXFLAGS+= -Wno-error=dynamic-exception-spec +.endif + post-patch: @${FIND} ${WRKSRC} -name "*.cpp" -or -name "*.h" | ${XARGS} \ ${REINPLACE_CMD} -e \ 's||| ; \ s|(__cplusplus) \&\&|(__cplusplus) // \&\&|' +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) + @${REINPLACE_CMD} -e 's|auto_ptr|unique_ptr|g' \ + ${WRKSRC}/CppParsingTree.cpp \ + ${WRKSRC}/CppParsingTree.h + @${REINPLACE_CMD} -E 's|throw\(UtlException\)|noexcept\(false\)|g' \ + ${WRKSRC}/CGRuntime.cpp \ + ${WRKSRC}/CGRuntime.h +.endif do-install: (cd ${WRKSRC} && ${INSTALL_PROGRAM} codeworker ${STAGEDIR}${PREFIX}/bin)