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

Unable to install ffmpeg with options (keep encountering the "JavaRequirement unsatisfied!" error message) #4373

Closed
5 of 6 tasks
ghost opened this issue Jun 23, 2018 · 10 comments
Assignees
Labels
bug Reproducible Homebrew/brew bug outdated PR was locked due to age

Comments

@ghost
Copy link

ghost commented Jun 23, 2018

@rEes9P commented on Jun 22, 2018, 11:44 AM UTC:

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

  • are reporting a bug others will be able to reproduce and not asking a question. If you're not sure or want to ask a question do so on our Discourse: https://discourse.brew.sh
  • have a problem with brew install (or upgrade, reinstall) a single, official formula (not cask)?
  • ran brew update and can still reproduce the problem?
  • ran brew doctor, fixed all issues and can still reproduce the problem?
  • ran brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link?
  • if brew gist-logs didn't work: ran brew config and brew doctor and included their output with your issue?

Here is my brew config log

HOMEBREW_VERSION: 1.6.9
ORIGIN: https://github.com/Homebrew/brew
HEAD: c814199a791867ab75f90a22715e2475706b13d8
Last commit: 4 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: f331594dbb82eb5ef6b1e9956b44a80c6231980e
Core tap last commit: 5 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_NO_ANALYTICS_THIS_RUN: 1
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.3.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3_2/bin/ruby
Clang: 9.1 build 902
Git: 2.18.0 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: N/A
macOS: 10.13.5-x86_64
CLT: 10.0.0.0.1.1527767617
Xcode: 9.4.1
XQuartz: N/A

Here is my brew doctor log
Your system is ready to brew.

What I was trying to do
I was trying to install ffmpeg with options
brew install ffmpeg --with-chromaprint --with-fdk-aac --with-fontconfig --with-freetype --with-frei0r --with-game-music-emu --with-libass --with-libbluray --with-libbs2b --with-libcaca --with-libgsm --with-libmodplug --with-librsvg --with-libsoxr --with-libssh --with-libvidstab --with-libvorbis --with-libvpx --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl --with-opus --with-rtmpdump --with-rubberband --with-sdl2 --with-snappy --with-speex --with-srt --with-tesseract --with-theora --with-tools --with-two-lame --with-wavpack --with-webp --with-x265 --with-xz --with-zeromq --with-zimg

What happened (including command output)
I got an error message stating that Java was required

ant: Java 1.8+ is required to install this formula.
JavaRequirement unsatisfied!
You can install with Homebrew-Cask:
 brew cask install java
You can download from:
 https://www.oracle.com/technetwork/java/javase/downloads/index.html
Error: An unsatisfied requirement failed this build.

What I expected to happen
For the installation to go through smoothly without having to encounter the Java requirement. FYI, the command brew install ffmpeg installs without any issues and in the past (over a year ago) I was also able to install ffmpeg with the following options successfully
brew install ffmpeg --with-chromaprint --with-fdk-aac --with-fontconfig --with-freetype --with-frei0r --with-game-music-emu --with-libass --with-libbluray --with-libbs2b --with-libcaca --with-libgsm --with-libmodplug --with-libsoxr --with-libssh --with-libvidstab --with-libvorbis --with-libvpx --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl --with-opus --with-rtmpdump --with-rubberband --with-schroedinger --with-sdl2 --with-snappy --with-speex --with-tesseract --with-theora --with-tools --with-two-lame --with-wavpack --with-webp --with-x265 --with-xz --with-zeromq --with-zimg

This issue was moved by ilovezfs from Homebrew/homebrew-core/issues/29313.

@ghost
Copy link
Author

ghost commented Jun 23, 2018

@mistydemeo commented on Jun 22, 2018, 11:20 PM UTC:

I think this is coming from libbluray, which has a depends_on :java => ["1.8", :build] dependency. That was added in f5f3b20, about six months ago. In this case it probably shouldn't be trying to build libbluray from source, though, so that shouldn't be fatal.

@ilovezfs
Copy link
Contributor

The problem is in brew not the formula so I've moved this bug here.

@ilovezfs
Copy link
Contributor

