From nobody Thu May 18 21:37:14 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 4QMjx64xg5z4C2pp; Thu, 18 May 2023 21:37:14 +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 4QMjx62gLBz40qJ; Thu, 18 May 2023 21:37:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684445834; 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=2VAJyCk4GPzTuMotAUP3bNQtX8+7lLeD0G16gZo+MI8=; b=eCGN979ogkITQBNOvrnPagj4//Dllvq4ZMG7u7HZWfDGhY8YtgTVuhxv3gRyEluYhHaqki jt2af1mMgOoGpTP3g14dX6cCtWu7lNySoFhKSgg5VPRrsfToUTgXqTQR/DxG38pjWDaBXQ SZlTft3n2+N4bIfexm0oD/l0zFmSZlExkkOyunN4GFZKEEuFpkFUcSHlzK1ljJmJJuYUYc Hm9/UxjH/52Vt+V26EOj4LGGunsSnveSZXfscjUV81cI3TtjFqXmSeC558OLa+M0KGk/JY 19BCJZlxvWj7P7il2j/+++z/1/8vBac6u3B6vUxdkx8ABaFVRKVlVWMq31Vh6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684445834; 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=2VAJyCk4GPzTuMotAUP3bNQtX8+7lLeD0G16gZo+MI8=; b=mYRcsmbz4p8PHWDL2beSALJxkCGHkr7tzbxThwPL294vTN0lZU3icRWE7YLcFrKCb9JWpT /V96gTSV5vaNnSxTxbjnRF26E1GWW+3KAe7UXqSk41Vd9pevPLFYAVnHws4HQJ0U9tEhn4 GkcNxG9ZX3BkFPpvA355VDSXZw7iTteJ+J/8RTDboIlahZSqR+iGKO7kcnAFRi7/Kif2Es VAxEA6Hre3AJoSBjR9SvH/9ajWRdDLvgZk5E9bdzdK0rmPO6li+imEWFkmNaLVmOVIHKw0 Mc7eFRuqyxGjkCsfw+GG78MAK3qggrytQInthBmgZ2m9n06vmqRtVw3JbcJnwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684445834; a=rsa-sha256; cv=none; b=YSMnfTU6oQQIhciKb5JKoHf3lOk2R7C9dSC76chS0GLbxzFRHuLkLi4RpO86+MnplIh5nt oVL1S6oKlses9w6pT1Ruvia41cDmFsoaWi5aqZsMxC2xRVb76JFZc0eEPqdVwiNPDiISyv 9Rf8DYJD7Zg0zqVS0Pxxu8H9Q8LAFCOPHBOlMRbxGS8mPj2xIEMUMkywfttiveAuuakyUm h8GfyNlNWOYRxhZNCBezEXdppoG5LHR9X5bKW6BG2tOjy2xQrwcaUmUJJgNEuyobxGJOAL +I2eXxeKJSjjYJvtASBfwH74I8xHPx9seVlSzxT3VBXTb4HAEle5fq0ZqmdSDg== 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 4QMjx61Yf3z12P6; Thu, 18 May 2023 21:37:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 34ILbEVE063990; Thu, 18 May 2023 21:37:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34ILbEbU063989; Thu, 18 May 2023 21:37:14 GMT (envelope-from git) Date: Thu, 18 May 2023 21:37:14 GMT Message-Id: <202305182137.34ILbEbU063989@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: 6a58ef80a134 - main - graphics/freeimage: fix build with clang 16 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: dim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6a58ef80a134804463b7f9de82503bdb681b46c1 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=6a58ef80a134804463b7f9de82503bdb681b46c1 commit 6a58ef80a134804463b7f9de82503bdb681b46c1 Author: Dimitry Andric AuthorDate: 2023-05-18 15:08:08 +0000 Commit: Dimitry Andric CommitDate: 2023-05-18 21:35:52 +0000 graphics/freeimage: fix build with clang 16 Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. Because graphics/freeimage's Makefile does not explicitly set its C++ standard, this leads to several errors: In file included from Source/FreeImage/PluginEXR.cpp:33: In file included from Source/FreeImage/../OpenEXR/IlmImf/ImfOutputFile.h:46: In file included from Source/OpenEXR/IlmImf/ImfHeader.h:51: Source/OpenEXR/Imath/ImathVec.h:228:34: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec] const Vec2 & normalizeExc () throw (IEX_NAMESPACE::MathExc); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/OpenEXR/Imath/ImathVec.h:228:34: note: use 'noexcept(false)' instead const Vec2 & normalizeExc () throw (IEX_NAMESPACE::MathExc); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ noexcept(false) Source/OpenEXR/Imath/ImathVec.h:232:37: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec] Vec2 normalizedExc () const throw (IEX_NAMESPACE::MathExc); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/OpenEXR/Imath/ImathVec.h:232:37: note: use 'noexcept(false)' instead Vec2 normalizedExc () const throw (IEX_NAMESPACE::MathExc); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ noexcept(false) Because these constructs are no longer available in C++17, add USE_CXXSTD=gnu++14 to compile for C++14 with GNU extensions instead. PR: 271493 Approved by: portmgr (build fix blanket) MFH: 2023Q2 --- graphics/freeimage/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/graphics/freeimage/Makefile b/graphics/freeimage/Makefile index 04ac430f0d73..4dc5f8448d26 100644 --- a/graphics/freeimage/Makefile +++ b/graphics/freeimage/Makefile @@ -1,6 +1,6 @@ PORTNAME= freeimage PORTVERSION= 3.18.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= graphics MASTER_SITES= SF/${PORTNAME}/Source%20Distribution/${PORTVERSION} DISTNAME= FreeImage${PORTVERSION:S/.//g} @@ -21,6 +21,7 @@ BROKEN_mips= fails to compile: section referenced in discarded section BROKEN_mips64= fails to compile: opcode not supported on this processor: mips3 (mips3) 'madd $4,$5' USES= cpe dos2unix gmake zip +USE_CXXSTD= gnu++14 CPE_VENDOR= ${PORTNAME}_project DOS2UNIX_FILES= Source/LibOpenJPEG/opj_malloc.h \ Source/LibRawLite/dcraw/dcraw.c \