From nobody Sat Apr 29 08:46:55 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 4Q7jl33zzxz48hGL; Sat, 29 Apr 2023 08:46:55 +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 4Q7jl33M4Zz3Pk1; Sat, 29 Apr 2023 08:46:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682758015; 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=7U84F1Ime8b1nSAkYTvndWuDtm0p9px6OYE6gZYIyrs=; b=VwiJAcfEL46zR0guJWktDs5ldvfLMnt0nwJ27Zz3YWA81vw6xWSC0SRW4xaB/zhQhkpt4K ZONzaSoj48/p5UWCuqRUO4UQmZes9uMBjLBI4AxTr4ls5kNOVuxdlX3YObU3s5chNP7Uj8 eZSe0wFjfh/nWUea2kIZIq87if8/9Y+u7IwA68UOgDoXhaZuev5Kbv5L5m/LR/e76kG7Jz DzS2mLDxl2kpg05tOc8w8fkfCxaYnYLg8L9HRWueXai/KnyACW++DvX78/w1ZVuhON1r6P PkjRJQ+RI8vLqvlJyjwpleIgsyyRX7qpkLhdlBmzXbWeeoh1DaOHQHBniI5HHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682758015; 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=7U84F1Ime8b1nSAkYTvndWuDtm0p9px6OYE6gZYIyrs=; b=B330qhyaNowWSbDfFcR9NOC5M2MHGZ0GbapeJEorQ/ZzHgl7QWYat//bb80+3CxwvWgBLL Nkh1DDMVX/kRwqxWW5v7DX5gUe8kX8c8QaVwBLhYB4YxF9umS2nLpFowQzMdTzxh4C9/Wk gpGRpSS0ykk/UjEPcGZNQKfgncSOF5c/BogqH9YGT8IOVA9QutycK8iIa1b4Oe2MHPjAPg NpShhkaZrO4nzPqWrc5jGUXUW7yiDWhdZKRfjIGs53VujwWTWfsabHF7naSpARH6XoDyDh KiJWv6EglmgrewOuR9IwPdyzgxMa4fDr2UQhtm+vf2OjRg2r2SzTp+BOs3MV6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682758015; a=rsa-sha256; cv=none; b=tbvkW7mIpf4nn+lBaVxiICdjlJev0yh+TNSm5mlIHKVBdViqqP7UBXyywrVl4O6k0JwzH+ oVyUL0UlH1pIW7I98DiF4QYvSBfdLm4yW7mAabwrCyCuvkVniOzr3t1WjcLujcMaAWoWzL aEc/CJPij1XrxzutqxzQXuwc4ckMl8ALCjyZSqKUX7Onc3/+eeqWoXibXXB3maWH6wmrlC TF/mj53MfUsnECpxGDEQMdWImaKndoMph6BOafJR00N3tRZwH8ZqNkoaNYOaibendwAX03 9NoNjhLJdTDlXzLN8/2fQbWo1OZxLftpxpszYT/dEDV8BYWmqTWvRWVAFKOSgQ== 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 4Q7jl32PqhzZsG; Sat, 29 Apr 2023 08:46:55 +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 33T8ktOf079382; Sat, 29 Apr 2023 08:46:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33T8ktAH079381; Sat, 29 Apr 2023 08:46:55 GMT (envelope-from git) Date: Sat, 29 Apr 2023 08:46:55 GMT Message-Id: <202304290846.33T8ktAH079381@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: 276de0b84092 - main - textproc/source-highlight: 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: 276de0b840925e727810341ed61a0849c9607e52 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=276de0b840925e727810341ed61a0849c9607e52 commit 276de0b840925e727810341ed61a0849c9607e52 Author: Dimitry Andric AuthorDate: 2023-04-24 10:40:06 +0000 Commit: Dimitry Andric CommitDate: 2023-04-29 08:43:16 +0000 textproc/source-highlight: fix build with clang 16 Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. Because textproc/source-highlight's Makefile does not explicitly set its C++ standard, this leads to several errors: In file included from fileutil.cc:28: ./fileutil.h:30:41: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec] string readFile(const string &fileName) throw (IOException); ^~~~~~~~~~~~~~~~~~~ ./fileutil.h:30:41: note: use 'noexcept(false)' instead string readFile(const string &fileName) throw (IOException); ^~~~~~~~~~~~~~~~~~~ noexcept(false) fileutil.cc:51:41: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec] string readFile(const string &fileName) throw (IOException) { ^~~~~~~~~~~~~~~~~~~ fileutil.cc:51:41: note: use 'noexcept(false)' instead string readFile(const string &fileName) throw (IOException) { ^~~~~~~~~~~~~~~~~~~ noexcept(false) In http://git.savannah.gnu.org/cgit/src-highlite.git/commit/?id=416b397 indicates that after 3.1.9 C++11 will be required and supported, so add USE_CXXSTD=gnu++11 to avoid the errors for now. PR: 271044 Approved by: tcberner (maintainer) MFH 2023Q2 --- textproc/source-highlight/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/textproc/source-highlight/Makefile b/textproc/source-highlight/Makefile index 3536cfe2c544..a71c50635adf 100644 --- a/textproc/source-highlight/Makefile +++ b/textproc/source-highlight/Makefile @@ -1,6 +1,6 @@ PORTNAME= source-highlight DISTVERSION= 3.1.9 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= textproc MASTER_SITES= GNU/src-highlite @@ -17,6 +17,7 @@ BUILD_DEPENDS= exctags:devel/ctags LIB_DEPENDS= libboost_regex.so:devel/boost-libs USES= compiler:c++11-lang gmake pathfix libtool localbase +USE_CXXSTD= gnu++11 GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-bash-completion INSTALL_TARGET= install-strip