Closed rfc6919 closed 6 years ago
I'm afraid the depends_on "gcc" if build.with?("fortran") || build.with?("openmp")
in fftw
is the issue. Dependencies specified like this (which I'm going to write a brew audit --strict
check for) display the issues you've mentioned. Unfortunately this isn't really fixable because of some horrible Homebrew internals. I'm sorry to close this but just so you know: I am slowly trying to work towards such things being less of an issue.
I'm not sure if this is another manifestation of #3615, if so close as dupe.
brew
command and reproduced the problem with multiple formulae? If it's a problem with a single, official formula (not cask) please file this issue at Homebrew/homebrew-core: https://github.com/Homebrew/homebrew-core/issues/new. If it's abrew cask
problem please file this issue at https://github.com/caskroom/homebrew-cask/issues/new. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem? (NB:brew doctor
output is incorrect)brew config
andbrew doctor
and included their output with your issue?To help us debug your issue please explain:
Install a package variant and not pull in un-required dependencies.
example: liquid-dsp requires fftw. fftw requires gcc by default, but if built --without-fortran does not require gcc.
install fftw --without-fortran
fftw is installed, gcc and its dependencies are not
install liquid-dsp. brew does not try to re-install fftw, but does pull in the un-required sub-dependencies
brew would understand that fftw is already installed (and is not broken), and that there is no valid dep chain to gcc
brew
commands)Note: in the brew doctor output below, prior to installing fftw the only warning is a non-/usr/local install prefix. After installing fftw, brew believes "Some installed formulae are missing dependencies" and wants to install gcc, isl, libmpc, and mpfr, although these are not actually required. I believe the non-/usr/local prefix isn't relevant as the problem is is brew's internal dependency resolution, not any package build or execution.
brew config
brew doctor (prior to installing fftw)
brew doctor (after installing fftw --without-fortran)