Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 635644

Summary: dev-cpp/antlr-cpp: Version bump to 4.7
Product: Gentoo Linux Reporter: R030t1
Component: Current packagesAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal CC: graaff
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: antlr-cpp-4.7.1.ebuild

Description R030t1 2017-10-28 00:45:19 UTC
ANTLR is a parser generator that targets many languages. Some languages, like C++, require a shared or static library to be present when linking the application using the generated files. If possible it seems these should be installed when dev-java/antlr is installed, potentially controlled by USE flags. Use of ANTLR regardless of target language requires Java and dev-java/antlr, at the very least to process the grammar.

If they are installed, I was not able to find them. There exist dev-libs/antlr-c and dev-cpp/antlr-cpp - should this bug be a packaging or version update request instead?
Comment 1 James Le Cuirot gentoo-dev 2017-10-29 08:27:34 UTC
Please be clearer. Have you actually tried antlr-c or antlr-cpp? The former certainly does install a shared library. The latter does but only for v2. With v3, there is no library. What version are you interested in?

Old dev-java/antlr ebuilds for 2.7.7 used to deal with all the languages in a single ebuild. This made the ebuild hard to use and the code was a mess. I therefore split it up.
Comment 2 R030t1 2017-10-29 23:00:09 UTC
(In reply to James Le Cuirot from comment #1)
> Please be clearer. Have you actually tried antlr-c or antlr-cpp? The former
> certainly does install a shared library. The latter does but only for v2.
> With v3, there is no library. What version are you interested in?
>

At least 4.x, the latest being 4.7. The extant packages have not been installed because they are versions I am not interested in. They are quite old.

> Old dev-java/antlr ebuilds for 2.7.7 used to deal with all the languages in
> a single ebuild. This made the ebuild hard to use and the code was a mess. I
> therefore split it up.
>

My apologies, per the other bug you commented on I am still figuring out how Gentoo packages Java.
Comment 3 James Le Cuirot gentoo-dev 2017-10-31 23:08:15 UTC
(In reply to R030t1 from comment #2)
> At least 4.x, the latest being 4.7. The extant packages have not been
> installed because they are versions I am not interested in. They are quite
> old.

As far as I can see, there are no C bindings for ANTLR 4. C++ bindings were introduced in 4.6. We currently only have 4.5.3 in the tree. Bug #605036 has been filed to get it bumped. dev-java/antlr is a particularly thorny package so I haven't rushed to bump this, especially as nothing in the tree currently requires the latest version. Java packaging in general has largely stalled. A pull request would be welcome.
Comment 4 Hans de Graaff gentoo-dev Security 2018-07-28 07:13:23 UTC
Created attachment 541484 [details]
antlr-cpp-4.7.1.ebuild

This ebuild seems to work fine for me. This is going to be a dependency for mysql-workbench 8.x
Comment 5 Larry the Git Cow gentoo-dev 2018-08-07 12:21:59 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=076b3f4c1db890d99978d32077241fbb076ce738

commit 076b3f4c1db890d99978d32077241fbb076ce738
Author:     Patrice Clement <monsieurp@gentoo.org>
AuthorDate: 2018-08-06 19:12:02 +0000
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: 2018-08-07 12:21:51 +0000

    dev-cpp/antlr-cpp: version bump.
    
    Courtesy of Hans de Graff <graff@gentoo.org>.
    
    Closes: https://bugs.gentoo.org/635644
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 dev-cpp/antlr-cpp/Manifest               |  1 +
 dev-cpp/antlr-cpp/antlr-cpp-4.7.1.ebuild | 17 +++++++++++++++++
 2 files changed, 18 insertions(+)