From nobody Sun May 14 19:29:18 2023 X-Original-To: dev-commits-ports-all@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 4QKCHM0bj3z4C2lk; Sun, 14 May 2023 19:29:19 +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 4QKCHM05qzz3h8j; Sun, 14 May 2023 19:29:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684092559; 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=0KJIx6p5D0Fsz0Q7lwbLIQjBo8GDRbn7Eu9i+VYESio=; b=nd0LUUEhIBcWywZidlpYdqxsOy8kebKrrqcSfCFttteGYwswLF/g3DR+lwqNoZe30BLNIB HE0ECvAOB5h7TXnD1YWaV8gw6mZ8jsSqnt+oWEapc6fHWI6LppH5Zpkgbqtj7rlEmPejXr Dn3hiEirvch59BXr3tAUpuhlR4S42PoYuIp/z1h80edKLcRzzspKS5J7u7YZWMmb/VW2Sw nDOMPsx+Dpzfd7hZQt5GckcKB7Mt1WJnm/7D/Ohro7YfjuKTP8DiyIJI8ir+R7imbGjhah P2orA2iu5Mnk/RztZyDcmrjbF6cePMVXTRbziw0qn2w0+Hq30a+mZYFgkmAimA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684092559; 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=0KJIx6p5D0Fsz0Q7lwbLIQjBo8GDRbn7Eu9i+VYESio=; b=Cyeu+lD1fXes+rMs7jf/sTrz3oUmcpCT7MVVjrGUowqEHxln05tRTi56tA4kXbCfkHbpEX 7u1mjawJZpRqDdSbnMtb3In6F4q/IOmzQgdUG0haH90jHbuYEcLH2xxktZOMhNO/kWVefB IxDwDei3k0PRT7qUILjM7aPV0sPdnffKVk+0YjggKJccaZu7986fi2/SHhuEM1ePghohNr M9nPE4u+DrNJT2o4/LfKDaYejbmp6rN71deCR10x9BHzL/4jIkC9LU8H3mTAG6B/S5r78l MHZLzutuJHTgBJpFTGfNOC2yMQVXTGVE7L5QPR9/5bTbC7/wlrO8mB/af2kjlw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684092559; a=rsa-sha256; cv=none; b=a0TMatEvJE2tFU4nq1rEqUtPEGxsRYq4WsVPx1XK/NH209MUhvDLNnnmEojgsZCZK3wxmt q7evWUorENOV5t2C9IxcwSaVpWA+XgN1454gOrFNqQvwQKZ8TkZNij2iz+PfJjyQz4LgN5 F15oMNWpgM1PIDU77O8YvPAgeRR6a1T675w2vnGjaCed9XaEXGeAQitpYjvjLxWIdGwmHG EfGUQjmjBZmW8+FD53Gd3Y6vGsfYDOHtG8lq1Zt5ajx90ZVm0ilbarrNqSd5mV1TTOYfUW zRhJALtxNJddTCFBPmgZKYjymE28J66GnOMyLAfSEW3ruYDJeFAbRnbmZPgI8A== 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 4QKCHL6KJLz193m; Sun, 14 May 2023 19:29:18 +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 34EJTIYS066217; Sun, 14 May 2023 19:29:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34EJTIjL066216; Sun, 14 May 2023 19:29:18 GMT (envelope-from git) Date: Sun, 14 May 2023 19:29:18 GMT Message-Id: <202305141929.34EJTIjL066216@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: 6084a7f53724 - main - graphics/libfreehand: fix build with clang 16 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: 6084a7f537241a5936d76883a9638571bb9c102c Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=6084a7f537241a5936d76883a9638571bb9c102c commit 6084a7f537241a5936d76883a9638571bb9c102c Author: Dimitry Andric AuthorDate: 2023-05-14 17:55:47 +0000 Commit: Dimitry Andric CommitDate: 2023-05-14 19:26:54 +0000 graphics/libfreehand: fix build with clang 16 Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. Because graphics/libfreehand's configure scripts and Makefiles do not explicitly set the C++ standard, this leads to several errors: In file included from FreeHandDocument.cpp:14: In file included from ./FHParser.h:15: /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 ^ Add -D CMS_NO_REGISTER_KEYWORD to CPPFLAGS, to avoid lcms2.h using register keywords in its declarations. PR: 271421 Approved by: sunpoet (maintainer) MFH: 2023Q2 --- graphics/libfreehand/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/graphics/libfreehand/Makefile b/graphics/libfreehand/Makefile index 4ef08d8e943a..c02e1e7090e2 100644 --- a/graphics/libfreehand/Makefile +++ b/graphics/libfreehand/Makefile @@ -1,6 +1,6 @@ PORTNAME= libfreehand PORTVERSION= 0.1.2 -PORTREVISION= 25 +PORTREVISION= 26 CATEGORIES= graphics MASTER_SITES= LODEV @@ -22,6 +22,7 @@ USES= compiler:c++11-lang gperf perl5 libtool pathfix pkgconfig tar:xz USE_LDCONFIG= yes USE_PERL5= build CONFIGURE_ARGS= --disable-werror --without-docs +CPPFLAGS+= -D CMS_NO_REGISTER_KEYWORD CPPFLAGS+= -I ${LOCALBASE}/include INSTALL_TARGET= install-strip