Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

antlr@2: deprecate #102007

Merged
merged 1 commit into from
Jun 20, 2022
Merged

antlr@2: deprecate #102007

merged 1 commit into from
Jun 20, 2022

Conversation

danielnachun
Copy link
Member

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

@danielnachun danielnachun added the CI-no-bottles Merge without publishing bottles label May 20, 2022
@BrewTestBot BrewTestBot added java Java use is a significant feature of the PR or issue legacy Relates to a versioned @ formula no Linux bottle Formula has no Linux bottle labels May 20, 2022
@SMillerDev
Copy link
Member

Is the patch upstreamed?

@cho-m
Copy link
Member

cho-m commented May 22, 2022

I don't think antlr@2 is maintained anymore (2.7.7 is from 2006. No repo). antlr v3 and v4 are maintained.

I assume we haven't deprecated it due to nco, which is actively maintained. Looks like nco also keeps a patched tarball of antlr@2 with similar fix (at least for cstring) as mentioned in http://nco.sourceforge.net/#bld and nco/nco#58. Based on comments, it doesn't seem likely that antlr version will be updated in near future.

@SMillerDev
Copy link
Member

It's a shame that NCO is a popular formula, but if they refuse to use supported versions of antlr I think we should deprecate it.

CC @Homebrew/core for opinions

@MikeMcQuaid
Copy link
Member

It's a shame that NCO is a popular formula, but if they refuse to use supported versions of antlr I think we should deprecate it.

Alternatively, we should just use their patched version in the formula. I have little preference either way but, if pushed, would very lightly prefer deprecation.

@danielnachun
Copy link
Member Author

There is an upstream issue about this: https://sourceforge.net/p/nco/discussion/9831/thread/1a424aac/. I think they had a good reason at the time not to migrate to ANTLR4 - it had incomplete C++ support compared to ANTLR 2. Would it be worth asking them if more recent versions of ANTLR4 would now work?

@cho-m
Copy link
Member

cho-m commented May 28, 2022

Based on comments in that issue and on March 2022 in nco/nco#58, the upstream will review/accept PRs to update parser, but aren't planning to work on it themselves. The problem is moving from ANTLR2 to ANTLR4 may require a rewrite of entire grammar given changes in AST generation and other parts.

@danielnachun
Copy link
Member Author

danielnachun commented Jun 18, 2022

I am going to see if I can use the patched copy of ANTLR 2 that nco uses as a resource instead of this formula. If that works, we can update nco to depend on that instead, and then deprecate this formula.

@danielnachun
Copy link
Member Author

The URLs to the patched copies are dead, but it looks like nco is hosting a copy of antlr2 on GitHub which they use: https://github.com/nco/antlr2. I can make a pull request there to fix the missing <include>. That seems like a viable option to fix ANTLR2 until they can migrate to ANTLR4, and we can still deprecated antlr@2 as nothing is else using it.

@danielnachun danielnachun added the CI-syntax-only Change only affects brew syntax, not the install. Only run syntax CI. label Jun 20, 2022
@BrewTestBot BrewTestBot added the formula deprecated Formula deprecated label Jun 20, 2022
@danielnachun danielnachun changed the title antlr@2: fix build on Linux antlr@2: deprecate Jun 20, 2022
@danielnachun
Copy link
Member Author

Now that #103967 is merged and nco is bottled on Linux, nothing uses antlr@2 so it is time to deprecate this.

@danielnachun danielnachun merged commit 922ce3b into Homebrew:master Jun 20, 2022
@danielnachun danielnachun deleted the antlr@2 branch June 20, 2022 18:36
@github-actions github-actions bot added the outdated PR was locked due to age label Jul 21, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CI-no-bottles Merge without publishing bottles CI-syntax-only Change only affects brew syntax, not the install. Only run syntax CI. formula deprecated Formula deprecated java Java use is a significant feature of the PR or issue legacy Relates to a versioned @ formula no Linux bottle Formula has no Linux bottle outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants