Date: Tue, 6 Jun 2023 17:00:50 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: af011365cffd - main - textproc/opensp: fix build with clang 16 Message-ID: <202306061700.356H0o6Q059996@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=af011365cffd2b76bab3f514de664e803575fb1f commit af011365cffd2b76bab3f514de664e803575fb1f Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2023-06-05 21:00:15 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2023-06-06 16:58:39 +0000 textproc/opensp: fix build with clang 16 Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. Because textproc/opensp's build infrastructure does not explicitly set its C++ standard, this leads to an error: Recognizer.cxx:42:3: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register const Trie *pos = trie_.pointer(); ^~~~~~~~~ To work around the error, define the register keyword away using CPPFLAGS. PR: 271851 Approved by: fernape MFH: 2023Q2 --- textproc/opensp/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/textproc/opensp/Makefile b/textproc/opensp/Makefile index a35ee3774ead..64bbb116820f 100644 --- a/textproc/opensp/Makefile +++ b/textproc/opensp/Makefile @@ -1,6 +1,6 @@ PORTNAME= OpenSP PORTVERSION= 1.5.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= textproc MASTER_SITES= SF/openjade/${PORTNAME:tl}/${PORTVERSION} @@ -20,6 +20,8 @@ CONFIGURE_ARGS= --enable-default-catalog=${PREFIX}/share/sgml/catalog \ --datadir=${PREFIX}/share/sgml/openjade \ --disable-doc-build +CPPFLAGS+= -Dregister= + OPTIONS_DEFINE= DOCS NLS OPTIONS_SUB= yes NLS_CONFIGURE_ENABLE= nls
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306061700.356H0o6Q059996>