The error is emanating from depends_on :java => "1.8+" in ant. Even though libbluray only has

  depends_on "ant" => :build

and we're pouring the libbluray bottle, that requirement ends up being enforced.

iMac-TMP:~ joe$ brew install libbluray
ant: Java 1.8+ is required to install this formula.
JavaRequirement unsatisfied!
You can install with Homebrew-Cask:
 brew cask install java
You can download from:
 https://www.oracle.com/technetwork/java/javase/downloads/index.html
Error: An unsatisfied requirement failed this build.
iMac-TMP:~ joe$ 
iMac-TMP:~ joe$ brew deps --tree --include-requirements libbluray
libbluray
├── fontconfig
│   └── freetype
│       └── libpng
└── freetype
    └── libpng

iMac-TMP:~ joe$ brew deps --tree --include-requirements --include-build libbluray
libbluray
├── :java = 1.8
├── ant
│   └── :java >= 1.8
├── pkg-config
├── fontconfig
│   ├── pkg-config
│   └── freetype
│       └── libpng
└── freetype
    └── libpng

iMac-TMP:~ joe$ brew deps --tree --include-requirements ant
ant
└── :java >= 1.8

iMac-TMP:~ joe$ 

@ilovezfs ilovezfs added the bug Reproducible Homebrew/brew bug label Jun 23, 2018
@ghost ghost assigned MikeMcQuaid Jul 5, 2018
@ghost ghost added the in progress Maintainers are working on this label Jul 5, 2018
@ghost ghost removed the in progress Maintainers are working on this label Jul 5, 2018
@rEes9P
Copy link

rEes9P commented Jul 6, 2018

I tried to install ffmpeg again after this issue was closed using the following formula:

brew install ffmpeg —with-chromaprint —with-fdk-aac —with-fontconfig —with-freetype —with-frei0r —with-game-music-emu —with-libass —with-libbluray —with-libbs2b —with-libcaca —with-libgsm —with-libmodplug —with-librsvg —with-libsoxr —with-libssh —with-libvidstab —with-libvorbis —with-libvpx —with-opencore-amr —with-openh264 —with-openjpeg —with-openssl —with-opus —with-rtmpdump —with-rubberband —with-sdl2 —with-snappy —with-speex —with-srt —with-tesseract —with-theora —with-tools —with-two-lame —with-wavpack —with-webp —with-x265 —with-xz —with-zeromq —with-zimg

However, I still run into the Java issues. Here is the message I got:

Updating Homebrew…
ant: Java 1.8+ is required to install this formula.
JavaRequirement unsatisfied!
You can install with Homebrew-Cask:
brew cask install java
You can download from:
https://www.oracle.com/technetwork/java/javase/downloads/index.html
Error: An unsatisfied requirement failed this build.

@MikeMcQuaid
Copy link
Member

@rEes9P What's the output of brew config.

@rEes9P
Copy link

rEes9P commented Jul 6, 2018

@MikeMcQuaid

HOMEBREW_VERSION: 1.6.9
ORIGIN: https://github.com/Homebrew/brew
HEAD: c814199
Last commit: 3 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 07928a1
Core tap last commit: 6 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_NO_ANALYTICS_THIS_RUN: 1
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.3.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3_2/bin/ruby
Clang: 9.1 build 902
Git: 2.18.0 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: N/A
macOS: 10.13.5-x86_64
CLT: 10.0.0.0.1.1527767617
Xcode: 9.4.1
XQuartz: N/A

@MikeMcQuaid
Copy link
Member

Yep, you'll need to wait for a new release.

@rEes9P
Copy link

rEes9P commented Jul 6, 2018

Thanks for looking into this @MikeMcQuaid. Could you please explain that briefly as I'm not sure what you mean. Thanks again!

@MikeMcQuaid
Copy link
Member

@rEes9P Basically: it's fixed but the fix won't roll out to you for around a week.

@rEes9P
Copy link

rEes9P commented Jul 6, 2018

@MikeMcQuaid Sure. Looking forward to it!

@lock lock bot added the outdated PR was locked due to age label Aug 5, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Aug 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Reproducible Homebrew/brew bug outdated PR was locked due to age
Projects
None yet
Development

No branches or pull requests

3 participants