Skip to content

Conversation

apjanke
Copy link
Contributor

@apjanke apjanke commented Feb 12, 2018

  • Have you followed the guidelines for contributing?
  • 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?
  • Does your build pass brew audit --strict <formula> (after doing brew install <formula>)?

Addresses #19696.

Makes Scala 2.10 use Java 8 specifically.

Looks like there's a lot of work to be done in Scala for Java 9 support:
scala/scala-dev#139
scala/docs.scala-lang#1000
So it doesn't seem likely that the 2.10 and 2.11 series will get Java 9 support soon. So it seems legit to pin them to Java 8.

(I also tested the new Scala 2.10.7 release, whose release notes say it has "(partial) support" for Java 9, but it still broke under a Homebrew install.)

If this PR is accepted, I'll do the same for scala@2.11.

@@ -37,7 +37,10 @@ def install
doc.install Dir["doc/*"]
share.install "man"
libexec.install "bin", "lib"
bin.install_symlink Dir["#{libexec}/bin/*"]
Dir["#{libexec}/bin/*"].each do |file|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why aren't we using env_script_all_files?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests fail when I try to do it that way. I have no idea why.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I think I've got it figured out. Amended.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotta love voodoo DSLs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

God help me, I've been writing code for near 20 years now, and the Homebrew codebase is one of the most difficult ones I've worked with.

@ilovezfs ilovezfs merged commit d4379b7 into Homebrew:master Feb 12, 2018
@ilovezfs
Copy link
Contributor

Thank you! Yes please scala@2.11

@ilovezfs ilovezfs mentioned this pull request Feb 12, 2018
@apjanke apjanke deleted the scala-2.10-java9 branch February 12, 2018 16:25
@apjanke
Copy link
Contributor Author

apjanke commented Feb 12, 2018

Bam! #24045

@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants