#991482 libantlr4-runtime-dev: Headers are not usable with C++-17

Package:
libantlr4-runtime-dev
Source:
antlr4-cpp-runtime
Description:
ANTLR Parser Generator - C++ runtime support (development files)
Submitter:
Adrian Bunk
Date:
2021-07-25 17:21:03 UTC
Severity:
important
Tags:
#991482#5
Date:
2021-07-25 13:34:50 UTC
From:
To:
The source of antlr4-cpp-runtime defines two different ABIs,
one for C++ < 17 and one for C++ >= 17.

The library is always built for the C++ < 17 ABI with
https://sources.debian.org/src/antlr4-cpp-runtime/4.9+dfsg-1/CMakeLists.txt/#L79

Programs trying to use ANTLRInputStream.h with C++ >= 17
(like mysql-workbench) fail to link since the header exposed
a different ABI than what the library provided.

The attached patch removes the problematic part from the header,
a proper fix is in the upstream versin 4.9.2.

It would be good to have that fixed in bullseye,
and I can do an NMU if necessary.

#991482#14
Date:
2021-07-25 13:56:12 UTC
From:
To:
Hi Adrian,

Please proceed with the patch and NMU.

Best,
Andrius

#991482#19
Date:
2021-07-25 16:56:24 UTC
From:
To:
Hi Andrius,

thanks, uploaded.

cu
Adrian

#991482#24
Date:
2021-07-25 17:18:26 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
antlr4-cpp-runtime, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 991482@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adrian Bunk <bunk@debian.org> (supplier of updated antlr4-cpp-runtime package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 25 Jul 2021 19:02:59 +0300
Source: antlr4-cpp-runtime
Architecture: source
Version: 4.9+dfsg-1.1
Distribution: unstable
Urgency: medium
Maintainer: Andrius Merkys <merkys@debian.org>
Changed-By: Adrian Bunk <bunk@debian.org>
Closes: 991482
Changes:
 antlr4-cpp-runtime (4.9+dfsg-1.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Make ANTLRInputStream.h usable with C++17. (Closes: #991482)
Checksums-Sha1:
 590ce3c86e554afa616d0da24268465c24ddec9e 2073 antlr4-cpp-runtime_4.9+dfsg-1.1.dsc
 531d9facd71e185505773ffb5b3016548696238e 4360 antlr4-cpp-runtime_4.9+dfsg-1.1.debian.tar.xz
Checksums-Sha256:
 4cd077a273e22af9c64dc1f477e6b226b0837ffbb07e7eab64459a672347bcf3 2073 antlr4-cpp-runtime_4.9+dfsg-1.1.dsc
 5d83d8a294e8be7305c1711ec05a523c01a3e0134544c180e73feec7fd0894f8 4360 antlr4-cpp-runtime_4.9+dfsg-1.1.debian.tar.xz
Files:
 6282ac28fa7629016e38bcfe78cf79c9 2073 libs optional antlr4-cpp-runtime_4.9+dfsg-1.1.dsc
 968b13ce6bbca7275dbe1bd0a1cdb218 4360 libs optional antlr4-cpp-runtime_4.9+dfsg-1.1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEOvp1f6xuoR0v9F3wiNJCh6LYmLEFAmD9lLgACgkQiNJCh6LY
mLEbnhAAph5qnypbpUGpew0eqOy/SD8CVg7jpLhViDvwwBF7miUGEaoSmLqgLTw6
yqywRUoXalvPHKLRapNqMB/nFtINtvmHRAlyhbf40S9zrNp9CyPnynyYIq8L6BnI
GKBLRfsr8DXcau0ntRcxGIsVUeD0J46V4YtiXUYzF7QtOxqY3b/yfS8xRf9u8IjG
umiiv+QIkXlk9EBXFsYmw+A5KfJcA1gxe9aUZJ5oYnCpllR22MAGCfwjwat8b1yM
oc3ts8O+LCnwtAcua9WJFEEGytfiBq5Q7GhewnQKiADjgv3oqQfv6AuomLDs7CFw
4Rdi2R2aZLOmdKqLWNl0UOu98P2/8B5wxDm06DvGlfEUY8tGIMt158S9Xmzaokii
ZtXyJuJsdYXT6Z0Y6q7Mmn67M9pAzw4/WbAnRu8fO3AuXj68aOaaWGRXPA+ha6vi
Qbsiqxv6LoU8tLosWkhFLvfPT7svrsrKfPq6AR7yzbVPqe/APgLoE+lJv/2ldZat
fULgMvCWhPLiuVcML0jUr/llw0WyhGJS5+zi8kgVBz7a8/ujiXxXlh+WJ4F7I6mE
oH+32RJEg8Nm9/4foH7bsRQTEtGpsGDqsGl+oC3xrjMdYkk5SiXDaG5sxWpF12/9
XfA3b2Old8uv+mQDAEPZXQok88kOs4Zzk3Hy0vB7/WxMAS/GdqQ=
=mTSx
-----END PGP SIGNATURE-----