Date: Sat, 29 Apr 2023 08:46:55 GMT From: Dimitry Andric <dim@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 276de0b84092 - main - textproc/source-highlight: fix build with clang 16 Message-ID: <202304290846.33T8ktAH079381@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=276de0b840925e727810341ed61a0849c9607e52 commit 276de0b840925e727810341ed61a0849c9607e52 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2023-04-24 10:40:06 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304290846.33T8ktAH079381>