From nobody Thu May 18 11:41:08 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 4QMSjJ3tMfz4BSxF; Thu, 18 May 2023 11:41:08 +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 4QMSjJ3703z3x0l; Thu, 18 May 2023 11:41:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684410068; 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=TD3pMHCIbGsuZhIdVf/SjyygGWaNwm9K641pxtudDYc=; b=SWnvrvzIxuA9NBE3Gt93JOHAwYDEvZs9Pmoe5GtTfg4YoGwWUxG7ZjoEHdzC3c3wjN3I94 RiPQRhcvhLChm4L5O1JYbpbEa3tm57G6oLVEY7IWLomedANYMCBjHsZDfTEQs8xG6Nt6a9 g4n6jV+ZGtn5doUTbhl9f1Gt6YtKKVQXqrUMI/FfuKzSCUlH5YyxE+GVWAUTgxb0ZenFw2 y7RV4RkYaltv4PQh6DoHgCQKFcVQyVSkoOfDBz+XXK3qElf4GIlDZR1B/sikcAeqYq7RkY zRr89fE5SmCByHHh2eBgGB1/E3wWM/rROknOnwqUmAyObh8XbroxvOmnQwlt6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684410068; 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=TD3pMHCIbGsuZhIdVf/SjyygGWaNwm9K641pxtudDYc=; b=rHgxoNBd9hoIlGSXxDYIM8uIRXvZWgfIaj0h3QfzX9y9T5YZM68UeWxJfHomnSEtpH7iMB rnkSCxjdkd3YHSAA09wGqLyq9ghL6+ibZ2Ta/rmnTck6F/9sKNAUMqyjV/Z9ku9mYoryS6 yVw8gdHwNNcb98i0adDlnLcJjBxTY2ZUQx5ZAsz8ztA841uV7z+vkChTdyVxI0LGsx2QEx T/kzj83+N7OIV3S7/Y9Fl5P3hLrTVD9sF4fg/cwmok1KllR768lstX85a/3yHI+LBdL8D3 9oKw3l2h9lJBzaV7VLKqQzKonr8/21KjbVZQso30TsB7cGnqKtJ/kBso137LcQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684410068; a=rsa-sha256; cv=none; b=v1A17N6TcyoDD4wBcyPcqcV2E4nIpY7r4H2bnDoJLvVNT0QhJiOVU1w76z2K+13laG02qi eW+c7fHt1k6bZgSXrUbPzugVRNfDcpYbhMoP5QRG+c32wsaSNIF3I/T4V9rFs8so10ECL8 G+9wDVRi8rYK9TtFDo/S/PUCSoj77o/4Z4TpViQECAC9ksePO/+V4cJA5sb62Tc8M8qbQW Mca5xsdNHoQVwRvBpSxt4mEdC4/k4U0V48MECBAE6xkwfkjRJuJx/0RRGcvJq8Odn8GMoF eCF65kWngjnnB0C1Dzgjo/1tdZxA364TfdLgBUi6INcUVEKN8ZkNM/oYEPFCFw== 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 4QMSjJ2F0dzkhS; Thu, 18 May 2023 11:41:08 +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 34IBf8pE086826; Thu, 18 May 2023 11:41:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34IBf82b086825; Thu, 18 May 2023 11:41:08 GMT (envelope-from git) Date: Thu, 18 May 2023 11:41:08 GMT Message-Id: <202305181141.34IBf82b086825@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: 3792a424426e - main - graphics/ufraw: 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: 3792a424426e3174db35a7fff23815baa25d3b8c Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=3792a424426e3174db35a7fff23815baa25d3b8c commit 3792a424426e3174db35a7fff23815baa25d3b8c Author: Dimitry Andric AuthorDate: 2023-05-14 18:45:20 +0000 Commit: Dimitry Andric CommitDate: 2023-05-18 11:39:45 +0000 graphics/ufraw: fix build with clang 16 Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. Because graphics/ufraw's configure scripts and Makefiles do not explicitly set the C++ standard, this leads to several errors: /usr/local/include/lcms2.h:1291:44: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] typedef cmsInt32Number (* cmsSAMPLER16) (CMSREGISTER const cmsUInt16Number In[], ^~~~~~~~~~~~ /usr/local/include/lcms2.h:158:23: note: expanded from macro 'CMSREGISTER' # define CMSREGISTER register ^ /usr/local/include/lcms2.h:1292:44: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] CMSREGISTER cmsUInt16Number Out[], ^~~~~~~~~~~~ /usr/local/include/lcms2.h:158:23: note: expanded from macro 'CMSREGISTER' # define CMSREGISTER register ^ /usr/local/include/lcms2.h:1293:44: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] CMSREGISTER void * Cargo); ^~~~~~~~~~~~ /usr/local/include/lcms2.h:158:23: note: expanded from macro 'CMSREGISTER' # define CMSREGISTER register ^ /usr/local/include/lcms2.h:1295:44: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] typedef cmsInt32Number (* cmsSAMPLERFLOAT)(CMSREGISTER const cmsFloat32Number In[], ^~~~~~~~~~~~ /usr/local/include/lcms2.h:158:23: note: expanded from macro 'CMSREGISTER' # define CMSREGISTER register ^ /usr/local/include/lcms2.h:1296:44: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] CMSREGISTER cmsFloat32Number Out[], ^~~~~~~~~~~~ /usr/local/include/lcms2.h:158:23: note: expanded from macro 'CMSREGISTER' # define CMSREGISTER register ^ /usr/local/include/lcms2.h:1297:44: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] CMSREGISTER void * Cargo); ^~~~~~~~~~~~ /usr/local/include/lcms2.h:158:23: note: expanded from macro 'CMSREGISTER' # define CMSREGISTER register ^ Specifically for lcms2.h, adding -DCMS_NO_REGISTER_KEYWORD to CPPFLAGS would be enough, but graphics/ufraw also pulls in exiv2 headers which make use of std::auto_ptr, another construct that has been removed from C++17. Add USE_CXXSTD=gnu++98 to compile for C++98 with GNU extensions instead. PR: 271424 Approved by: portmgr (build fix blanket) MFH: 2023Q2 --- graphics/ufraw/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/graphics/ufraw/Makefile b/graphics/ufraw/Makefile index b90aa70d278b..3a9caf1c450a 100644 --- a/graphics/ufraw/Makefile +++ b/graphics/ufraw/Makefile @@ -1,6 +1,6 @@ PORTNAME= ufraw PORTVERSION= 0.22.20210424 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= graphics MAINTAINER= rodrigo@FreeBSD.org @@ -18,6 +18,7 @@ LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ USES= autoreconf compiler:c++11-lang desktop-file-utils gettext \ gmake gnome jpeg pkgconfig +USE_CXXSTD= gnu++98 USE_GITHUB= yes GH_ACCOUNT= sergiomb2 GH_TAGNAME= f34669b